Skip to content

Commit 3798288

Browse files
author
Nick Klingensmith
committed
Move keystore to a location that won't get cleaned.
This prevents full rebuilds from triggering signature mismatches when installing APKs. Signed-off-by: Nick Klingensmith <[email protected]>
1 parent 3bfe860 commit 3798288

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
.vscode/
33
.idea/
44
.gradle/
5-
build*/
5+
build*/
6+
7+
debug.keystore

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ cmake -B build-android ^
108108
-DCMAKE_SYSTEM_NAME=Android ^
109109
-DCMAKE_SYSTEM_VERSION=32 ^
110110
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
111+
# Same, but as a single line. Nicer if not using a .bat
112+
cmake -B build-android -G Ninja -DCMAKE_ANDROID_NDK=%ANDROID_NDK_HOME% -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=32 -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
111113
# Build an APK, install, and run it
112114
cmake --build build-android -j8 --target run
113115
# Or just build an APK

android/AndroidBuild.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ find_program(KEYTOOL NAMES keytool REQUIRED PATHS ${JAVA_HOME_BIN})
7474
###############################################################################
7575

7676
# Set default keystore variables
77-
set(DEFAULT_KEYSTORE "${CMAKE_CURRENT_BINARY_DIR}/debug.keystore")
77+
set(DEFAULT_KEYSTORE "${CMAKE_CURRENT_SOURCE_DIR}/android/debug.keystore")
7878
set(DEFAULT_KEYSTORE_ALIAS "androiddebugkey")
7979
set(DEFAULT_KEYSTORE_PASS "android")
8080
set(DEFAULT_KEY_ALIAS_PASS "android")

0 commit comments

Comments
 (0)