Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
276dd6c97f | ||
|
|
479b23690c |
@@ -11,6 +11,20 @@ jobs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Build apk
|
||||||
run: devenv shell build-android
|
run: devenv shell build-android
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,22 @@ jobs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Build apk
|
||||||
run: devenv shell build-android
|
run: devenv shell build-android
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
import java.util.Properties
|
||||||
|
import java.io.FileInputStream
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
id("kotlin-android")
|
id("kotlin-android")
|
||||||
@@ -5,6 +8,12 @@ plugins {
|
|||||||
id("dev.flutter.flutter-gradle-plugin")
|
id("dev.flutter.flutter-gradle-plugin")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val keystoreProperties = Properties()
|
||||||
|
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||||
|
if (keystorePropertiesFile.exists()) {
|
||||||
|
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.example.sheetless"
|
namespace = "com.example.sheetless"
|
||||||
compileSdk = flutter.compileSdkVersion
|
compileSdk = flutter.compileSdkVersion
|
||||||
@@ -30,11 +39,18 @@ android {
|
|||||||
versionName = flutter.versionName
|
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 {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
// TODO: Add your own signing config for the release build.
|
signingConfig = signingConfigs.getByName("release")
|
||||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
||||||
signingConfig = signingConfigs.getByName("debug")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user