Skip to content

Commit

Permalink
Master > Develop (#609)
Browse files Browse the repository at this point in the history
* Voke 5.6.6 + Campaign Tracking + Family User Flow (#608)

* Added Family Adventure Flow
* Deeplinking

* remove unneeded patch

* Bump versionCode

* skip 2fa upgrade

* Version Code Bump by 1000

* move env default

* build with ios api key

* update apple file encryption

* Added Fix Image Process (required for iOS)

We forgot to copy "npx react-native-fix-image" form Travis config.

* allow tmux

* remove tmux

* Remove Tutorial + Redirect to Active Adventure

* VC-1289

+ sending UTM to the server only after User ID received.
+ better "Release Next!" button response when interned is down.

* Merge fix

Co-authored-by: Tataihono Nikora <tataihono.nikora@gmail.com>
Co-authored-by: Vlad Mitkovsky <vlad@mitkovsky.com>
  • Loading branch information
3 people authored Mar 10, 2021
1 parent bd8a189 commit 97b77ef
Show file tree
Hide file tree
Showing 25 changed files with 2,696 additions and 9,944 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,29 @@ jobs:
# - name: ✅ TypeScript lint
# run: npm run lint:ts

prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
- uses: actions/setup-node@v2
with:
node-version: 12
- uses: bahmutov/npm-install@v1
- name: 💅 Prettier Check
run: npm run prettier:check
# prettier:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: webfactory/ssh-agent@v0.5.0
# with:
# ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
# - uses: actions/setup-node@v2
# with:
# node-version: 12
# - uses: bahmutov/npm-install@v1
# - name: 💅 Prettier Check
# run: npm run prettier:check

onesky-upload:
runs-on: ubuntu-latest
needs: [prettier] # [test, eslint, typescript, prettier]
# needs: [prettier] # [test, eslint, typescript, prettier]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
- uses: actions/setup-node@v2
with:
node-version: 12
Expand Down Expand Up @@ -152,13 +152,13 @@ jobs:

ios-deploy:
runs-on: macos-latest
needs: [prettier] # [test, eslint, typescript, prettier]
# needs: [prettier] # [test, eslint, typescript, prettier]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
- uses: actions/setup-node@v2
with:
node-version: 12
Expand Down Expand Up @@ -194,12 +194,14 @@ jobs:
${{ runner.os }}-local-derived-data-v2-
- name: Touch all cache files
run: find ios/.local_derived_data -exec touch -t 2004210000 {} \; || true
# https://github.com/react-native-community/releases/issues/214#issuecomment-779920261
- name: FBReactNativeSpec patch
- name: 🔓 Decrypt AppleAppStoreAPI.json
run: |
mkdir node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec
touch node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h
touch node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm
echo $APPLE_APP_STORE_API_FILE > ios/fastlane/AppleAppStoreAPI.json.asc
openssl enc -d -aes-256-cbc -base64 -K $APPLE_APP_STORE_API_FILE_KEY -iv $APPLE_APP_STORE_API_FILE_IV -in ios/fastlane/AppleAppStoreAPI.json.asc -out ios/fastlane/AppleAppStoreAPI.json
env:
APPLE_APP_STORE_API_FILE: ${{ secrets.APPLE_APP_STORE_API_FILE }}
APPLE_APP_STORE_API_FILE_KEY: ${{ secrets.APPLE_APP_STORE_API_FILE_KEY }}
APPLE_APP_STORE_API_FILE_IV: ${{ secrets.APPLE_APP_STORE_API_FILE_IV }}
- name: 🏗️🚀🍏 Build and push to Testflight
uses: maierj/fastlane-action@v2.0.0
with:
Expand All @@ -220,15 +222,15 @@ jobs:

android-deploy:
runs-on: ubuntu-latest
needs: [prettier] # [test, eslint, typescript, prettier]
# needs: [prettier] # [test, eslint, typescript, prettier]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
ssh-private-key: ${{ secrets.VOKE_CI_SSH_KEY }}
- uses: actions/setup-node@v2
with:
node-version: 12
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@ android/app/src/main/res/values/com_crashlytics_export_strings.xml

# Bundle artifact
*.jsbundle

ios/fastlane/AppleAppStoreAPI.json
6 changes: 5 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,12 @@ android {
multiDexEnabled true // Voke.
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
vectorDrawables.useSupportLibrary = true
versionCode grgit.log(includes:['HEAD']).size() + 1000
versionName "5.6.7"
versionCode grgit.log(includes:['HEAD']).size()
multiDexEnabled true
testBuildType System.getProperty('testBuildType', 'debug') // This will later be used to control the test apk build type
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

splits {
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ android.useAndroidX=true
android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.54.0
FLIPPER_VERSION=0.75.1
1 change: 1 addition & 0 deletions ios/fastlane/.env.default → ios/.env.default
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Fastlane Build variables
SPACESHIP_SKIP_2FA_UPGRADE=1
CRU_API_KEY_PATH="./fastlane/AppleAppStoreAPI.json"

## Fastlane Build - Project related variables
CRU_FASTLANE_USERNAME="cruapps@cru.org"
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ target 'Voke' do
# you should disable the next line.
# use_flipper!()
# https://github.com/facebook/react-native/issues/30836#issuecomment-772830882
use_flipper!({ 'Flipper-Folly' => '2.3.0' })
use_flipper!({ 'Flipper-Folly' => '2.5' })


post_install do |installer|
Expand Down
Loading

0 comments on commit 97b77ef

Please sign in to comment.