chore: Implement playstore CD
parent
edfbb16044
commit
a5c7e4baaf
@ -0,0 +1,3 @@
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "fastlane"
|
@ -0,0 +1,2 @@
|
||||
json_key_file("keys.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
|
||||
package_name("chat.fluffy.fluffychat") # e.g. com.krausefx.app
|
@ -0,0 +1,50 @@
|
||||
# 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
|
||||
lane :set_build_code_internal do
|
||||
versions = google_play_track_version_codes(
|
||||
track: "internal",
|
||||
json_key: "./keys.json"
|
||||
)
|
||||
last_version = versions[0].to_i
|
||||
Dir.chdir("../..") do
|
||||
re = /version:\s([0-9]*\.[0-9]*\.[0-9]*)\+[0-9]/i
|
||||
config = File.read("./pubspec.yaml")
|
||||
version_name = config.match(re).captures
|
||||
|
||||
subst = "version: #{version_name[0]}+#{last_version+1}"
|
||||
|
||||
result = config.gsub(re, subst)
|
||||
|
||||
File.open("./pubspec.yaml", 'w') { |file| file.write(result) }
|
||||
end
|
||||
end
|
||||
|
||||
lane :deploy_internal_test do
|
||||
versions = google_play_track_version_codes(
|
||||
track: "internal",
|
||||
json_key: "./keys.json"
|
||||
)
|
||||
last_version = versions[0].to_i
|
||||
upload_to_play_store(track: 'internal', aab: '../build/app/outputs/bundle/release/app-release.aab', version_code: "#{last_version+1}")
|
||||
end
|
||||
|
||||
lane :deploy_release do
|
||||
upload_to_play_store(track: 'internal', track_promote_to: "production", deactivate_on_promote: false, skip_upload_changelogs: true)
|
||||
end
|
||||
end
|
@ -0,0 +1,39 @@
|
||||
fastlane documentation
|
||||
================
|
||||
# Installation
|
||||
|
||||
Make sure you have the latest version of the Xcode command line tools installed:
|
||||
|
||||
```
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
Install _fastlane_ using
|
||||
```
|
||||
[sudo] gem install fastlane -NV
|
||||
```
|
||||
or alternatively using `brew install fastlane`
|
||||
|
||||
# Available Actions
|
||||
## Android
|
||||
### android set_build_code_beta
|
||||
```
|
||||
fastlane android set_build_code_beta
|
||||
```
|
||||
|
||||
### android deploy_beta_test
|
||||
```
|
||||
fastlane android deploy_beta_test
|
||||
```
|
||||
|
||||
### android deploy_release
|
||||
```
|
||||
fastlane android deploy_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).
|
@ -0,0 +1 @@
|
||||
Check out https://gitlab.com/ChristianPauly/fluffychat-flutter/-/blob/main/CHANGELOG.md for the changelog.
|
@ -0,0 +1,32 @@
|
||||
FluffyChat is an open, nonprofit and cute matrix messenger app for Ubuntu Touch, Android and iOS.
|
||||
|
||||
Open
|
||||
Opensource and open development where everyone can join.
|
||||
|
||||
Nonprofit
|
||||
FluffyChat is donation funded.
|
||||
|
||||
Cute ♥
|
||||
Cute design and many theme settings including a dark mode.
|
||||
|
||||
One-to-one and groupchats
|
||||
Unlimited groups and direct chats.
|
||||
|
||||
Easy
|
||||
FluffyChat is made as simple to use as possible.
|
||||
|
||||
Free
|
||||
Free to use for everyone without ads.
|
||||
|
||||
Decentralized
|
||||
There is no "FluffyChat server" you are forced to use. Use the server you find trustworthy or host your own.
|
||||
|
||||
Compatible
|
||||
Compatible with Riot, Fractal, Nekho and all matrix messengers.
|
||||
|
||||
|
||||
FluffyChat comes with a dream
|
||||
|
||||
Imagine a world where everyone can choose the messenger they like and is still able to chat with all of their friends.
|
||||
A world where there are no companies spying on you when you send selfies to friends and lovers.
|
||||
And a world where apps are made for fluffyness and not for profit. ♥
|
Binary file not shown.
After Width: | Height: | Size: 233 KiB |
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
After Width: | Height: | Size: 141 KiB |
Binary file not shown.
After Width: | Height: | Size: 196 KiB |
Binary file not shown.
After Width: | Height: | Size: 721 KiB |
@ -0,0 +1 @@
|
||||
Chat with your friends with FluffyChat.
|
@ -0,0 +1 @@
|
||||
FluffyChat
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuites>
|
||||
<testsuite name="fastlane.lanes">
|
||||
|
||||
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="0: update_fastlane" time="0.094148">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="1: default_platform" time="0.000809">
|
||||
|
||||
</testcase>
|
||||
|
||||
|
||||
<testcase classname="fastlane.lanes" name="2: google_play_track_version_codes" time="1.408525">
|
||||
|
||||
</testcase>
|
||||
|
||||
</testsuite>
|
||||
</testsuites>
|
@ -1,7 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
cd android && echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks && cd ..
|
||||
cd android && echo "storePassword=${FDROID_KEY_PASS}" >> key.properties && cd ..
|
||||
cd android && echo "keyPassword=${FDROID_KEY_PASS}" >> key.properties && cd ..
|
||||
cd android && echo "keyAlias=key" >> key.properties && cd ..
|
||||
cd android && echo "storeFile=../key.jks" >> key.properties && cd ..
|
||||
cd android/app && echo $GOOGLE_SERVICES >> google-services.json && cd ../..
|
||||
cd android
|
||||
echo $FDROID_KEY | base64 --decode --ignore-garbage > key.jks
|
||||
echo "storePassword=${FDROID_KEY_PASS}" >> key.properties
|
||||
echo "keyPassword=${FDROID_KEY_PASS}" >> key.properties
|
||||
echo "keyAlias=key" >> key.properties
|
||||
echo "storeFile=../key.jks" >> key.properties
|
||||
echo $PLAYSTORE_DEPLOY_KEY >> keys.json
|
||||
bundle install
|
||||
bundle update fastlane
|
||||
bundle exec fastlane set_build_code_internal
|
||||
cd app
|
||||
echo $GOOGLE_SERVICES >> google-services.json/..
|
||||
cd ../..
|
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
cd android
|
||||
bundle install
|
||||
bundle update fastlane
|
||||
echo $PLAYSTORE_DEPLOY_KEY >> keys.json
|
||||
bundle exec fastlane deploy_release
|
||||
cd ..
|
Loading…
Reference in New Issue