Compare commits
2
Commits
52eb2fbab1
...
276dd6c97f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
276dd6c97f | ||
|
|
479b23690c |
@@ -11,6 +11,20 @@ jobs:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Decode keystore
|
||||
run: echo "$KEYSTORE_BASE64" | base64 --decode > android/app/keystore.jks
|
||||
env:
|
||||
KEYSTORE_BASE64: ${{ secrets.FRAJUL_KEYSTORE_BASE64 }}
|
||||
|
||||
- name: Create keystore.properties
|
||||
run: |
|
||||
cat <<EOF > android/keystore.properties
|
||||
storeFile=keystore.jks
|
||||
storePassword=${{ secrets.FRAJUL_KEYSTORE_PASSWORD }}
|
||||
keyAlias=${{ secrets.FRAJUL_KEYSTORE_ALIAS }}
|
||||
keyPassword=${{ secrets.FRAJUL_KEYSTORE_KEY_PASSWORD }}
|
||||
EOF
|
||||
|
||||
- name: Build apk
|
||||
run: devenv shell build-android
|
||||
|
||||
|
||||
@@ -11,6 +11,22 @@ jobs:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Decode keystore
|
||||
run: echo "$KEYSTORE_BASE64" | base64 --decode > android/app/keystore.jks
|
||||
env:
|
||||
KEYSTORE_BASE64: ${{ secrets.FRAJUL_KEYSTORE_BASE64 }}
|
||||
|
||||
- name: Create keystore.properties
|
||||
run: |
|
||||
cat <<EOF > android/keystore.properties
|
||||
storeFile=keystore.jks
|
||||
storePassword=${{ secrets.FRAJUL_KEYSTORE_PASSWORD }}
|
||||
keyAlias=${{ secrets.FRAJUL_KEYSTORE_ALIAS }}
|
||||
keyPassword=${{ secrets.FRAJUL_KEYSTORE_KEY_PASSWORD }}
|
||||
EOF
|
||||
|
||||
- name: Build apk
|
||||
run: devenv shell build-android
|
||||
- name: Build apk
|
||||
run: devenv shell build-android
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import java.util.Properties
|
||||
import java.io.FileInputStream
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
@@ -5,6 +8,12 @@ plugins {
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
val keystoreProperties = Properties()
|
||||
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.example.sheetless"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
@@ -30,11 +39,18 @@ android {
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
keyAlias = keystoreProperties["keyAlias"] as String
|
||||
keyPassword = keystoreProperties["keyPassword"] as String
|
||||
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
|
||||
storePassword = keystoreProperties["storePassword"] as String
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user