This repository was archived by the owner on Mar 7, 2025. It is now read-only.
forked from shimohq/react-native-prompt-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade to gradle 7.1.1 #5
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7840f53
Upgrade Gradle to 7.1.1
oguzkocer db2b73b
Use plugin DSL
oguzkocer c043f9b
Simplify android extension
oguzkocer 3ab5e58
Update repositories & dependencies
oguzkocer fc651e9
Add gradle.properties
oguzkocer 7014681
Adds maven-publish plugin
oguzkocer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,6 @@ project.xcworkspace | |
| .gradle | ||
| local.properties | ||
| build | ||
| gradle.properties | ||
|
|
||
| # node.js | ||
| # | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,61 +1,53 @@ | ||
| buildscript { | ||
| repositories { | ||
| google() | ||
| jcenter() | ||
| } | ||
| dependencies { | ||
| classpath rootProject.ext.has('gradleBuildTools') ? rootProject.ext.get('gradleBuildTools') : 'com.android.tools.build:gradle:3.4.2' | ||
| classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
| } | ||
| } | ||
|
|
||
| apply plugin: 'com.android.library' | ||
| apply plugin: 'com.github.dcendents.android-maven' | ||
|
|
||
| def safeExtGet(prop, fallback) { | ||
| rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback | ||
| plugins { | ||
| id "com.android.library" | ||
| id "maven-publish" | ||
| } | ||
|
|
||
| android { | ||
| compileSdkVersion safeExtGet('compileSdkVersion', 28) | ||
| buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3') | ||
| compileSdkVersion 30 | ||
|
|
||
| defaultConfig { | ||
| minSdkVersion safeExtGet('minSdkVersion', 16) | ||
| targetSdkVersion safeExtGet('targetSdkVersion', 22) | ||
| versionCode 1 | ||
| versionName "1.0" | ||
| minSdkVersion 21 | ||
| targetSdkVersion 30 | ||
| } | ||
| lintOptions { | ||
| abortOnError false | ||
| } | ||
| } | ||
|
|
||
| repositories { | ||
| mavenLocal() | ||
| google() | ||
| jcenter() | ||
| maven { url "https://jitpack.io" } | ||
| if (project == rootProject) { | ||
| maven { | ||
| url "https://a8c-libs.s3.amazonaws.com/android/react-native-mirror" | ||
| } | ||
| maven { url "https://a8c-libs.s3.amazonaws.com/android/react-native-mirror" } | ||
| } else { | ||
| maven { | ||
| // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm | ||
| url "$projectDir/../../../node_modules/react-native/android" | ||
| } | ||
| // When building as a dep, the RN's maven repo is locally in the node_modules folder | ||
| def nodeModulesPath = "${project.buildDir}/../../node_modules/" | ||
| maven { url "${nodeModulesPath}/react-native/android" } | ||
| } | ||
|
|
||
| google() | ||
| jcenter() | ||
| mavenCentral() | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation 'androidx.appcompat:appcompat:1.0.0' | ||
| if (project == rootProject) { | ||
| // If this is the root project (e.g. Jitpack), specify a version | ||
| implementation 'com.facebook.react:react-native:0.64.0' | ||
| } else { | ||
| implementation 'com.facebook.react:react-native:+' | ||
| //noinspection GradleDynamicVersion | ||
| api "com.facebook.react:react-native:+" | ||
| } | ||
| implementation fileTree( dir: "libs", includes: ['*.jar'] ) | ||
| implementation 'androidx.appcompat:appcompat:1.0.0' | ||
| } | ||
|
|
||
| afterEvaluate { | ||
| publishing { | ||
| publications { | ||
| release(MavenPublication) { | ||
| from components.release | ||
| groupId = 'com.github.wordpress-mobile' | ||
| artifactId = 'react-native-prompt-android' | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| org.gradle.jvmargs=-Xmx1536m -XX:+HeapDumpOnOutOfMemoryError | ||
| org.gradle.parallel=true | ||
| org.gradle.configureondemand=true | ||
| org.gradle.caching=true | ||
|
|
||
| android.useAndroidX=true | ||
| android.enableJetifier=true |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| pluginManagement { | ||
| plugins { | ||
| id("com.android.library") version "4.2.2" | ||
| } | ||
| repositories { | ||
| gradlePluginPortal() | ||
| google() | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting that they switched from
bashtosh🤔