Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish action #32

Closed
wants to merge 167 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
922c7b7
configured fastlane config
doljko Feb 1, 2024
c4a492b
added clean command
doljko Feb 2, 2024
695f75e
removed
doljko Feb 2, 2024
bbe7566
removed podlock
doljko Feb 2, 2024
0520ca4
fix error
doljko Feb 2, 2024
10ef902
changed version
doljko Feb 2, 2024
86bb712
changed name
doljko Feb 2, 2024
41bf2d4
added android fastlane command
doljko Feb 2, 2024
4593bd5
added matchfile
doljko Feb 2, 2024
b1add5b
removed unused line
doljko Feb 5, 2024
1a1cd07
changed command
doljko Feb 5, 2024
fa8be21
added bundle command
doljko Feb 5, 2024
7506a65
update
doljko Feb 5, 2024
609ad6f
update
doljko Feb 5, 2024
4bbfdb4
updated fastlane
doljko Feb 5, 2024
40f3b71
added ruby command
doljko Feb 5, 2024
5dc845f
updated command
doljko Feb 5, 2024
7bb44d3
added setup command
doljko Feb 5, 2024
f3174f2
update ios command
doljko Feb 5, 2024
56a9648
removed
doljko Feb 5, 2024
cbc476a
fix ios
doljko Feb 5, 2024
fa55823
updated command of fastlane
doljko Feb 5, 2024
147c4e6
fix command
doljko Feb 5, 2024
f1eb89c
update
doljko Feb 5, 2024
82aa08b
updated keystore
doljko Feb 5, 2024
93147aa
updated command
doljko Feb 5, 2024
64dfa08
update ios
doljko Feb 5, 2024
33c5dae
changed keystore commnd
doljko Feb 5, 2024
d5c3b4b
Create keystore.yml
doljko Feb 5, 2024
5af3de4
Update keystore.yml
doljko Feb 5, 2024
d8922ec
Update keystore.yml
doljko Feb 5, 2024
7748c6f
Update keystore.yml
doljko Feb 5, 2024
5c90dbd
fixed generate keystore
doljko Feb 5, 2024
50382b8
changed project env
doljko Feb 5, 2024
8e02a39
Update build.gradle
doljko Feb 5, 2024
5518601
set env on the fastfile
doljko Feb 5, 2024
fcf6995
fixed keystore file name
doljko Feb 5, 2024
f4d16aa
Update Fastfile
doljko Feb 5, 2024
7ac507c
removed unused file
doljko Feb 6, 2024
aa747d5
changed gradle file
doljko Feb 6, 2024
4494c6b
changed keyalies
doljko Feb 6, 2024
b783d8a
removed unused line
doljko Feb 6, 2024
b24be01
fix command ios
doljko Feb 6, 2024
579adfc
add bundle command
doljko Feb 6, 2024
6294789
test keystore
doljko Feb 6, 2024
6baab6d
updated
doljko Feb 6, 2024
5d6175d
removed unused line
doljko Feb 6, 2024
cf9b6a5
changed name
doljko Feb 6, 2024
81beadf
updated fastline file
doljko Feb 6, 2024
e738392
fix appfile
doljko Feb 6, 2024
7e0ffc2
added xcode command
doljko Feb 6, 2024
907f614
add ios command
doljko Feb 6, 2024
251900c
fix
doljko Feb 6, 2024
0bfbe3a
added provision
doljko Feb 6, 2024
7d42423
update password
doljko Feb 6, 2024
6ab2f44
fix
doljko Feb 6, 2024
3973f09
added scanfile
doljko Feb 6, 2024
b93c7e4
test provision
doljko Feb 7, 2024
f019143
fix
doljko Feb 7, 2024
5c6bb30
changed command
doljko Feb 7, 2024
496b452
changed command
doljko Feb 7, 2024
94c3c11
changed app file
doljko Feb 7, 2024
70ff00f
pod updated
doljko Feb 7, 2024
cb6f51e
removed
doljko Feb 7, 2024
90684e7
change fastlane file name
doljko Feb 7, 2024
b652c85
fix
doljko Feb 7, 2024
a9094dd
removed
doljko Feb 7, 2024
f151978
fix
doljko Feb 7, 2024
56bc57e
changed
doljko Feb 7, 2024
a96e9ab
remove
doljko Feb 7, 2024
a593889
removed
doljko Feb 7, 2024
f2076f3
change yml
doljko Feb 7, 2024
f756c94
fix
doljko Feb 7, 2024
94c2639
removed slash
doljko Feb 7, 2024
f547131
removed
doljko Feb 7, 2024
cc788b4
removed
doljko Feb 7, 2024
54168d7
changed directory
doljko Feb 7, 2024
c45b515
checkout
doljko Feb 7, 2024
74e880d
remove
doljko Feb 7, 2024
5c0e10f
add pod
doljko Feb 7, 2024
07cf752
update
doljko Feb 7, 2024
93f9488
changed matchfiile
doljko Feb 7, 2024
641eeb6
removed
doljko Feb 7, 2024
cbda552
changed fastfile
doljko Feb 7, 2024
9070928
changed fastline file
doljko Feb 7, 2024
de7095a
fix file
doljko Feb 7, 2024
7f345bc
update command
doljko Feb 7, 2024
97d0faf
fix file
doljko Feb 7, 2024
7b7bc55
add ios permission command
doljko Feb 7, 2024
a879ef5
change
doljko Feb 7, 2024
ff31e8b
removed slash
doljko Feb 7, 2024
877fee2
update
doljko Feb 8, 2024
ef35562
update
doljko Feb 8, 2024
43726fb
update
doljko Feb 8, 2024
b304e9b
remove
doljko Feb 8, 2024
765fa03
updated
doljko Feb 8, 2024
5b80093
fix
doljko Feb 8, 2024
94f0aaf
update
doljko Feb 8, 2024
5011b3e
remove command
doljko Feb 8, 2024
cc21bf1
fix
doljko Feb 8, 2024
54634be
fix
doljko Feb 8, 2024
6fc8010
update
doljko Feb 8, 2024
95ed626
fix
doljko Feb 8, 2024
c25b542
pod update
doljko Feb 8, 2024
e385134
update
doljko Feb 8, 2024
4a3ad34
update
doljko Feb 15, 2024
10ea3c1
remove
doljko Feb 15, 2024
29687d1
fix
doljko Feb 16, 2024
994544e
update
doljko Feb 16, 2024
1f05ef8
updated
doljko Feb 16, 2024
4b9c4b3
update
doljko Feb 16, 2024
b9bafb8
changed
doljko Feb 16, 2024
3098f74
fix
doljko Feb 16, 2024
3755193
fix
doljko Feb 16, 2024
5889b49
changed slash
doljko Feb 16, 2024
c8104c2
update
doljko Feb 16, 2024
a8f572b
changed
doljko Feb 16, 2024
038ac8b
fix
doljko Feb 16, 2024
b6c9884
removed
doljko Feb 16, 2024
10337cc
added provision profile
doljko Feb 16, 2024
80e6b24
changed commands
doljko Feb 16, 2024
8e8e2fa
fixed match env
doljko Feb 16, 2024
caab015
fixed project name
doljko Feb 16, 2024
de3fa0d
removed increment build number
doljko Feb 16, 2024
638185a
updated readme
doljko Feb 16, 2024
db7921e
update
doljko Feb 16, 2024
3beec09
update
doljko Feb 16, 2024
e8a17b8
added new lane
doljko Feb 16, 2024
42ca350
update
doljko Feb 16, 2024
f207cab
update
doljko Feb 16, 2024
48e98ba
removed updates
doljko Feb 16, 2024
6e81067
Install the Apple certificate and provisioning profile
doljko Feb 16, 2024
c96bb22
cache yarn deps
doljko Feb 16, 2024
fc3b2a9
pod fix
doljko Feb 16, 2024
3a543d8
Update keystore.yml
doljko Feb 16, 2024
7088ebb
removed match file
doljko Feb 16, 2024
58eb081
test android
doljko Feb 16, 2024
941afd1
test
doljko Feb 16, 2024
4bb42ee
update env
doljko Feb 16, 2024
075bc7c
change
doljko Feb 17, 2024
db0a633
fix command
doljko Feb 18, 2024
a2336f7
changed command ios
doljko Feb 18, 2024
eb532f5
changed command
doljko Feb 18, 2024
40bb49c
changed command
doljko Feb 18, 2024
1a1b846
added ios command
doljko Feb 18, 2024
ac47657
bundler
doljko Feb 18, 2024
fb0fd98
update matchfile
doljko Feb 18, 2024
d3e888d
changed workflow
doljko Feb 18, 2024
9231313
changed dir
doljko Feb 18, 2024
7fee27e
added allow provisioning updates
doljko Feb 18, 2024
8cfa8f4
fixed
doljko Feb 18, 2024
c794539
test with android
doljko Feb 19, 2024
7c052af
fix package name
doljko Feb 19, 2024
3a904df
changed command
doljko Feb 19, 2024
d8c3992
changed
doljko Feb 19, 2024
710d129
fix
doljko Feb 19, 2024
01b9d08
update
doljko Feb 19, 2024
9a117a0
fix
doljko Feb 19, 2024
0a894b4
remove
doljko Feb 19, 2024
83764b8
update
doljko Feb 19, 2024
f65dfac
fix
doljko Feb 19, 2024
17f3425
updated command
doljko Feb 19, 2024
018df25
update upload command
doljko Feb 19, 2024
90cf650
update
doljko Feb 19, 2024
de61b01
remove line
doljko Feb 19, 2024
1623a82
Create test.aab
tortuvshin Feb 19, 2024
0ed4cc2
Update keystore.yml
tortuvshin Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/keystore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PREVISION CI

