yayan 1 year ago
parent
commit
3eaeb87f70
4 changed files with 24 additions and 11 deletions
  1. BIN
      alpha.jks
  2. 21 7
      app/build.gradle
  3. 3 3
      cpaas-lite/build.gradle
  4. 0 1
      gradle.properties

BIN
alpha.jks


+ 21 - 7
app/build.gradle

@@ -7,6 +7,14 @@ plugins {
 }
 }
 
 
 android {
 android {
+    signingConfigs {
+        debug {
+            storeFile file('../alpha.jks')
+            storePassword 'asdqwe123'
+            keyAlias 'alpha'
+            keyPassword 'asdqwe123'
+        }
+    }
     namespace 'io.nexilis.alpha'
     namespace 'io.nexilis.alpha'
     compileSdk 34
     compileSdk 34
 
 
@@ -24,9 +32,13 @@ android {
     }
     }
 
 
     buildTypes {
     buildTypes {
+        debug {
+            signingConfig signingConfigs.debug
+        }
         release {
         release {
             minifyEnabled false
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+            signingConfig signingConfigs.debug
         }
         }
     }
     }
     compileOptions {
     compileOptions {
@@ -38,6 +50,7 @@ android {
     }
     }
     buildFeatures {
     buildFeatures {
         compose true
         compose true
+        buildConfig true
     }
     }
     composeOptions {
     composeOptions {
         kotlinCompilerExtensionVersion '1.5.3'
         kotlinCompilerExtensionVersion '1.5.3'
@@ -56,23 +69,24 @@ dependencies {
     implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0"
     implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0"
     implementation 'androidx.activity:activity-compose:1.8.2'
     implementation 'androidx.activity:activity-compose:1.8.2'
     implementation project(path: ':cpaas-lite')
     implementation project(path: ':cpaas-lite')
-    testImplementation 'junit:junit:4.13.2'
-    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
-    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
+    testImplementation("junit:junit:4.13.2")
+    androidTestImplementation("androidx.test.ext:junit:1.1.5")
+    androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
+    androidTestImplementation(platform("androidx.compose:compose-bom:2024.02.01"))
+    androidTestImplementation("androidx.compose.ui:ui-test-junit4")
+    debugImplementation("androidx.compose.ui:ui-tooling")
+    debugImplementation("androidx.compose.ui:ui-test-manifest")
 
 
     implementation 'androidx.navigation:navigation-compose:2.7.7'
     implementation 'androidx.navigation:navigation-compose:2.7.7'
     implementation 'io.coil-kt:coil-compose:2.2.2'
     implementation 'io.coil-kt:coil-compose:2.2.2'
 
 
-    implementation platform('androidx.compose:compose-bom:2024.02.00')
+    implementation platform('androidx.compose:compose-bom:2024.02.01')
     implementation "androidx.compose.ui:ui"
     implementation "androidx.compose.ui:ui"
     implementation "androidx.compose.ui:ui-tooling-preview"
     implementation "androidx.compose.ui:ui-tooling-preview"
     implementation 'androidx.compose.material3:material3'
     implementation 'androidx.compose.material3:material3'
     implementation "androidx.compose.material:material-icons-extended"
     implementation "androidx.compose.material:material-icons-extended"
     implementation "androidx.compose.runtime:runtime"
     implementation "androidx.compose.runtime:runtime"
     implementation "androidx.compose.runtime:runtime-livedata"
     implementation "androidx.compose.runtime:runtime-livedata"
-    debugImplementation "androidx.compose.ui:ui-tooling"
-    debugImplementation "androidx.compose.ui:ui-test-manifest"
-    androidTestImplementation "androidx.compose.ui:ui-test-junit4"
 
 
     implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
     implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
     implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
     implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"

+ 3 - 3
cpaas-lite/build.gradle

@@ -38,9 +38,9 @@ dependencies {
     implementation 'androidx.core:core-ktx:1.12.0'
     implementation 'androidx.core:core-ktx:1.12.0'
     implementation files('libs/annotation.jar')
     implementation files('libs/annotation.jar')
 
 
-    testImplementation 'junit:junit:4.13.2'
-    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
-    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
+    testImplementation("junit:junit:4.13.2")
+    androidTestImplementation("androidx.test.ext:junit:1.1.5")
+    androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
 
 
     implementation "androidx.room:room-runtime:2.6.1"
     implementation "androidx.room:room-runtime:2.6.1"
     annotationProcessor("androidx.room:room-compiler:2.6.1")
     annotationProcessor("androidx.room:room-compiler:2.6.1")

+ 0 - 1
gradle.properties

@@ -21,5 +21,4 @@ kotlin.code.style=official
 # resources declared in the library itself and none from the library's dependencies,
 # resources declared in the library itself and none from the library's dependencies,
 # thereby reducing the size of the R class for that library
 # thereby reducing the size of the R class for that library
 android.nonTransitiveRClass=true
 android.nonTransitiveRClass=true
-android.defaults.buildfeatures.buildconfig=true
 android.nonFinalResIds=false
 android.nonFinalResIds=false