@@ -2,63 +2,24 @@ plugins {
22 alias(libs. plugins. android. library)
33 alias(libs. plugins. kotlin. android)
44}
5-
6- apply from : " $rootDir /scripts/build/utils.gradle"
7- apply from : " $rootDir /scripts/publish/module.gradle"
8-
9- def verCode, verName, verBuild, verNameShort, verPublish
10- (verCode, verName, verBuild, verNameShort, verPublish) = genVersion()
5+ apply from : " $rootDir /scripts/pluginBuilder.gradle"
116
127ext {
138 PUBLISH_GROUP_ID = " com.plutolib.plugins"
14- PUBLISH_VERSION = verPublish
159 PUBLISH_ARTIFACT_ID = ' datastore-pref'
1610}
1711
1812android {
19- compileSdk = libs. versions. compileSdk. get(). toInteger()
20- buildToolsVersion = libs. versions. buildTools. get()
21-
2213 buildFeatures {
23- viewBinding true
2414 compose true
2515 }
2616
27-
28- defaultConfig {
29- minSdk = libs. versions. minSdk. get(). toInteger()
30- targetSdk = libs. versions. targetSdk. get(). toInteger()
31-
32- buildConfigField " String" , " VERSION_NAME" , " \" ${ verPublish} \" "
33- buildConfigField(" long" , " VERSION_CODE" , " ${ verCode} " )
34- buildConfigField " String" , " GIT_SHA" , " \" ${ gitSha()} \" "
35- }
36-
37- buildTypes {
38- release {
39- debuggable true
40- minifyEnabled false
41- shrinkResources false
42- }
43- }
44- compileOptions {
45- sourceCompatibility = JavaVersion . toVersion(libs. versions. java. get())
46- targetCompatibility = JavaVersion . toVersion(libs. versions. java. get())
47- }
48-
49- kotlinOptions {
50- jvmTarget = libs. versions. java. get()
51- }
52-
5317 composeOptions {
5418 kotlinCompilerExtensionVersion = libs. versions. composeCompiler. get()
5519 }
5620
5721 resourcePrefix ' pluto_dts___'
5822 namespace ' com.pluto.plugins.datastore.pref'
59- lint {
60- abortOnError false
61- }
6223}
6324
6425dependencies {
@@ -73,5 +34,4 @@ dependencies {
7334 implementation(libs. constraintlayout. compose)
7435
7536 implementation(libs. datastore. preferences)
76-
7737}
0 commit comments