Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Add fixes to mail page
Browse files Browse the repository at this point in the history
  • Loading branch information
ModernChocolate committed Dec 5, 2020
1 parent f1f1980 commit a123932
Show file tree
Hide file tree
Showing 24 changed files with 442 additions and 467 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ lib/generated_plugin_registrant.dart
/android/key.properties
/android/app/key.jks
pronoteAPI.py

/android/fastlane/.env.default
106 changes: 0 additions & 106 deletions README.md

This file was deleted.

4 changes: 4 additions & 0 deletions android/Gemfile
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]
70 changes: 64 additions & 6 deletions android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,31 @@ GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.2)
actionpack (6.0.3.4)
actionview (= 6.0.3.4)
activesupport (= 6.0.3.4)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actionview (6.0.3.4)
activesupport (= 6.0.3.4)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activesupport (6.0.3.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
atomos (0.1.3)
aws-eventstream (1.1.0)
aws-partitions (1.402.0)
aws-sdk-core (3.109.3)
aws-sdk-core (3.110.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
Expand All @@ -22,20 +41,27 @@ GEM
aws-sigv4 (1.2.2)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
builder (3.2.4)
claide (1.0.3)
colored (1.2)
colored2 (3.1.2)
commander-fastlane (4.4.6)
highline (~> 1.7.2)
concurrent-ruby (1.1.7)
crass (1.0.6)
declarative (0.0.20)
declarative-option (0.1.0)
digest-crc (0.6.1)
rake (~> 13.0)
digest-crc (0.6.2)
rake (~> 12.0)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
dotenv-rails (2.7.6)
dotenv (= 2.7.6)
railties (>= 3.2)
emoji_regex (3.2.1)
excon (0.78.0)
erubi (1.10.0)
excon (0.78.1)
faraday (1.1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords
Expand All @@ -45,7 +71,7 @@ GEM
faraday_middleware (1.0.0)
faraday (~> 1.0)
fastimage (2.2.0)
fastlane (2.169.0)
fastlane (2.170.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
aws-sdk-s3 (~> 1.0)
Expand Down Expand Up @@ -81,6 +107,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-flutter_version (1.0.0)
gh_inspector (1.1.3)
google-api-client (0.38.0)
addressable (~> 2.5, >= 2.5.1)
Expand Down Expand Up @@ -114,20 +141,44 @@ GEM
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
jmespath (1.4.0)
json (2.3.1)
jwt (2.2.2)
loofah (2.8.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
memoist (0.16.2)
method_source (1.0.0)
mini_magick (4.11.0)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.2)
multi_json (1.15.0)
multipart-post (2.0.0)
nanaimo (0.3.0)
naturally (2.2.0)
nokogiri (1.10.10-x64-mingw32)
mini_portile2 (~> 2.4.0)
os (1.1.1)
plist (3.5.0)
public_suffix (4.0.6)
rake (13.0.1)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (6.0.3.4)
actionpack (= 6.0.3.4)
activesupport (= 6.0.3.4)
method_source
rake (>= 0.8.7)
thor (>= 0.20.3, < 2.0)
rake (12.3.3)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
Expand All @@ -149,10 +200,14 @@ GEM
terminal-notifier (2.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thor (1.0.1)
thread_safe (0.3.6)
tty-cursor (0.7.1)
tty-screen (0.8.1)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
tzinfo (1.2.8)
thread_safe (~> 0.1)
uber (0.1.0)
unf (0.1.4)
unf_ext
Expand All @@ -169,12 +224,15 @@ GEM
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.0)
xcpretty (~> 0.2, >= 0.0.7)
zeitwerk (2.4.2)

PLATFORMS
x64-mingw32

DEPENDENCIES
dotenv-rails
fastlane
fastlane-plugin-flutter_version (~> 1.0)

BUNDLED WITH
2.1.4
2 changes: 1 addition & 1 deletion android/fastlane/Appfile
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
41 changes: 32 additions & 9 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/fr-FR/changelogs/107.txt
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é.
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/fr-FR/last_changelog.txt
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.
13 changes: 4 additions & 9 deletions android/fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,22 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.0036018">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.0022811">

</testcase>


<testcase classname="fastlane.lanes" name="1: flutter packages get" time="4.1483612">
<testcase classname="fastlane.lanes" name="1: number_of_commits" time="0.1404468">

</testcase>


<testcase classname="fastlane.lanes" name="2: flutter clean" time="3.3327144">
<testcase classname="fastlane.lanes" name="2: flutter_version" time="0.0239584">

</testcase>


<testcase classname="fastlane.lanes" name="3: flutter build appbundle" time="140.4558603">

</testcase>


<testcase classname="fastlane.lanes" name="4: upload_to_play_store" time="558.1904549">
<testcase classname="fastlane.lanes" name="3: prompt" time="7.9148664">

</testcase>

Expand Down
Loading

0 comments on commit a123932

Please sign in to comment.