@@ -15,31 +15,34 @@ android {
1515 applicationId = " me.rosuh.easywatermark"
1616 minSdk = (Apps .minSdk)
1717 targetSdk = (Apps .targetSdk)
18- versionCode = 20806
19- versionName = " 2.8.6 "
18+ versionCode = 20807
19+ versionName = " 2.8.7 "
2020 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
2121 setProperty(" archivesBaseName" , " $applicationId -v$versionName ($versionCode )" )
2222 }
2323
2424 buildTypes {
25- getByName(BuildTypes .Debug ) {
26- isMinifyEnabled = false
27- applicationIdSuffix = " .${BuildTypes .Debug } "
28- versionNameSuffix = " .${BuildTypes .Debug } "
29- isDebuggable = true
25+ val debug by getting {
26+ applicationIdSuffix = " .debug"
3027 }
3128
32- getByName( BuildTypes . Release ) {
29+ val release by getting {
3330 isMinifyEnabled = true
3431 isShrinkResources = true
3532 proguardFiles(
3633 getDefaultProguardFile(" proguard-android-optimize.txt" ),
3734 " coroutines.pro" , " proguard-rules.pro"
3835 )
3936 }
37+
4038 create(" benchmark" ) {
39+ initWith(release)
4140 signingConfig = signingConfigs.getByName(" debug" )
42- isDebuggable = false
41+ // [START_EXCLUDE silent]
42+ // Selects release buildType if the benchmark buildType not available in other modules.
43+ matchingFallbacks.add(" release" )
44+ // [END_EXCLUDE]
45+ proguardFiles(" benchmark-rules.pro" )
4346 }
4447 }
4548
@@ -66,6 +69,10 @@ android {
6669 jvmTarget = " 11"
6770 }
6871 namespace = " me.rosuh.easywatermark"
72+
73+ lint {
74+ baseline = file(" lint-baseline.xml" )
75+ }
6976}
7077
7178kapt {
@@ -76,50 +83,51 @@ dependencies {
7683 implementation(fileTree(mapOf (" dir" to " libs" , " include" to listOf (" *.jar" ))))
7784 implementation(project(mapOf (" path" to " :cmonet" )))
7885
79- val roomVersion = " 2.4.3"
80-
81- implementation(" androidx.room:room-runtime:$roomVersion " )
82- implementation(" androidx.room:room-ktx:$roomVersion " )
83- kapt(" androidx.room:room-compiler:$roomVersion " )
84-
85- implementation(" androidx.datastore:datastore-preferences:1.0.0" )
86-
87- implementation(" com.google.dagger:hilt-android:2.43.2" )
88- kapt(" com.google.dagger:hilt-compiler:2.43.2" )
89-
90- implementation(" androidx.asynclayoutinflater:asynclayoutinflater:1.0.0" )
91-
92- implementation(" com.github.bumptech.glide:glide:4.14.2" )
93- kapt(" com.github.bumptech.glide:compiler:4.14.2" )
94-
95- implementation(" id.zelory:compressor:3.0.1" )
96-
97- implementation(" org.jetbrains.kotlin:kotlin-stdlib:${Versions .kotlin} " )
98- implementation(" androidx.appcompat:appcompat:${Versions .appCompat} " )
99- implementation(" com.google.android.material:material:${Versions .materialDesign} " )
100- implementation(" androidx.fragment:fragment-ktx:1.5.4" )
101- implementation(" androidx.activity:activity-ktx:1.6.1" )
102- implementation(" androidx.lifecycle:lifecycle-runtime-ktx:2.5.1" )
103- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" )
104- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" )
105- implementation(" androidx.lifecycle:lifecycle-livedata-ktx:2.5.1" )
106- implementation(" androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1" )
107- implementation(" com.github.skydoves:colorpickerview:2.2.3" )
108- implementation(" androidx.viewpager2:viewpager2:1.0.0" )
109- implementation(" androidx.recyclerview:recyclerview:1.2.1" )
110- implementation(" androidx.constraintlayout:constraintlayout:2.1.4" )
111- implementation(" androidx.exifinterface:exifinterface:1.3.5" )
112- implementation(" androidx.palette:palette-ktx:1.0.0" )
113-
114- testImplementation(" junit:junit:4.12" )
115- testImplementation(" androidx.test:core:1.4.0" )
116- testImplementation(" org.mockito:mockito-core:4.0.0" )
117- androidTestImplementation(" org.mockito:mockito-android:4.0.0" )
118- androidTestImplementation(" org.robolectric:robolectric:4.4" )
119- androidTestImplementation(" androidx.test:rules:1.4.0" )
120- androidTestImplementation(" androidx.test:runner:1.4.0" )
121- androidTestImplementation(" org.hamcrest:hamcrest-library:2.2" )
122- androidTestImplementation(" androidx.test.espresso:espresso-core:3.4.0" )
123- androidTestImplementation(" androidx.test.uiautomator:uiautomator:2.2.0" )
124- androidTestImplementation(" androidx.test.ext:junit:1.1.3" )
86+ implementation(libs.room.runtime)
87+ implementation(libs.room.ktx)
88+ kapt(libs.room.compiler)
89+
90+ implementation(libs.datastore.preference)
91+
92+ implementation(libs.dagger.hilt.android)
93+ kapt(libs.dagger.hilt.compiler)
94+
95+ implementation(libs.asyncLayoutInflater)
96+
97+ implementation(libs.glide.glide)
98+ kapt(libs.glide.compiler)
99+
100+ implementation(libs.compressor)
101+
102+ implementation(libs.kotlin.stdlib)
103+ implementation(libs.kotlin.coroutine.android)
104+ implementation(libs.kotlin.coroutine.core)
105+
106+ implementation(libs.appcompat)
107+ implementation(libs.material)
108+ implementation(libs.fragment.ktx)
109+ implementation(libs.activity.ktx)
110+ implementation(libs.lifecycle.runtime.ktx)
111+ implementation(libs.lifecycle.livedata.ktx)
112+ implementation(libs.lifecycle.viewModel.ktx)
113+ implementation(libs.viewpager2)
114+ implementation(libs.recyclerview)
115+ implementation(libs.constraintLayout)
116+ implementation(libs.exifInterface)
117+ implementation(libs.palette.ktx)
118+ implementation(libs.profieinstaller)
119+
120+ implementation(libs.colorpicker)
121+
122+
123+ testImplementation(libs.test.junit)
124+ testImplementation(libs.test.rules)
125+ testImplementation(libs.test.runner)
126+ androidTestImplementation(libs.mockito.core)
127+ androidTestImplementation(libs.mockito.android)
128+ androidTestImplementation(libs.robolectric)
129+ androidTestImplementation(libs.hamcrest.library)
130+ androidTestImplementation(libs.test.espresso.core)
131+ androidTestImplementation(libs.test.uiautomator)
132+ androidTestImplementation(libs.test.ext.junit)
125133}
0 commit comments