forked from TheWidlarzGroup/react-native-video
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from wordpress-mobile/upgrade-to-gradle-7.1.1
Upgrade to gradle 7.1.1
- Loading branch information
Showing
11 changed files
with
89 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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 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 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,6 +1,5 @@ | ||
#Thu Apr 18 13:05:46 EDT 2019 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip |
This file contains 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() | ||
} | ||
} |
This file contains 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,49 +1,41 @@ | ||
def safeExtGet(prop, fallback) { | ||
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback | ||
plugins { | ||
id "com.android.library" | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
//noinspection GradleDependency | ||
classpath rootProject.ext.has('gradleBuildTools') ? rootProject.ext.get('gradleBuildTools') : 'com.android.tools.build:gradle:3.3.1' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
android { | ||
compileSdkVersion safeExtGet('compileSdkVersion', 28) | ||
buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3') | ||
compileSdkVersion 30 | ||
|
||
defaultConfig { | ||
minSdkVersion safeExtGet('minSdkVersion', 16) | ||
targetSdkVersion safeExtGet('targetSdkVersion', 28) | ||
versionCode 1 | ||
versionName "1.0" | ||
minSdkVersion 21 | ||
targetSdkVersion 30 | ||
ndk { | ||
abiFilters "armeabi-v7a", "x86" | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
if (project == rootProject) { | ||
maven { url "https://a8c-libs.s3.amazonaws.com/android/react-native-mirror" } | ||
} else { | ||
// 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() | ||
mavenCentral() | ||
jcenter() | ||
maven { | ||
url "https://a8c-libs.s3.amazonaws.com/android/react-native-mirror" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation 'com.facebook.react:react-native:0.64.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 { | ||
//noinspection GradleDynamicVersion | ||
api "com.facebook.react:react-native:+" | ||
} | ||
|
||
implementation 'com.yqritc:android-scalablevideoview:1.0.4' | ||
} |
This file contains 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 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,6 +1,5 @@ | ||
#Thu Apr 18 13:05:46 EDT 2019 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip |
This file contains 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,10 @@ | ||
pluginManagement { | ||
plugins { | ||
id("com.android.library") version "4.2.2" | ||
} | ||
repositories { | ||
gradlePluginPortal() | ||
google() | ||
} | ||
} | ||
|
This file contains 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,2 @@ | ||
install: | ||
- cd android-exoplayer && ./gradlew publishToMavenLocal |