Skip to content

Commit 48e3379

Browse files
committed
chore(pluto): applied plugin to lib-no-op files in pluto/ and pluto-plugins/bundle
1 parent 9fac531 commit 48e3379

File tree

2 files changed

+2
-72
lines changed

2 files changed

+2
-72
lines changed

pluto-plugins/bundle/lib-no-op/build.gradle.kts

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,9 @@ val version = Versioning.loadVersioningData()
1010
val verCode = version["code"] as Int
1111
val verPublish = version["publish"] as String
1212
val verGitSHA = version["gitSha"] as String
13-
13+
apply<PlutoGradlePlugin>()
1414
android {
1515
namespace = "com.pluto.plugins.bundle.core"
16-
compileSdk = libs.versions.compileSdk.get().toInt()
17-
buildToolsVersion = libs.versions.buildTools.get()
18-
19-
buildFeatures {
20-
buildConfig = true
21-
viewBinding = true
22-
}
23-
24-
defaultConfig {
25-
minSdk = libs.versions.minSdk.get().toInt()
26-
}
27-
28-
buildTypes {
29-
getByName("release") {
30-
// isDebuggable = true
31-
isMinifyEnabled = false
32-
isShrinkResources = false
33-
}
34-
}
35-
36-
compileOptions {
37-
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get())
38-
targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())
39-
}
40-
41-
kotlinOptions {
42-
jvmTarget = libs.versions.java.get()
43-
}
44-
45-
lint {
46-
abortOnError = false
47-
targetSdk = libs.versions.targetSdk.get().toInt()
48-
}
4916
}
5017

5118
extra["PUBLISH_GROUP_ID"] = "com.androidpluto.plugins"

pluto/lib-no-op/build.gradle.kts

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,9 @@ val version = Versioning.loadVersioningData()
1010
val verCode = version["code"] as Int
1111
val verPublish = version["publish"] as String
1212
val verGitSHA = version["gitSha"] as String
13-
13+
apply<PlutoGradlePlugin>()
1414
android {
1515
namespace = "com.pluto"
16-
compileSdk = libs.versions.compileSdk.get().toInt()
17-
buildToolsVersion = libs.versions.buildTools.get()
18-
19-
buildFeatures {
20-
buildConfig = true
21-
viewBinding = true
22-
}
23-
24-
defaultConfig {
25-
minSdk = libs.versions.minSdk.get().toInt()
26-
27-
buildConfigField("String", "VERSION_NAME", "\"$verPublish\"")
28-
buildConfigField("long", "VERSION_CODE", "$verCode")
29-
buildConfigField("String", "GIT_SHA", "\"$verGitSHA\"")
30-
}
31-
32-
buildTypes {
33-
getByName("release") {
34-
// isDebuggable = true
35-
isMinifyEnabled = false
36-
isShrinkResources = false
37-
}
38-
}
39-
40-
compileOptions {
41-
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get())
42-
targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())
43-
}
44-
45-
kotlinOptions {
46-
jvmTarget = libs.versions.java.get()
47-
}
48-
49-
lint {
50-
abortOnError = false
51-
targetSdk = libs.versions.targetSdk.get().toInt()
52-
}
5316
}
5417

5518
extra["PUBLISH_GROUP_ID"] = "com.androidpluto"

0 commit comments

Comments
 (0)