Open .slatepack file with the app #13

Merged
ardocrat merged 28 commits from slatepack_ext_file into master 2024-09-16 19:08:27 +03:00
2 changed files with 21 additions and 13 deletions
Showing only changes of commit d39e2ec21e - Show all commits

View file

@ -2,10 +2,6 @@ plugins {
id 'com.android.application'
}
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
compileSdk 33
ndkVersion '26.0.10792818'
@ -18,20 +14,32 @@ android {
versionName "0.1.3"
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
if (keystorePropertiesFile.exists()) {
signedRelease {
initWith release
signingConfig signingConfigs.release
}
}
debug {
minifyEnabled false

View file

@ -59,12 +59,12 @@ function build_apk() {
cd android
./gradlew clean
./gradlew assembleRelease
./gradlew assembleSignedRelease
# Setup release file name
if [ -n $1 ]; then
rm -rf grim-${version}-$1.apk
mv app/build/outputs/apk/release/app-release.apk grim-${version}-$1.apk
mv app/build/outputs/apk/signedRelease/app-signedRelease.apk grim-${version}-$1.apk
fi
cd ..