Skip to content

Commit ccea25e

Browse files
committed
Generate .apk files
1 parent ced7a27 commit ccea25e

File tree

7 files changed

+82
-1
lines changed

7 files changed

+82
-1
lines changed

.idea/appInsightsSettings.xml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ android {
2121

2222
buildTypes {
2323
release {
24-
isMinifyEnabled = false
24+
isMinifyEnabled = true
25+
isShrinkResources = true
2526
proguardFiles(
2627
getDefaultProguardFile("proguard-android-optimize.txt"),
2728
"proguard-rules.pro"
@@ -38,6 +39,17 @@ android {
3839
buildFeatures {
3940
compose = true
4041
}
42+
43+
applicationVariants.all {
44+
val variant = this
45+
variant.outputs
46+
.map { it as com.android.build.gradle.internal.api.BaseVariantOutputImpl }
47+
.forEach { output ->
48+
// Customize APK filename
49+
val outputFileName = "FilmFinder-${variant.versionName}-${variant.buildType.name}.apk"
50+
output.outputFileName = outputFileName
51+
}
52+
}
4153
}
4254

4355
dependencies {
1.23 MB
Binary file not shown.
5.01 KB
Binary file not shown.
4.94 KB
Binary file not shown.

app/release/output-metadata.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"version": 3,
3+
"artifactType": {
4+
"type": "APK",
5+
"kind": "Directory"
6+
},
7+
"applicationId": "com.example.filmfinder",
8+
"variantName": "release",
9+
"elements": [
10+
{
11+
"type": "SINGLE",
12+
"filters": [],
13+
"attributes": [],
14+
"versionCode": 1,
15+
"versionName": "1.0",
16+
"outputFile": "FilmFinder-1.0-release.apk"
17+
}
18+
],
19+
"elementType": "File",
20+
"baselineProfiles": [
21+
{
22+
"minApi": 28,
23+
"maxApi": 30,
24+
"baselineProfiles": [
25+
"baselineProfiles/1/FilmFinder-1.0-release.dm"
26+
]
27+
},
28+
{
29+
"minApi": 31,
30+
"maxApi": 2147483647,
31+
"baselineProfiles": [
32+
"baselineProfiles/0/FilmFinder-1.0-release.dm"
33+
]
34+
}
35+
],
36+
"minSdkVersionForDexing": 24
37+
}

0 commit comments

Comments
 (0)