on:
pull_request:
branches: [ main ] # Trigger for PRs to main branch

env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
GOOGLE_MAPS_KEY: ${{ secrets.GOOGLE_MAPS_KEY }}
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
ANDROID_RELEASE_KEYSTORE: ${{ secrets.ANDROID_RELEASE_KEYSTORE }}

jobs:
android_build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Deploy to Internal
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}
packageName: ${{ secrets.APP_IDENTIFIER }}
releaseFiles: android/test.aab
track: beta
38 changes: 37 additions & 1 deletion .github/workflows/react-native-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
FLEETBASE_KEY: ${{ secrets.FLEETBASE_KEY }}
GOOGLE_MAPS_KEY: ${{ secrets.GOOGLE_MAPS_KEY }}
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
ANDROID_RELEASE_KEYSTORE: ${{ secrets.ANDROID_RELEASE_KEYSTORE }}

jobs:
install_and_test:
Expand Down Expand Up @@ -77,9 +78,27 @@ jobs:
- name: Make Gradlew Executable
run: cd android && chmod +x ./gradlew

- name: Generate release keystore
run: |
echo "$ANDROID_RELEASE_KEYSTORE" > release.keystore.asc
gpg -d --passphrase "$ANDROID_KEYSTORE_PASSWORD" --batch release.keystore.asc > android/app/release.keystore

