Skip to content

Commit 72ce555

Browse files
committed
apply publish-root.gradle + buildSrc
1 parent 3201a93 commit 72ce555

File tree

19 files changed

+148
-134
lines changed

19 files changed

+148
-134
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.iml
22
.gradle
33
/local.properties
4+
.idea
45
/.idea/caches
56
/.idea/libraries
67
/.idea/modules.xml

.idea/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.idea/compiler.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/gradle.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/build.gradle

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
import com.holix.android.bottomsheetdialog.compose.Configuration
2+
import com.holix.android.bottomsheetdialog.compose.Versions
3+
import com.holix.android.bottomsheetdialog.compose.Dependencies
4+
15
plugins {
26
id 'com.android.application'
37
id 'org.jetbrains.kotlin.android'
48
}
59

610
android {
7-
compileSdk 32
11+
compileSdk Configuration.compileSdk
812

913
defaultConfig {
1014
applicationId "com.holix.android.bottomsheetdialog"
11-
minSdk 21
12-
targetSdk 32
13-
versionCode 1
14-
versionName "1.0"
15+
minSdk Configuration.minSdk
16+
targetSdk Configuration.targetSdk
17+
versionCode Configuration.versionCode
18+
versionName Configuration.versionName
1519

1620
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1721
}
@@ -33,20 +37,19 @@ android {
3337
compose = true
3438
}
3539
composeOptions {
36-
kotlinCompilerExtensionVersion = "1.2.0-beta02"
40+
kotlinCompilerExtensionVersion = Versions.COMPOSE
3741
}
3842

3943
}
4044

4145
dependencies {
4246
implementation project(":bottomsheetdialog-compose")
43-
implementation 'androidx.compose.ui:ui:1.2.0-beta02'
44-
implementation 'androidx.compose.foundation:foundation:1.2.0-beta02'
45-
implementation 'androidx.compose.material:material:1.2.0-beta02'
46-
implementation 'androidx.activity:activity-compose:1.4.0'
47-
implementation 'androidx.core:core-ktx:1.8.0'
48-
implementation 'androidx.appcompat:appcompat:1.4.2'
49-
implementation 'com.google.android.material:material:1.6.1'
47+
implementation Dependencies.composeUI
48+
implementation Dependencies.composeFoundation
49+
implementation Dependencies.composeMaterial
50+
implementation Dependencies.composeActivity
51+
implementation Dependencies.androidxCoreKtx
52+
implementation Dependencies.material
5053
testImplementation 'junit:junit:4.13.2'
5154
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
5255
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

bottomsheetdialog-compose/build.gradle

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
import com.holix.android.bottomsheetdialog.compose.Configuration
2+
import com.holix.android.bottomsheetdialog.compose.Versions
3+
import com.holix.android.bottomsheetdialog.compose.Dependencies
4+
15
plugins {
26
id 'com.android.library'
37
id 'org.jetbrains.kotlin.android'
48
}
59

610
android {
7-
compileSdk 32
11+
compileSdk Configuration.compileSdk
812

913
defaultConfig {
10-
minSdk 21
11-
targetSdk 32
14+
minSdk Configuration.minSdk
15+
targetSdk Configuration.targetSdk
1216

1317
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1418
consumerProguardFiles "consumer-rules.pro"
@@ -32,14 +36,14 @@ android {
3236
compose = true
3337
}
3438
composeOptions {
35-
kotlinCompilerExtensionVersion = "1.2.0-beta02"
39+
kotlinCompilerExtensionVersion = Versions.COMPOSE
3640
}
3741
}
3842

3943
dependencies {
40-
implementation 'androidx.compose.ui:ui:1.2.0-beta02'
41-
implementation 'androidx.core:core-ktx:1.8.0'
42-
implementation 'com.google.android.material:material:1.6.1'
44+
implementation Dependencies.composeUI
45+
implementation Dependencies.androidxCoreKtx
46+
implementation Dependencies.material
4347
testImplementation 'junit:junit:4.13.2'
4448
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
4549
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

bottomsheetdialog-compose/src/androidTest/java/com/holix/android/bottomsheetdialog/compose/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

bottomsheetdialog-compose/src/test/java/com/holix/android/bottomsheetdialog/compose/ExampleUnitTest.kt

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)