diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile
index 79f8ae0..dc29736 100644
--- a/android/fastlane/Fastfile
+++ b/android/fastlane/Fastfile
@@ -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']
- track: 'production',
- aab: '../build/app/outputs/bundle/release/app-release.aab'
- )
+ json_key: ENV['FASTLANE_JSON_KEY_PATH'],
+ track: 'production',
+ 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
diff --git a/android/fastlane/README.md b/android/fastlane/README.md
new file mode 100644
index 0000000..00e0386
--- /dev/null
+++ b/android/fastlane/README.md
@@ -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).
diff --git a/android/fastlane/metadata/android/en-US/changelogs/31.txt b/android/fastlane/metadata/android/en-US/changelogs/31.txt
new file mode 100644
index 0000000..8f0300c
--- /dev/null
+++ b/android/fastlane/metadata/android/en-US/changelogs/31.txt
@@ -0,0 +1 @@
+https://github.com/cogwheel0/conduit/releases/tag/v2.1.6
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 324ee1d..a197667 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -97,5 +97,8 @@
app.cogwheel.conduit.refresh
+
+ ITSAppUsesNonExemptEncryption
+
diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile
index 0c67a81..cb81751 100644
--- a/ios/fastlane/Fastfile
+++ b/ios/fastlane/Fastfile
@@ -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'],
diff --git a/ios/fastlane/metadata/en-US/release_notes.txt b/ios/fastlane/metadata/en-US/release_notes.txt
index a5d6b63..8f0300c 100644
--- a/ios/fastlane/metadata/en-US/release_notes.txt
+++ b/ios/fastlane/metadata/en-US/release_notes.txt
@@ -1 +1 @@
-https://github.com/cogwheel0/conduit/releases/tag/v2.1.4
+https://github.com/cogwheel0/conduit/releases/tag/v2.1.6