Skip to content

Commit 3336d77

Browse files
committed
update build config
1 parent fbf8c77 commit 3336d77

5 files changed

Lines changed: 29 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Open this project in Android Studio and navigate to:
134134

135135
## NPU High Resolution Support
136136

137-
After downloading a 512 resolution model, you can download patches to enable 768×768 and 1024×1024 image generation. Please note that quantized high-resolution models may produce images with poor layout. We recommend first generating at 512 resolution, then using the high-resolution model for img2img (which is essentially Highres.fix). The suggested img2img denoise_strength is around 0.75.
137+
After downloading a 512 resolution model, you can download patches to enable 768×768 and 1024×1024 image generation. Please note that quantized high-resolution models may produce images with poor layout. We recommend first generating at 512 resolution, then using the high-resolution model for img2img (which is essentially Highres.fix). The suggested img2img denoise_strength is around 0.8.
138138

139139
## Device Compatibility
140140

app/build.gradle.kts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ android {
1212
minSdk = 28
1313
// minSdk = 31
1414
targetSdk = 36
15-
versionCode = 44
16-
versionName = "1.9.0"
15+
versionCode = 46
16+
versionName = "1.9.1"
1717

1818
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1919
vectorDrawables {
@@ -25,6 +25,15 @@ android {
2525
}
2626
}
2727

28+
signingConfigs {
29+
create("release") {
30+
storeFile = file(project.findProperty("RELEASE_STORE_FILE") as String? ?: "keystore.jks")
31+
storePassword = project.findProperty("RELEASE_STORE_PASSWORD") as String?
32+
keyAlias = project.findProperty("RELEASE_KEY_ALIAS") as String?
33+
keyPassword = project.findProperty("RELEASE_KEY_PASSWORD") as String?
34+
}
35+
}
36+
2837
bundle {
2938
density {
3039
enableSplit = true
@@ -38,16 +47,21 @@ android {
3847
}
3948
buildTypes {
4049
release {
41-
isMinifyEnabled = false
50+
signingConfig = signingConfigs.getByName("release")
51+
isMinifyEnabled = true
52+
isShrinkResources = true
4253
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
4354
}
55+
debug {
56+
// signingConfig = signingConfigs.getByName("release")
57+
}
4458
}
4559
compileOptions {
46-
sourceCompatibility = JavaVersion.VERSION_1_8
47-
targetCompatibility = JavaVersion.VERSION_1_8
60+
sourceCompatibility = JavaVersion.VERSION_17
61+
targetCompatibility = JavaVersion.VERSION_17
4862
}
4963
kotlinOptions {
50-
jvmTarget = "1.8"
64+
jvmTarget = "17"
5165
}
5266
buildFeatures {
5367
compose = true

app/proguard-rules.pro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
23+
-keep class io.moyuru.cropify.CropifyState {
24+
private androidx.compose.runtime.MutableState frameRect$delegate;
25+
private androidx.compose.runtime.MutableState imageRect$delegate;
26+
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
agp = "8.9.0"
2+
agp = "8.13.0"
33
kotlin = "1.9.0"
44
coreKtx = "1.16.0"
55
junit = "4.13.2"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Jan 09 12:22:35 GMT 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)