Move fastlane folder to root
This is needed to be able to publish on f-droid #84
2
.github/workflows/android-release.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
|
||||
- name: Decrypt config files
|
||||
run: |
|
||||
cd ./android/fastlane/envfiles
|
||||
cd ./fastlane/android/envfiles
|
||||
chmod +x ./decrypt_secrets.sh
|
||||
./decrypt_secrets.sh
|
||||
env:
|
||||
|
||||
10
.gitignore
vendored
@@ -40,8 +40,10 @@ app.*.symbols
|
||||
# Obfuscation related
|
||||
app.*.map.json
|
||||
|
||||
# Exceptions to above rules.
|
||||
# Remember to never publicly share your keystore.
|
||||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
|
||||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||
/android/fastlane/envfiles/playstore.json
|
||||
/android/fastlane/envfiles/wger.properties
|
||||
/android/fastlane/envfiles/keys.jks
|
||||
/fastlane/metadata/android/envfiles/playstore.json
|
||||
/fastlane/metadata/android/envfiles/wger.properties
|
||||
/fastlane/metadata/android/envfiles/keys.jks
|
||||
/fastlane/metadata/android/envfiles/key.properties
|
||||
|
||||
4
android/.gitignore
vendored
@@ -5,7 +5,3 @@ gradle-wrapper.jar
|
||||
/gradlew.bat
|
||||
/local.properties
|
||||
GeneratedPluginRegistrant.java
|
||||
|
||||
# Remember to never publicly share your keystore.
|
||||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
|
||||
fastlane/envfiles/key.properties
|
||||
|
||||
@@ -27,14 +27,14 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
// Keys for the android play store
|
||||
def keystoreProperties = new Properties()
|
||||
def keystorePropertiesFile = rootProject.file('fastlane/envfiles/key.properties')
|
||||
def keystorePropertiesFile = rootProject.file('../fastlane/metadata/android/envfiles/key.properties')
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||
}
|
||||
|
||||
// Key for wger.de REST API
|
||||
def wgerProperties = new Properties()
|
||||
def localMapsPropertiesFile = rootProject.file('fastlane/envfiles/wger.properties')
|
||||
def localMapsPropertiesFile = rootProject.file('../fastlane/metadata/android/envfiles/wger.properties')
|
||||
if (localMapsPropertiesFile.exists()) {
|
||||
project.logger.info('Load maps properties from local file')
|
||||
localMapsPropertiesFile.withReader('UTF-8') { reader ->
|
||||
@@ -55,7 +55,7 @@ if(wgerApiKey == null){
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
compileSdkVersion 31
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
@@ -69,7 +69,7 @@ android {
|
||||
// Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "de.wger.flutter"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
targetSdkVersion 31
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
manifestPlaceholders = [WGER_API_KEY: wgerApiKey]
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
json_key_file("fastlane/envfiles/playstore.json")
|
||||
package_name("de.wger.flutter")
|
||||
2
fastlane/Appfile
Normal file
@@ -0,0 +1,2 @@
|
||||
json_key_file("fastlane/metadata/android/envfiles/playstore.json")
|
||||
package_name("de.wger.flutter")
|
||||
@@ -25,12 +25,24 @@ end
|
||||
|
||||
platform :android do
|
||||
|
||||
desc "Check playstore configuration"
|
||||
lane :test_configuration do
|
||||
begin
|
||||
upload_to_play_store(
|
||||
track: 'production',
|
||||
validate_only: true,
|
||||
aab: './build/app/outputs/bundle/release/app-release.aab',
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
desc "Upload app to production"
|
||||
lane :production do
|
||||
begin
|
||||
upload_to_play_store(
|
||||
track: 'production',
|
||||
aab: '../build/app/outputs/bundle/release/app-release.aab',
|
||||
aab: './build/app/outputs/bundle/release/app-release.aab',
|
||||
skip_upload_metadata: false,
|
||||
skip_upload_images: false,
|
||||
skip_upload_screenshots: false,
|
||||
@@ -45,7 +57,7 @@ platform :android do
|
||||
begin
|
||||
upload_to_play_store(
|
||||
track: 'alpha',
|
||||
aab: '../build/app/outputs/bundle/release/app-release.aab',
|
||||
aab: './build/app/outputs/bundle/release/app-release.aab',
|
||||
skip_upload_metadata: true,
|
||||
skip_upload_images: true,
|
||||
skip_upload_screenshots: true,
|
||||
@@ -24,6 +24,11 @@ fastlane playstore
|
||||
----
|
||||
|
||||
## Android
|
||||
### android test_configuration
|
||||
```
|
||||
fastlane android test_configuration
|
||||
```
|
||||
Check configuration
|
||||
### android production
|
||||
```
|
||||
fastlane android production
|
||||
@@ -34,14 +39,9 @@ Upload app to production
|
||||
fastlane android update_alpha
|
||||
```
|
||||
Upload closed alpha app and update store entry
|
||||
### android deploy
|
||||
```
|
||||
fastlane android deploy
|
||||
```
|
||||
Deploy a new version to the Google Play
|
||||
|
||||
----
|
||||
|
||||
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
|
||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
|
||||
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
||||
BIN
fastlane/metadata/android/en-US/images/logo.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 631 KiB After Width: | Height: | Size: 631 KiB |
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
@@ -3,6 +3,9 @@
|
||||
# --batch to prevent interactive command
|
||||
# --yes to assume "yes" for questions
|
||||
|
||||
# To encrypt a new version of the keys:
|
||||
# gpg -c filename.json
|
||||
|
||||
echo "decrypting playstore API keys"
|
||||
gpg --quiet --batch --yes --decrypt --passphrase="$DECRYPTKEY_PLAYSTORE" \
|
||||
--output ./playstore.json playstore.json.gpg
|
||||
BIN
fastlane/metadata/android/envfiles/key.properties.gpg
Normal file
@@ -300,6 +300,13 @@ packages:
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_barcode_scanner:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_barcode_scanner
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
flutter_calendar_carousel:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||