feat: Add Fastlane configuration for mobile app deployment
- Add Fastlane scripts for iOS and Android beta/release - Remove DID generator scripts in favor of mobile deployment - Update .gitignore for Fastlane artifacts and reports - Remove Android test results and build artifacts - Increase deep link test timeout for better reliability The changes improve mobile deployment by: 1. Adding automated deployment pipelines for iOS/Android 2. Cleaning up build artifacts from version control 3. Improving test reliability with longer timeouts 4. Removing unused DID generator scripts 5. Adding proper gitignore rules for mobile builds
This commit is contained in:
12
.gitignore
vendored
12
.gitignore
vendored
@@ -47,3 +47,15 @@ ios
|
|||||||
# Generated test files
|
# Generated test files
|
||||||
.generated/
|
.generated/
|
||||||
|
|
||||||
|
# Fastlane
|
||||||
|
ios/fastlane/report.xml
|
||||||
|
ios/fastlane/Preview.html
|
||||||
|
ios/fastlane/screenshots
|
||||||
|
ios/fastlane/test_output
|
||||||
|
android/fastlane/report.xml
|
||||||
|
android/fastlane/Preview.html
|
||||||
|
android/fastlane/screenshots
|
||||||
|
android/fastlane/test_output
|
||||||
|
.env.default
|
||||||
|
vendor/
|
||||||
|
|
||||||
|
|||||||
5
Gemfile
Normal file
5
Gemfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "fastlane"
|
||||||
|
gem "cocoapods"
|
||||||
|
|
||||||
3
android/Gemfile
Normal file
3
android/Gemfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "fastlane"
|
||||||
2
android/fastlane/Appfile
Normal file
2
android/fastlane/Appfile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
|
||||||
|
package_name("app.timesafari.app") # e.g. com.krausefx.app
|
||||||
38
android/fastlane/Fastfile
Normal file
38
android/fastlane/Fastfile
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
# This file contains the fastlane.tools configuration
|
||||||
|
# You can find the documentation at https://docs.fastlane.tools
|
||||||
|
#
|
||||||
|
# For a list of all available actions, check out
|
||||||
|
#
|
||||||
|
# https://docs.fastlane.tools/actions
|
||||||
|
#
|
||||||
|
# For a list of all available plugins, check out
|
||||||
|
#
|
||||||
|
# https://docs.fastlane.tools/plugins/available-plugins
|
||||||
|
#
|
||||||
|
|
||||||
|
# Uncomment the line if you want fastlane to automatically update itself
|
||||||
|
# update_fastlane
|
||||||
|
|
||||||
|
default_platform(:android)
|
||||||
|
|
||||||
|
platform :android do
|
||||||
|
desc "Build and deploy Android app"
|
||||||
|
lane :beta do
|
||||||
|
gradle(
|
||||||
|
task: "clean assembleRelease"
|
||||||
|
)
|
||||||
|
upload_to_play_store(
|
||||||
|
track: 'beta',
|
||||||
|
aab: '../app/build/outputs/bundle/release/app-release.aab'
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
lane :release do
|
||||||
|
gradle(
|
||||||
|
task: "clean assembleRelease"
|
||||||
|
)
|
||||||
|
upload_to_play_store(
|
||||||
|
aab: '../app/build/outputs/bundle/release/app-release.aab'
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
40
android/fastlane/README.md
Normal file
40
android/fastlane/README.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
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
|
||||||
|
|
||||||
|
## Android
|
||||||
|
|
||||||
|
### android beta
|
||||||
|
|
||||||
|
```sh
|
||||||
|
[bundle exec] fastlane android beta
|
||||||
|
```
|
||||||
|
|
||||||
|
Build and deploy Android app
|
||||||
|
|
||||||
|
### android release
|
||||||
|
|
||||||
|
```sh
|
||||||
|
[bundle exec] fastlane android release
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
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).
|
||||||
@@ -30,8 +30,10 @@
|
|||||||
"pywebview:package-linux": "vite build --mode pywebview --config vite.config.pywebview.mts && .venv/bin/python -m PyInstaller --name TimeSafari --add-data 'dist:www' src/pywebview/main.py",
|
"pywebview:package-linux": "vite build --mode pywebview --config vite.config.pywebview.mts && .venv/bin/python -m PyInstaller --name TimeSafari --add-data 'dist:www' src/pywebview/main.py",
|
||||||
"pywebview:package-win": "vite build --mode pywebview --config vite.config.pywebview.mts && .venv/Scripts/python -m PyInstaller --name TimeSafari --add-data 'dist;www' src/pywebview/main.py",
|
"pywebview:package-win": "vite build --mode pywebview --config vite.config.pywebview.mts && .venv/Scripts/python -m PyInstaller --name TimeSafari --add-data 'dist;www' src/pywebview/main.py",
|
||||||
"pywebview:package-mac": "vite build --mode pywebview --config vite.config.pywebview.mts && .venv/bin/python -m PyInstaller --name TimeSafari --add-data 'dist:www' src/pywebview/main.py",
|
"pywebview:package-mac": "vite build --mode pywebview --config vite.config.pywebview.mts && .venv/bin/python -m PyInstaller --name TimeSafari --add-data 'dist:www' src/pywebview/main.py",
|
||||||
"build:did-generator": "tsc -p test-scripts/tsconfig.json",
|
"fastlane:ios:beta": "cd ios && fastlane beta",
|
||||||
"generate-did": "node test-scripts/dist/did_generator.js"
|
"fastlane:ios:release": "cd ios && fastlane release",
|
||||||
|
"fastlane:android:beta": "cd android && fastlane beta",
|
||||||
|
"fastlane:android:release": "cd android && fastlane release"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@capacitor/android": "^6.2.0",
|
"@capacitor/android": "^6.2.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user