Skip to content

Commit

Permalink
build: 👷 Update Fastlane setup
Browse files Browse the repository at this point in the history
iOS&MacOS certificates are stored and managed on Git using Fastlane Match
  • Loading branch information
Chralu committed Nov 27, 2024
1 parent 427b84f commit 1e1139d
Show file tree
Hide file tree
Showing 76 changed files with 215 additions and 555 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ pubspec_overrides.yaml
test/tmp_data

# Fastlane
**/fastlane/*.p8
.env*
**/fastlane/Preview.html
**/fastlane/report.xml
**/fastlane/screenshots
**/fastlane/test_output

# IntelliJ related
*.iml
Expand Down Expand Up @@ -145,9 +151,6 @@ macos/archethic_wallet.app.dSYM.zip
macos/archethic_wallet.pkg
.firebase/hosting.YnVpbGQvd2Vi.cache
node_modules/
Appfile
fastlane/metadata/**/Preview.html
report.xml
linux/appimage/AppDir/data/
linux/appimage/AppDir/lib/
android/secret/ae-wallet-c8d742e33023.json
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ gem "fastlane"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)

gem 'dotenv', groups: [:development, :test]
2 changes: 2 additions & 0 deletions android/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
json_key_file("./secret/ae-wallet-c8d742e33023.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("net.archethic.archethic_wallet") # e.g. com.krausefx.app
53 changes: 53 additions & 0 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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
import '../../fastlane/Utils'

platform :android do
desc "Publish to GooglePlay"
lane :release do
flutter_build("appbundle")

upload_to_play_store(
track: 'production',
version_code: version_code,
aab: '../build/app/outputs/bundle/release/app-release.aab',
)
end

desc "Publish to GooglePlay Beta"
lane :beta do
desc "Deploy to beta canal"
flutter_build("appbundle")

upload_to_play_store(
track: 'beta',
version_code: version_code,
aab: '../build/app/outputs/bundle/release/app-release.aab',
)
end


desc "Publish to GooglePlay Alpha"
lane :alpha do
desc "Deploy to alpha canal"
flutter_build("appbundle")

upload_to_play_store(
track: 'alpha',
version_code: version_code,
aab: '../build/app/outputs/bundle/release/app-release.aab',
)
end
end
48 changes: 48 additions & 0 deletions android/fastlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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 release

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

Publish to GooglePlay

### android beta

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

Publish to GooglePlay Beta

### android alpha

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

Publish to GooglePlay Alpha

----

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).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
137 changes: 0 additions & 137 deletions fastlane/Fastfile

This file was deleted.

Loading

0 comments on commit 1e1139d

Please sign in to comment.