This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1f1980
commit a123932
Showing
24 changed files
with
442 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" | ||
|
||
gem 'fastlane-plugin-flutter_version', '~> 1.0' | ||
|
||
gem 'dotenv-rails', groups: [:development, :test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
json_key_file("E:/Desktop/pc-api-8841092832662857981-537-d6380090d6cb.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one | ||
package_name("") # e.g. com.krausefx.app | ||
package_name("fr.ynotes") # e.g. com.krausefx.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,19 +38,42 @@ platform :android do | |
end | ||
|
||
lane :internal do | ||
increment_build_number(build_number: number_of_commits) | ||
build_number = number_of_commits() | ||
version = flutter_version()["version_name"] | ||
continue = prompt( | ||
text: ENV["GITHUB_TOKEN"], | ||
boolean: true) | ||
|
||
#Copy changelog | ||
Dir.chdir "metadata/android/fr-FR" do | ||
sh("type last_changelog.txt >> changelogs/#{build_number}.txt /Y") | ||
end | ||
if continue | ||
Dir.chdir "metadata/android/fr-FR" do | ||
sh("type last_changelog.txt >> changelogs/#{build_number}.txt") | ||
end | ||
|
||
Dir.chdir "../.." do | ||
sh("flutter", "packages", "get") | ||
sh("flutter", "clean") | ||
sh("flutter", "build", "appbundle") | ||
Dir.chdir "../.." do | ||
sh("flutter", "packages", "get") | ||
sh("flutter", "clean") | ||
sh("flutter", "build", "appbundle","--build-number=#{build_number}") | ||
sh("flutter", "build", "apk","--build-number=#{build_number}", "--split-per-abi") | ||
|
||
end | ||
github_release = set_github_release( | ||
repository_name: "ModernChocolate/ynotes", | ||
api_token: ENV["GITHUB_TOKEN"], | ||
name: "yNotes #{version}+#{build_number}", | ||
tag_name: "v#{version}+#{build_number}", | ||
description: (File.read("metadata/android/fr-FR/last_changelog_github.txt") rescue "No changelog provided."), | ||
commitish: "master", | ||
upload_assets: ["../../app/outputs/apk/release/"] | ||
) | ||
upload_to_play_store(track: 'internal', aab: '../build/app/outputs/bundle/release/app-release.aab', package_name: "fr.ynotes") | ||
|
||
mailgun( | ||
to: "[email protected]", | ||
success: true, | ||
message: "La mise en circuit interne de l'application yNotes (build : #{build_number}) est un succès !") | ||
end | ||
upload_to_play_store(track: 'internal', aab: '../build/app/outputs/bundle/release/app-release.aab') | ||
|
||
end | ||
|
||
lane :release do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ajout de quelques améliorations à la page de résumé.Ajout de quelques améliorations à la page de résumé. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ajout de quelques améliorations à la page de résumé. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.