- name: Build Android
run: cd android && ./gradlew assembleDebug

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.4'

- name: Setup Fastlane
working-directory: ./android
run: bundle install

- name: Install Fastlane
working-directory: ./android
run: fastlane beta

ios_build:
runs-on: macOS-latest
steps:
Expand All @@ -98,10 +117,27 @@ jobs:
run: yarn install

- name: Install CocoaPods
run: sudo gem install cocoapods
run: sudo gem install cocoapods -v '1.14.3'

- name: Install Algolia Gem
run: |
gem install algolia

- name: Install iOS pods
run: cd ios && pod install

- name: Build iOS
run: npx react-native run-ios --configuration Release

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.4'

- name: Setup Fastlane
working-directory: ./ios
run: bundle install

- name: Install Fastlane
working-directory: ./ios
run: fastlane beta
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ DerivedData
*.ipa
*.xcuserstate
ios/.xcode.env.local
*.
*.mobileprovision.asc

# Android/IntelliJ
#
Expand Down
3 changes: 3 additions & 0 deletions android/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'fastlane'
213 changes: 213 additions & 0 deletions android/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.6)
rexml
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.885.0)
aws-sdk-core (3.191.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.77.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.143.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.8)
aws-sigv4 (1.8.0)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
claide (1.1.0)
colored (1.2)
colored2 (3.1.2)
commander (4.6.0)
highline (~> 2.0.0)
declarative (0.0.20)
digest-crc (0.6.5)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.6.20240107)
dotenv (2.8.1)
emoji_regex (3.2.3)
excon (0.109.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.7)
faraday (>= 0.8.0)
http-cookie (~> 1.0.0)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.3.0)
fastlane (2.219.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
aws-sdk-s3 (~> 1.0)
babosa (>= 1.0.3, < 2.0.0)
bundler (>= 1.12.0, < 3.0.0)
colored
commander (~> 4.6)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 4.0)
excon (>= 0.71.0, < 1.0.0)
faraday (~> 1.0)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 1.0)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-apis-androidpublisher_v3 (~> 0.3)
google-apis-playcustomapp_v1 (~> 0.1)
google-cloud-env (>= 1.6.0, < 2.0.0)
google-cloud-storage (~> 1.31)
highline (~> 2.0)
http-cookie (~> 1.0.5)
json (< 3.0.0)
jwt (>= 2.1.0, < 3)
mini_magick (>= 4.9.4, < 5.0.0)
multipart-post (>= 2.0.0, < 3.0.0)
naturally (~> 2.2)
optparse (>= 0.1.1)
plist (>= 3.1.0, < 4.0.0)
rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.3)
simctl (~> 1.6.3)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (~> 3)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.54.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-core (0.11.3)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.16.2, < 2.a)
httpclient (>= 2.8.1, < 3.a)
mini_mime (~> 1.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
rexml
google-apis-iamcredentials_v1 (0.17.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-playcustomapp_v1 (0.13.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-storage_v1 (0.31.0)
google-apis-core (>= 0.11.0, < 2.a)
google-cloud-core (1.6.1)
google-cloud-env (>= 1.0, < 3.a)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-cloud-storage (1.47.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
google-apis-storage_v1 (~> 0.31.0)
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
googleauth (1.8.1)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.5)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.6.2)
json (2.7.1)
jwt (2.7.1)
mini_magick (4.12.0)
mini_mime (1.1.5)
multi_json (1.15.0)
multipart-post (2.3.0)
nanaimo (0.3.0)
naturally (2.2.1)
optparse (0.4.0)
os (1.1.4)
plist (3.7.1)
public_suffix (5.0.4)
rake (13.1.0)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rexml (3.2.6)
rouge (2.0.7)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
security (0.1.3)
signet (0.18.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.10)
CFPropertyList
naturally
terminal-notifier (2.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
trailblazer-option (0.1.2)
tty-cursor (0.7.1)
tty-screen (0.8.2)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
uber (0.1.0)
unicode-display_width (2.5.0)
word_wrap (1.0.0)
xcodeproj (1.24.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)

PLATFORMS
arm64-darwin-23
ruby

DEPENDENCIES
fastlane

BUNDLED WITH
2.5.4
8 changes: 4 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ android {
signingConfigs {
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
storeFile file('release.keystore')
storePassword project.env.get("ANDROID_KEYSTORE_PASSWORD") ?: System.getenv("ANDROID_KEYSTORE_PASSWORD")
keyAlias 'navigator'
keyPassword project.env.get("ANDROID_KEYSTORE_PASSWORD") ?: System.getenv("ANDROID_KEYSTORE_PASSWORD")
}
}
debug {
Expand Down
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(ENV["GOOGLE_SERVICE_ACCOUNT_JSON"]) # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name(ENV["APP_IDENTIFIER"]) # e.g. com.krausefx.app
43 changes: 43 additions & 0 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end

desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(
task: "clean assembleRelease"
)
# sh "your_script.sh"
# You can also use other beta testing services here
end

desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(task: "clean")
gradle(
task: 'bundle',
build_type: 'Release'
)
upload_to_play_store(track: 'internal')
slack(message: "Successfully distributed a new beta build")
end
end
13 changes: 13 additions & 0 deletions android/fastlane/Matchfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
git_url("https://github.com/fleetbase/navigator-app")

storage_mode("git")

type("development") # The default type, can be: appstore, adhoc, enterprise or development

# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
# username("[email protected]") # Your Apple Developer Portal username

# For all available options run `fastlane match --help`
# Remove the # in the beginning of the line to enable the other options

# The docs are available on https://docs.fastlane.tools/actions/match
Loading
Loading