Move fastlane folder to root

This is needed to be able to publish on f-droid #84
This commit is contained in:
Roland Geider
2021-12-03 12:04:51 +01:00
parent c6bcc3779c
commit d17717cb1a
50 changed files with 43 additions and 23 deletions

View File

@@ -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
View File

@@ -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
View File

@@ -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

View File

@@ -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]

View File

@@ -1,2 +0,0 @@
json_key_file("fastlane/envfiles/playstore.json")
package_name("de.wger.flutter")

2
fastlane/Appfile Normal file
View File

@@ -0,0 +1,2 @@
json_key_file("fastlane/metadata/android/envfiles/playstore.json")
package_name("de.wger.flutter")

View File

@@ -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,

View File

@@ -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).

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -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

Binary file not shown.

View 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: