Skip to content

Commit b035334

Browse files
authored
Merge pull request #734 from synonymdev/release/173
chore: release 2.0.0-rc.7
2 parents 1cbc4d4 + a4abdd5 commit b035334

File tree

7 files changed

+54
-7
lines changed

7 files changed

+54
-7
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
- name: Rename APK
5959
run: |
60-
apk=$(find app/build/outputs/apk/dev/debug -name 'bitkit-android-*-devDebug.apk')
60+
apk=$(find app/build/outputs/apk/dev/debug -name 'bitkit-dev-debug-*-universal.apk')
6161
mv "$apk" app/build/outputs/apk/dev/debug/bitkit_e2e.apk
6262
6363
- name: Upload APK

.github/workflows/e2e_migration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Rename APK
5555
run: |
56-
apk=$(find app/build/outputs/apk/dev/debug -name 'bitkit-android-*-devDebug.apk')
56+
apk=$(find app/build/outputs/apk/dev/debug -name 'bitkit-dev-debug-*-universal.apk')
5757
mv "$apk" app/build/outputs/apk/dev/debug/bitkit_e2e.apk
5858
5959
- name: Upload APK

app/build.gradle.kts

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
2+
import com.android.build.gradle.internal.tasks.FinalizeBundleTask
23
import io.gitlab.arturbosch.detekt.Detekt
34
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
45
import org.gradle.api.tasks.testing.logging.TestLogEvent
@@ -54,8 +55,8 @@ android {
5455
applicationId = "to.bitkit"
5556
minSdk = 28
5657
targetSdk = 36
57-
versionCode = 172
58-
versionName = "2.0.0-rc.6"
58+
versionCode = 174
59+
versionName = "2.0.0"
5960
testInstrumentationRunner = "to.bitkit.test.HiltTestRunner"
6061
vectorDrawables {
6162
useSupportLibrary = true
@@ -163,6 +164,16 @@ android {
163164
excludes += "META-INF/versions/9/OSGI-INF/MANIFEST.MF"
164165
}
165166
}
167+
splits {
168+
abi {
169+
isEnable = true
170+
reset()
171+
// Only architectures supported by native libs (ldk-node, bitkit-core)
172+
// x86 not supported; x86_64 only for debug/emulator
173+
include("armeabi-v7a", "arm64-v8a")
174+
isUniversalApk = true
175+
}
176+
}
166177
testOptions {
167178
unitTests {
168179
isReturnDefaultValues = true // mockito
@@ -174,12 +185,27 @@ android {
174185
}
175186
applicationVariants.all {
176187
val variant = this
188+
val bitkit = "bitkit"
189+
val flavorName = variant.flavorName
190+
val variantName = variant.buildType.name
191+
val versionCode = defaultConfig.versionCode
177192
outputs
178193
.map { it as BaseVariantOutputImpl }
179194
.forEach { output ->
180-
val apkName = "bitkit-android-${defaultConfig.versionCode}-${variant.name}.apk"
195+
val abi = output.getFilter("ABI") ?: "universal"
196+
val apkName = "$bitkit-$flavorName-$variantName-$versionCode-$abi.apk"
181197
output.outputFileName = apkName
182198
}
199+
200+
// Rename AAB bundle
201+
tasks.named(
202+
"sign${variant.name.replaceFirstChar { it.uppercase() }}Bundle",
203+
FinalizeBundleTask::class.java,
204+
) {
205+
val aabName = "$bitkit-$flavorName-$variantName-$versionCode.aab"
206+
val outputDir = finalBundleFile.asFile.get().parentFile
207+
finalBundleFile.set(File(outputDir, aabName))
208+
}
183209
}
184210
}
185211

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
<uses-permission android:name="android.permission.INTERNET" />
1818
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
1919
<uses-permission android:name="android.permission.CAMERA" />
20-
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
20+
<uses-permission
21+
android:name="android.permission.FOREGROUND_SERVICE"
22+
tools:ignore="ForegroundServicePermission,ForegroundServicesPolicy" />
2123
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
2224
<!-- Required for E2E tests connecting to local Electrum server (Android 16+) -->
2325
<uses-permission
@@ -28,6 +30,8 @@
2830
<application
2931
android:name=".App"
3032
android:allowBackup="false"
33+
android:fullBackupContent="@xml/backup_rules"
34+
android:dataExtractionRules="@xml/data_extraction_rules"
3135
android:icon="${app_icon}"
3236
android:label="@string/app_name"
3337
android:roundIcon="${app_icon_round}"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<full-backup-content>
3+
<exclude domain="root" path="." />
4+
<exclude domain="file" path="." />
5+
<exclude domain="database" path="." />
6+
<exclude domain="sharedpref" path="." />
7+
<exclude domain="external" path="." />
8+
</full-backup-content>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data-extraction-rules>
3+
<cloud-backup>
4+
<!-- Empty section = nothing backed up to cloud -->
5+
</cloud-backup>
6+
<device-transfer>
7+
<!-- Empty section = nothing transferred device-to-device -->
8+
</device-transfer>
9+
</data-extraction-rules>

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
5858
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor" }
5959
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
6060
ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }
61-
ldk-node-android = { module = "com.github.synonymdev.ldk-node:ldk-node-android", version = "v0.7.0-rc.17" }
61+
ldk-node-android = { module = "com.github.synonymdev.ldk-node:ldk-node-android", version = "v0.7.0-rc.18" }
6262
lifecycle-process = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "lifecycle" }
6363
lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" }
6464
lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "lifecycle" }

0 commit comments

Comments
 (0)