Skip to content

Commit 2e5f6cb

Browse files
committed
logger & rooms - groovy to kotlin
1 parent 57321e6 commit 2e5f6cb

File tree

12 files changed

+258
-106
lines changed

12 files changed

+258
-106
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ val prCheck by tasks.registering {
5252
}
5353

5454
apply (from = "$rootDir/scripts/project-dependancy-graph.gradle")
55-
apply (from = "$rootDir/maven-versions.gradle")
55+
apply (from = "$rootDir/maven-versions.gradle.kts")

maven-versions.gradle

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

maven-versions.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extra["plutoVersion"] = "2.0.5"

pluto-plugins/plugins/exceptions/lib/build.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ android {
1818
namespace = "com.pluto.plugins.exceptions"
1919
resourcePrefix = "pluto_excep___"
2020

21-
composeOptions {
22-
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
23-
}
24-
2521
compileSdk = libs.versions.compileSdk.get().toInt()
2622
buildToolsVersion = libs.versions.buildTools.get()
2723

pluto-plugins/plugins/logger/lib-no-op/build.gradle

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
plugins {
2+
alias(libs.plugins.android.library)
3+
alias(libs.plugins.kotlin.android)
4+
}
5+
6+
val version = Versioning.loadVersioningData()
7+
val verCode = version["code"] as Int
8+
val verPublish = version["publish"] as String
9+
val verGitSHA = version["gitSha"] as String
10+
11+
extra["PUBLISH_GROUP_ID"] = "com.plutolib.plugins"
12+
extra["PUBLISH_ARTIFACT_ID"] = "logger-no-op"
13+
extra["PUBLISH_VERSION"] = verPublish
14+
15+
android {
16+
namespace = "com.pluto.plugins.logger"
17+
18+
compileSdk = libs.versions.compileSdk.get().toInt()
19+
buildToolsVersion = libs.versions.buildTools.get()
20+
21+
buildFeatures {
22+
buildConfig = true
23+
viewBinding = true
24+
}
25+
26+
defaultConfig {
27+
minSdk = libs.versions.minSdk.get().toInt()
28+
29+
buildConfigField("String", "VERSION_NAME", "\"$verPublish\"")
30+
buildConfigField("long", "VERSION_CODE", "$verCode")
31+
buildConfigField("String", "GIT_SHA", "\"$verGitSHA\"")
32+
}
33+
34+
buildTypes {
35+
getByName("release") {
36+
// isDebuggable = true
37+
isMinifyEnabled = false
38+
isShrinkResources = false
39+
}
40+
}
41+
42+
compileOptions {
43+
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get())
44+
targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())
45+
}
46+
47+
kotlinOptions {
48+
jvmTarget = libs.versions.java.get()
49+
}
50+
51+
lint {
52+
abortOnError = false
53+
targetSdk = libs.versions.targetSdk.get().toInt()
54+
}
55+
}
56+
57+
dependencies {
58+
implementation(libs.androidx.core)
59+
api(libs.timber)
60+
}

pluto-plugins/plugins/logger/lib/build.gradle

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
plugins {
2+
alias(libs.plugins.android.library)
3+
alias(libs.plugins.kotlin.android)
4+
alias(libs.plugins.kotlin.parcelize)
5+
alias(libs.plugins.ksp)
6+
}
7+
8+
val version = Versioning.loadVersioningData()
9+
val verCode = version["code"] as Int
10+
val verPublish = version["publish"] as String
11+
val verGitSHA = version["gitSha"] as String
12+
13+
extra["PUBLISH_GROUP_ID"] = "com.plutolib.plugins"
14+
extra["PUBLISH_ARTIFACT_ID"] = "logger"
15+
extra["PUBLISH_VERSION"] = verPublish
16+
17+
android {
18+
resourcePrefix = "pluto_logger___"
19+
namespace = "com.pluto.plugins.logger"
20+
21+
compileSdk = libs.versions.compileSdk.get().toInt()
22+
buildToolsVersion = libs.versions.buildTools.get()
23+
24+
buildFeatures {
25+
buildConfig = true
26+
viewBinding = true
27+
}
28+
29+
defaultConfig {
30+
minSdk = libs.versions.minSdk.get().toInt()
31+
32+
buildConfigField("String", "VERSION_NAME", "\"$verPublish\"")
33+
buildConfigField("long", "VERSION_CODE", "$verCode")
34+
buildConfigField("String", "GIT_SHA", "\"$verGitSHA\"")
35+
}
36+
37+
buildTypes {
38+
getByName("release") {
39+
// isDebuggable = true
40+
isMinifyEnabled = false
41+
isShrinkResources = false
42+
}
43+
}
44+
45+
compileOptions {
46+
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get())
47+
targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())
48+
}
49+
50+
kotlinOptions {
51+
jvmTarget = libs.versions.java.get()
52+
}
53+
54+
lint {
55+
abortOnError = false
56+
targetSdk = libs.versions.targetSdk.get().toInt()
57+
}
58+
}
59+
60+
dependencies {
61+
implementation(project(":pluto-plugins:base:lib"))
62+
implementation(libs.androidx.navigation.ui)
63+
api(libs.timber)
64+
implementation(libs.moshi)
65+
ksp(libs.moshi.codegen)
66+
67+
implementation(libs.room)
68+
ksp(libs.room.compiler)
69+
}

pluto-plugins/plugins/rooms-database/lib-no-op/build.gradle

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
plugins {
2+
alias(libs.plugins.android.library)
3+
alias(libs.plugins.kotlin.android)
4+
}
5+
6+
val version = Versioning.loadVersioningData()
7+
val verCode = version["code"] as Int
8+
val verPublish = version["publish"] as String
9+
val verGitSHA = version["gitSha"] as String
10+
11+
extra["PUBLISH_GROUP_ID"] = "com.plutolib.plugins"
12+
extra["PUBLISH_ARTIFACT_ID"] = "rooms-db-no-op"
13+
extra["PUBLISH_VERSION"] = verPublish
14+
15+
android {
16+
namespace = "com.pluto.plugins.rooms.db"
17+
18+
compileSdk = libs.versions.compileSdk.get().toInt()
19+
buildToolsVersion = libs.versions.buildTools.get()
20+
21+
buildFeatures {
22+
buildConfig = true
23+
viewBinding = true
24+
}
25+
26+
defaultConfig {
27+
minSdk = libs.versions.minSdk.get().toInt()
28+
29+
buildConfigField("String", "VERSION_NAME", "\"$verPublish\"")
30+
buildConfigField("long", "VERSION_CODE", "$verCode")
31+
buildConfigField("String", "GIT_SHA", "\"$verGitSHA\"")
32+
}
33+
34+
buildTypes {
35+
getByName("release") {
36+
// isDebuggable = true
37+
isMinifyEnabled = false
38+
isShrinkResources = false
39+
}
40+
}
41+
42+
compileOptions {
43+
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get())
44+
targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())
45+
}
46+
47+
kotlinOptions {
48+
jvmTarget = libs.versions.java.get()
49+
}
50+
51+
lint {
52+
abortOnError = false
53+
targetSdk = libs.versions.targetSdk.get().toInt()
54+
}
55+
}
56+
57+
dependencies {
58+
implementation(libs.androidx.core)
59+
}

0 commit comments

Comments
 (0)