Skip to content

Commit

Permalink
refactor(android): update gradle to 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and siguangli committed Sep 26, 2022
1 parent 905a82d commit 3089713
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 143 deletions.
14 changes: 1 addition & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$AGP_VERSION"
classpath "com.android.tools.build:gradle:7.3.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -26,15 +26,3 @@ allprojects {
resolutionStrategy.cacheDynamicVersionsFor 1, 'seconds'
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

project.afterEvaluate {
delete 'framework/examples/android-demo/src/main/assets'
copy{
from "framework/examples/android-demo/res"
into "framework/examples/android-demo/src/main/assets"
}
}
19 changes: 0 additions & 19 deletions framework/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,6 @@
apply plugin: 'com.android.library'
apply from: './publish.gradle'

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$AGP_VERSION"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

android {
archivesBaseName = ARCHIVES_BASE_NAME
compileSdkVersion COMPILE_VERSION as int
Expand Down
41 changes: 8 additions & 33 deletions framework/examples/android-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,39 +62,6 @@ android {
}
}

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$AGP_VERSION"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
ext {
MAVEN_USER = System.getenv('maven_username')
MAVEN_PWD = System.getenv('maven_password')
MAVEN_URL = System.getenv('maven_url')
}
repositories {
if (MAVEN_URL != null) {
maven {
url MAVEN_URL
credentials {
username MAVEN_USER
password MAVEN_PWD
}
}
}
google()
mavenCentral()
}
}

dependencies {
if (verifyReleaseAar) {
// options for maven packages or local libs integration
Expand All @@ -115,3 +82,11 @@ dependencies {
api 'com.github.bumptech.glide:glide:3.6.1'
api 'androidx.legacy:legacy-support-v4:1.0.0'
}

project.afterEvaluate {
delete 'src/main/assets'
copy{
from "res"
into "src/main/assets"
}
}
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ android.disableAutomaticComponentCreation=true
org.gradle.warning.mode=all
org.gradle.jvmargs = -Xms1024m -Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

AGP_VERSION=7.2.2
COMPILE_VERSION=30
MIN_VERSION=21
TARGET_VERSION=30
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
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-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
19 changes: 0 additions & 19 deletions modules/android/hippy_support/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
apply plugin: 'com.android.library'

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$AGP_VERSION"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

android {
compileSdkVersion COMPILE_VERSION as int

Expand Down
19 changes: 0 additions & 19 deletions modules/android/link_supplier/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
apply plugin: 'com.android.library'

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$AGP_VERSION"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

android {
compileSdkVersion COMPILE_VERSION as int

Expand Down
19 changes: 0 additions & 19 deletions modules/android/serialization/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
apply plugin: 'com.android.library'

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$AGP_VERSION"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

android {
compileSdkVersion COMPILE_VERSION as int

Expand Down
19 changes: 0 additions & 19 deletions renderer/native/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
apply plugin: 'com.android.library'

buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$AGP_VERSION"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

android {
compileSdkVersion COMPILE_VERSION as int

Expand Down

0 comments on commit 3089713

Please sign in to comment.