Skip to content

Commit 25d033e

Browse files
committed
module-assembler-gradle-plugin 1.1.0
1 parent 89b3635 commit 25d033e

File tree

18 files changed

+114
-112
lines changed

18 files changed

+114
-112
lines changed

android/app/build.gradle

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,24 @@ ksp {
1010
}
1111
apply from: "$rootDir/scripts/tinker_config.gradle"
1212
android {
13-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
14-
buildToolsVersion project.rootProject.buildToolsVersion
1513
namespace "com.jamesfchen.b"
1614
defaultConfig {
1715
// multiDexEnabled = true//support android 20 or lower
1816
applicationId project.rootProject.applicationId
19-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
20-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
2117
// resValue "string", "app_name", "b.app"
2218
buildConfigField('String', 'BUGLY_APP_ID', '"3d62251014"')
2319
buildConfigField('String', 'BUGLY_APP_KEY', '"a15ecf84-1786-40c6-abf5-fe975fce22e6"')
2420
buildConfigField('String', 'XIAOMI_APP_ID', '"2882303761517994447"')
2521
buildConfigField('String', 'XIAOMI_APP_KEY', '"5921799441447"')
2622
buildConfigField('String', 'AMAP_KEY', '"84198333a8ab4404cd35829dbb4ec435"')
27-
manifestPlaceholders = [
28-
'BUGLY_APP_ID': '3d62251014', 'BUGLY_APP_KEY': 'a15ecf84-1786-40c6-abf5-fe975fce22e6', "BUGLY_APP_VERSION": "${rootProject.ext.versionName}",
29-
'AMAP_KEY' : '84198333a8ab4404cd35829dbb4ec435',
30-
]
23+
manifestPlaceholders = ['BUGLY_APP_ID' : '3d62251014',
24+
'BUGLY_APP_KEY' : 'a15ecf84-1786-40c6-abf5-fe975fce22e6',
25+
"BUGLY_APP_VERSION": "${libs.versions.versionName}",
26+
'AMAP_KEY' : '84198333a8ab4404cd35829dbb4ec435',]
3127
ndk {
3228
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
3329
}
34-
versionCode Integer.parseInt(project.rootProject.versionCode)
35-
versionName project.rootProject.versionName
30+
3631
}
3732
signingConfigs {
3833
releaseSigningConfig {
@@ -50,26 +45,20 @@ android {
5045
multiDexEnabled = true//support android 20 or lower
5146
minifyEnabled true
5247
shrinkResources true
53-
proguardFiles(
54-
getDefaultProguardFile("proguard-android-optimize.txt"),
55-
"proguard-rules.pro"
56-
)
48+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
49+
"proguard-rules.pro")
5750
}
58-
debug{
51+
debug {
5952
signingConfig signingConfigs.releaseSigningConfig
60-
manifestPlaceholders = [
61-
'QQ_KEY' : 'adf', 'WEXIN_KEY': 'adfaf',
62-
'BUGLY_ENABLE_DEBUG': 'true'
63-
]
53+
manifestPlaceholders = ['QQ_KEY' : 'adf', 'WEXIN_KEY': 'adfaf',
54+
'BUGLY_ENABLE_DEBUG': 'true']
6455
crunchPngs = false//优化编译速度:关闭png
6556
multiDexEnabled = false//优化编译速度:关闭multidex
6657
minifyEnabled false
6758
shrinkResources false
6859
// applicationIdSuffix = '.debug'
69-
proguardFiles(
70-
getDefaultProguardFile("proguard-android-optimize.txt"),
71-
"proguard-rules.pro"
72-
)
60+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"),
61+
"proguard-rules.pro")
7362
}
7463

7564
}

android/base/build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
plugins{
2-
id 'com.android.library'
2+
id "io.github.electrolytej.foundation-plugin"
33
id("kotlin-android")
44
id("kotlin-kapt")
55
}
66
android{
7-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
8-
buildToolsVersion project.rootProject.buildToolsVersion
97
defaultConfig {
10-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
11-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
128
}
139
namespace "com.jamesfchen.base"
1410
compileOptions {

android/gradle.properties

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,4 @@ keyPassword=123456
4747
storePassword=123456
4848
storeFilePath=keystore/debug.jks
4949
useElectrolytejSnapshots=true
50-
########################################################version control start
51-
compileSdkVersion=34
52-
buildToolsVersion=34.0.0
53-
#19:kk,21:L,23:M,24:N,26:O,28:P,29:Q,30:R
54-
minSdkVersion=26
55-
targetSdkVersion=34
56-
versionCode=2
57-
versionName=2.0.0
58-
########################################################version control end
50+
useIbc=true

android/gradle/libs.versions.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
[versions]
2+
compileSdkVersion = "34"
3+
buildToolsVersion = "34.0.0"
4+
#19:kk,21:L,23:M,24:N,26:O,28:P,29:Q,30:R
5+
minSdkVersion = "26"
6+
targetSdkVersion = "34"
7+
versionCode = "2"
8+
versionName = "2.0.0"
29
accompanist = "0.34.0"
310
androidDesugarJdkLibs = "2.0.4"
411
# AGP and tools should be updated together
@@ -60,14 +67,9 @@ room = "2.6.1"
6067
secrets = "2.0.1"
6168
truth = "1.4.2"
6269
turbine = "1.1.0"
63-
arouter = "1.3.2"
64-
wrouter="1.2.1"
65-
ibc="1.6.1"
6670
navigationFragmentKtx = "2.6.0"
6771
navigationUiKtx = "2.6.0"
6872
material = "1.11.0"
69-
versionCode="2"
70-
versionName="2.0.0"
7173
junit = "1.2.1"
7274
leanback = "1.0.0"
7375
glide = "4.11.0"
@@ -102,7 +104,7 @@ androidx-compose-material3-adaptive = { group = "androidx.compose.material3.adap
102104
androidx-compose-material3-adaptive-layout = { group = "androidx.compose.material3.adaptive", name = "adaptive-layout", version.ref = "androidxComposeMaterial3Adaptive" }
103105
androidx-compose-material3-adaptive-navigation = { group = "androidx.compose.material3.adaptive", name = "adaptive-navigation", version.ref = "androidxComposeMaterial3Adaptive" }
104106
androidx-compose-material3-windowSizeClass = { group = "androidx.compose.material3", name = "material3-window-size-class" }
105-
androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime"}
107+
androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
106108
androidx-compose-runtime-tracing = { group = "androidx.compose.runtime", name = "runtime-tracing", version.ref = "androidxComposeRuntimeTracing" }
107109
androidx-compose-runtime-livedata = { module = "androidx.compose.runtime:runtime-livedata" }
108110
androidx-compose-ui-test = { group = "androidx.compose.ui", name = "ui-test-junit4", version.ref = "androidxComposeAlpha" }
@@ -207,7 +209,7 @@ androidx-watchface-complications-data-source-ktx = { group = "androidx.wear.watc
207209
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
208210
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
209211
android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" }
210-
baselineprofile = { id = "androidx.baselineprofile", version.ref = "androidxMacroBenchmark"}
212+
baselineprofile = { id = "androidx.baselineprofile", version.ref = "androidxMacroBenchmark" }
211213
compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
212214
dependencyGuard = { id = "com.dropbox.dependency-guard", version.ref = "dependencyGuard" }
213215
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebaseCrashlyticsPlugin" }

android/hotel-module/bundle1/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ plugins{
44
alias(libs.plugins.compose)
55
}
66
android {
7-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
8-
buildToolsVersion project.rootProject.buildToolsVersion
9-
defaultConfig {
10-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
11-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
12-
}
137
namespace "com.jamesfchen.bundle1"
148
buildFeatures {
159
viewBinding true

android/hotel-module/bundle2/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ plugins{
44
id("kotlin-kapt")
55
}
66
android{
7-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
8-
buildToolsVersion project.rootProject.buildToolsVersion
9-
defaultConfig {
10-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
11-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
12-
}
137
namespace "com.jamesfchen.bundle2"
148
compileOptions {
159
sourceCompatibility JavaVersion.VERSION_17

android/hotel-module/bundle3/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ plugins{
44
id("kotlin-kapt")
55
}
66
android{
7-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
8-
buildToolsVersion project.rootProject.buildToolsVersion
9-
defaultConfig {
10-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
11-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
12-
}
137
namespace "com.jamesfchen.bundle3"
148
compileOptions {
159
sourceCompatibility JavaVersion.VERSION_17

android/hotel-module/bundle4/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ plugins{
44
id("kotlin-kapt")
55
}
66
android{
7-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
8-
buildToolsVersion project.rootProject.buildToolsVersion
9-
defaultConfig {
10-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
11-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
12-
}
137
namespace "com.jamesfchen.bundle4"
148
compileOptions {
159
sourceCompatibility JavaVersion.VERSION_17

android/hotel-module/export/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ plugins{
55
}
66

77
android{
8-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
9-
buildToolsVersion project.rootProject.buildToolsVersion
10-
defaultConfig {
11-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
12-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
13-
}
148
namespace "com.jamesfchen.export"
159
compileOptions {
1610
sourceCompatibility JavaVersion.VERSION_17

android/im-module/bundle/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ plugins {
66
}
77

88
android {
9-
compileSdkVersion Integer.parseInt(project.rootProject.compileSdkVersion)
10-
buildToolsVersion project.rootProject.buildToolsVersion
11-
defaultConfig {
12-
minSdkVersion Integer.parseInt(project.rootProject.minSdkVersion)
13-
targetSdkVersion Integer.parseInt(project.rootProject.targetSdkVersion)
14-
}
159
namespace = "com.jamesfchen.chatroom"
1610
defaultConfig {
1711
vectorDrawables.useSupportLibrary = true

0 commit comments

Comments
 (0)