chore: update Fastlane configuration for Android and iOS
- Added functionality to write changelog links for Android releases in Fastfile. - Updated iOS Fastfile to generate release notes with the new version link. - Modified Info.plist to include encryption declaration.
This commit is contained in:
@@ -15,11 +15,33 @@
|
||||
|
||||
default_platform(:android)
|
||||
|
||||
def write_android_changelog
|
||||
require 'yaml'
|
||||
pubspec_path = File.expand_path('../../pubspec.yaml', __dir__)
|
||||
pubspec = YAML.load_file(pubspec_path)
|
||||
version = pubspec['version']
|
||||
semver, build = version.split('+', 2)
|
||||
tag = "v#{semver}"
|
||||
link = "https://github.com/cogwheel0/conduit/releases/tag/#{tag}"
|
||||
|
||||
changelog_dir = File.expand_path('metadata/android/en-US/changelogs', __dir__)
|
||||
Dir.mkdir(changelog_dir) unless Dir.exist?(changelog_dir)
|
||||
changelog_file = File.join(changelog_dir, "#{build}.txt")
|
||||
File.write(changelog_file, link + "\n")
|
||||
end
|
||||
|
||||
desc "Push a new release build to the Google Play"
|
||||
lane :release do
|
||||
write_android_changelog
|
||||
upload_to_play_store(
|
||||
json_key_data: ENV['FASTLANE_JSON_KEY']
|
||||
json_key: ENV['FASTLANE_JSON_KEY_PATH'],
|
||||
track: 'production',
|
||||
aab: '../build/app/outputs/bundle/release/app-release.aab'
|
||||
aab: '../build/app/outputs/bundle/release/app-release.aab',
|
||||
skip_upload_apk: true,
|
||||
skip_upload_images: true,
|
||||
skip_upload_screenshots: true,
|
||||
skip_upload_metadata: false,
|
||||
skip_upload_changelogs: false,
|
||||
skip_upload_aab: false,
|
||||
)
|
||||
end
|
||||
|
||||
30
android/fastlane/README.md
Normal file
30
android/fastlane/README.md
Normal file
@@ -0,0 +1,30 @@
|
||||
fastlane documentation
|
||||
----
|
||||
|
||||
# Installation
|
||||
|
||||
Make sure you have the latest version of the Xcode command line tools installed:
|
||||
|
||||
```sh
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
|
||||
|
||||
# Available Actions
|
||||
|
||||
### release
|
||||
|
||||
```sh
|
||||
[bundle exec] fastlane release
|
||||
```
|
||||
|
||||
Push a new release build to the Google Play
|
||||
|
||||
----
|
||||
|
||||
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).
|
||||
@@ -0,0 +1 @@
|
||||
https://github.com/cogwheel0/conduit/releases/tag/v2.1.6
|
||||
@@ -97,5 +97,8 @@
|
||||
<array>
|
||||
<string>app.cogwheel.conduit.refresh</string>
|
||||
</array>
|
||||
<!-- Encryption Declaration -->
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -14,6 +14,15 @@
|
||||
# update_fastlane
|
||||
default_platform(:ios)
|
||||
lane :release do
|
||||
require 'yaml'
|
||||
pubspec_path = File.expand_path('../../pubspec.yaml', __dir__)
|
||||
pubspec = YAML.load_file(pubspec_path)
|
||||
version = pubspec['version'] # e.g., "2.1.6+31"
|
||||
semver, _build = version.split('+', 2)
|
||||
tag = "v#{semver}"
|
||||
link = "https://github.com/cogwheel0/conduit/releases/tag/#{tag}"
|
||||
notes_path = File.expand_path('metadata/en-US/release_notes.txt', __dir__)
|
||||
File.write(notes_path, link + "\n")
|
||||
app_store_connect_api_key(
|
||||
key_id: ENV['FASTLANE_API_KEY_ID'],
|
||||
issuer_id: ENV['FASTLANE_API_KEY_ISSUER_ID'],
|
||||
|
||||
@@ -1 +1 @@
|
||||
https://github.com/cogwheel0/conduit/releases/tag/v2.1.4
|
||||
https://github.com/cogwheel0/conduit/releases/tag/v2.1.6
|
||||
|
||||
Reference in New Issue
Block a user