Skip to content

Commit

Permalink
统一配置版本,编译提速
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCheen committed Jan 9, 2023
1 parent 603b2ed commit 23c2561
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 22 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ buildscript {
repositories {
google()
mavenCentral()
// jcenter()
// maven {
// url = "$rootProject.projectDir/repos"
// }
Expand All @@ -23,7 +22,6 @@ allprojects {
repositories {
google()
mavenCentral()
// jcenter()
maven { url 'https://jitpack.io' }
}
}
Expand Down
10 changes: 6 additions & 4 deletions flap-animation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ plugins {
}

apply plugin: 'com.github.dcendents.android-maven'

group = 'me.yifeiyuan'

apply from: '../config.gradle'

android {
compileSdkVersion 29

compileSdkVersion flapCompileSdkVersion

defaultConfig {
minSdkVersion 17
targetSdkVersion 29
minSdkVersion flapMinSdkVersion
targetSdkVersion flapTargetSdkVersion
versionCode 1
versionName "1.0"

Expand Down
10 changes: 6 additions & 4 deletions flap-dsl-databinding/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ plugins {
}

apply plugin: 'com.github.dcendents.android-maven'

group = 'me.yifeiyuan'

apply from: '../config.gradle'

android {
compileSdkVersion 29

compileSdkVersion flapCompileSdkVersion

defaultConfig {
minSdkVersion 17
targetSdkVersion 29
minSdkVersion flapMinSdkVersion
targetSdkVersion flapTargetSdkVersion
versionCode 1
versionName "1.0"

Expand Down
10 changes: 6 additions & 4 deletions flap-dsl-viewbinding/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ plugins {
}

apply plugin: 'com.github.dcendents.android-maven'

group = 'me.yifeiyuan'

apply from: '../config.gradle'

android {
compileSdkVersion 29

compileSdkVersion flapCompileSdkVersion

defaultConfig {
minSdkVersion 17
targetSdkVersion 29
minSdkVersion flapMinSdkVersion
targetSdkVersion flapTargetSdkVersion
versionCode 1
versionName "1.0"

Expand Down
10 changes: 6 additions & 4 deletions flap-paging/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ plugins {
}

apply plugin: 'com.github.dcendents.android-maven'

group = 'me.yifeiyuan'

apply from: '../config.gradle'

android {
compileSdkVersion 29

compileSdkVersion flapCompileSdkVersion

defaultConfig {
minSdkVersion 17
targetSdkVersion 29
minSdkVersion flapMinSdkVersion
targetSdkVersion flapTargetSdkVersion
versionCode 1
versionName "1.0"

Expand Down
10 changes: 6 additions & 4 deletions flap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'

apply plugin: 'com.github.dcendents.android-maven'

group = 'me.yifeiyuan'

apply from: '../config.gradle'

android {
compileSdkVersion 29

compileSdkVersion flapCompileSdkVersion

defaultConfig {
minSdkVersion 17
targetSdkVersion 29
minSdkVersion flapMinSdkVersion
targetSdkVersion flapTargetSdkVersion
versionCode 1
versionName "1.0"

Expand Down
9 changes: 9 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ android.useAndroidX=true
#org.gradle.daemon=true
#org.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
#org.gradle.jvmargs=-Xmx1536m


# Disable build features that are enabled by default,
# https://developer.android.com/studio/releases/gradle-plugin#buildFeatures
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.aidl=false
android.defaults.buildfeatures.renderscript=false
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false

0 comments on commit 23c2561

Please sign in to comment.