Skip to content

Commit

Permalink
build: 👷 Merge Fastlane setups
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralu authored and redDwarf03 committed Nov 28, 2024
1 parent 9dcbb84 commit 9da806e
Show file tree
Hide file tree
Showing 80 changed files with 143 additions and 742 deletions.
2 changes: 0 additions & 2 deletions android/fastlane/Appfile

This file was deleted.

48 changes: 0 additions & 48 deletions android/fastlane/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions android/fastlane/metadata/android/Gemfile

This file was deleted.

7 changes: 0 additions & 7 deletions android/fastlane/metadata/android/Pluginfile

This file was deleted.

56 changes: 0 additions & 56 deletions android/fastlane/metadata/android/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions android/fastlane/metadata/android/en-US/full_description.txt

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

1 change: 0 additions & 1 deletion android/fastlane/metadata/android/en-US/title.txt

This file was deleted.

Binary file not shown.
7 changes: 7 additions & 0 deletions fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app_identifier("tech.archethic.wallet") # The bundle identifier of your app

itc_team_id("125534791") # App Store Connect Team ID
team_id("2QGGN9QQKR") # Developer Portal Team ID

json_key_file("./android/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
File renamed without changes.
44 changes: 40 additions & 4 deletions android/fastlane/Fastfile → fastlane/Fastfile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,43 @@

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
import '../../fastlane/Utils'
import './Utils'

platform :mac do
desc "Push a new release build to the App Store"
lane :release do
apple_build("macos")
upload_to_app_store(
build_number: version_code
)
end

desc "Push a new release build to TestFlight"
lane :beta do
apple_build("macos")
upload_to_testflight(
build_number: version_code
)
end
end

platform :ios do
desc "Push a new release build to the App Store"
lane :release do
apple_build("ios")
upload_to_app_store(
build_number: version_code
)
end

desc "Push a new release build to TestFlight"
lane :beta do
apple_build("ios")
upload_to_testflight(
build_number: version_code
)
end
end

platform :android do
desc "Publish to GooglePlay"
Expand All @@ -22,7 +58,7 @@ platform :android do
upload_to_play_store(
track: 'production',
version_code: version_code,
aab: '../build/app/outputs/bundle/release/app-release.aab',
aab: './build/app/outputs/bundle/release/app-release.aab',
)
end

Expand All @@ -34,7 +70,7 @@ platform :android do
upload_to_play_store(
track: 'beta',
version_code: version_code,
aab: '../build/app/outputs/bundle/release/app-release.aab',
aab: './build/app/outputs/bundle/release/app-release.aab',
)
end

Expand All @@ -47,7 +83,7 @@ platform :android do
upload_to_play_store(
track: 'alpha',
version_code: version_code,
aab: '../build/app/outputs/bundle/release/app-release.aab',
aab: './build/app/outputs/bundle/release/app-release.aab',
)
end
end
File renamed without changes.
91 changes: 89 additions & 2 deletions fastlane/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
# Fastlane common setups
fastlane documentation
----

You will find here setups and code shared between platform specific project.
# 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

## Mac

### mac release

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

Push a new release build to the App Store

### mac beta

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

Push a new release build to TestFlight

----


## iOS

### ios release

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

Push a new release build to the App Store

### ios beta

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

Push a new release build to TestFlight

----


## 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).
12 changes: 7 additions & 5 deletions fastlane/Utils
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def version_info()
return @version_info ||= flutter_version(
pubspec_location: '../pubspec.yaml'
pubspec_location: './pubspec.yaml'
)
end

Expand All @@ -14,13 +14,12 @@ end


def flutter_build(format)
Dir.chdir '.' do
version_info # Reads the `version_info` before changing directory.
Dir.chdir '..' do
sh('flutter', 'clean')
sh('flutter', 'packages', 'get')
sh(
"flutter build #{format} --obfuscate --split-debug-info=build/sym/#{format} --build-name=#{
version_name
} --build-number=#{version_code.to_s} "
"flutter build #{format} --obfuscate --split-debug-info=build/sym/#{format} --build-name=#{version_name} --build-number=#{version_code.to_s}"
)
end
end
Expand All @@ -38,5 +37,8 @@ def apple_build(platform)
flutter_build(platform)
gym(
scheme: "Runner",
workspace: "./#{platform}/Runner.xcworkspace",
build_path: "./build/#{platform}/archive/",
output_directory: "./build/#{platform}/output/"
)
end
4 changes: 0 additions & 4 deletions ios/fastlane/Appfile

This file was deleted.

36 changes: 0 additions & 36 deletions ios/fastlane/Fastfile

This file was deleted.

Loading

0 comments on commit 9da806e

Please sign in to comment.