Skip to content

Commit

Permalink
566: Fix ios releases and tidy up a little
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenkleinle committed Feb 4, 2025
1 parent f891bc7 commit c66e3d3
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ jobs:
directory: android
- install_gradle_dependencies
- run:
command: bundle exec fastlane keystore
command: bundle exec fastlane android keystore
name: '[FL] Prepare Android Keystore'
working_directory: android
- run:
Expand Down
2 changes: 1 addition & 1 deletion .circleci/src/jobs/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
- install_gradle_dependencies
- run:
name: '[FL] Prepare Android Keystore'
command: bundle exec fastlane keystore
command: bundle exec fastlane android keystore
working_directory: android
- run:
name: '[FL] Build'
Expand Down
16 changes: 7 additions & 9 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ KEYSTORE_PASSWORD = ENV["KEYSTORE_PASSWORD"]
SIGNING_REPOSITORY_KEYSTORE_PATH = "signing/android/gruene-app.jks.gpg"
LOCAL_KEYSTORE_PATH = "#{ENV['HOME']}/keystore.jks"

default_platform(:android)

platform :android do
desc "Download and decrypt the JKS"
lane :keystore do
Expand All @@ -25,7 +23,9 @@ platform :android do
sh("gpg --verbose --passphrase #{SIGNING_REPOSITORY_KEYSTORE_PASSWORD} --pinentry-mode loopback -o #{LOCAL_KEYSTORE_PATH} -d #{SIGNING_REPOSITORY_KEYSTORE_PATH}")
end


# The following parameters have to be passed:
# version_name: The version name the build should use
# version_code: The version code the build should use
desc "Create an android release build"
lane :build do |options|
version_code = options[:version_code]
Expand Down Expand Up @@ -96,21 +96,20 @@ platform :android do
version_code: version_code,
version_name: version_name,
package_name: APPLICATION_ID,
track: production_delivery === true ? "production" : "beta",
track: production_delivery ? "production" : "beta",
skip_upload_changelogs: true,
skip_upload_images: true,
skip_upload_screenshots: true,
skip_upload_metadata: true,
# TODO change to "completed"
release_status: production_delivery === true ? "draft" : "completed",
release_status: production_delivery ? "draft" : "completed",
skip_upload_apk: true,
aab: "#{ENV['HOME']}/#{aab_path}",
json_key_data: ENV["GOOGLE_SERVICE_ACCOUNT_JSON"]
)
end

desc "Promote the android app from beta to production"
lane :promote do |options|
lane :promote do
ensure_env_vars(
env_vars: ["GOOGLE_SERVICE_ACCOUNT_JSON"]
)
Expand Down Expand Up @@ -144,10 +143,9 @@ platform :android do
skip_upload_screenshots: true,
skip_upload_metadata: true,
skip_upload_apk: true,
# TODO change to "completed"
skip_upload_aab: true,
release_status: "draft",
json_key_data: ENV["GOOGLE_SERVICE_ACCOUNT_JSON"]
)
end

end
22 changes: 7 additions & 15 deletions android/fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,29 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

Download and decrypt the JKS

### android validate_play_store_key

```sh
[bundle exec] fastlane android validate_play_store_key
```

Validate Play Store Key

### android build

```sh
[bundle exec] fastlane android build
```

Build Android App
Create an android release build

### android upload_to_playstore
### android upload

```sh
[bundle exec] fastlane android upload_to_playstore
[bundle exec] fastlane android upload
```

Upload Android App to Google Play
Deliver android app to beta or production

### android playstore_promote
### android promote

```sh
[bundle exec] fastlane android playstore_promote
[bundle exec] fastlane android promote
```

Promote the most recent version in the beta track to the production track in the Play Store.
Promote the android app from beta to production

----

Expand Down
2 changes: 0 additions & 2 deletions ios/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# More information: https://docs.fastlane.tools/advanced/#appfile

apple_id "[email protected]"
team_id "BH3ML3K6G2"
app_identifier "de.gruene.wkapp"
5 changes: 5 additions & 0 deletions ios/fastlane/Deliverfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
languages(['de-DE'])

release_notes({
'default' => "Wir haben die App für Dich verbessert"
})
6 changes: 1 addition & 5 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ before_all do
setup_circle_ci
end

default_platform(:ios)

platform :ios do
private_lane :apple_auth do |options|
private_lane :apple_auth do
ensure_env_vars(
env_vars: ["APP_STORE_CONNECT_API_KEY_ID", "APP_STORE_CONNECT_API_ISSUER_ID", "APP_STORE_CONNECT_API_KEY_CONTENT"]
)
Expand Down Expand Up @@ -102,7 +100,6 @@ platform :ios do
ipa: "#{ENV['HOME']}/#{ipa_path}",
app_version: version_name,
submit_for_review: true,
# TODO change to true
automatic_release: false,
force: true,
skip_screenshots: true,
Expand Down Expand Up @@ -134,7 +131,6 @@ platform :ios do
build_number: testflight_build_number.to_s,
app_identifier: BUNDLE_IDENTIFIER,
submit_for_review: true,
# TODO change to true
automatic_release: false,
force: true,
skip_metadata: false,
Expand Down

0 comments on commit c66e3d3

Please sign in to comment.