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

Master > Develop #609

Merged
merged 16 commits into from
Mar 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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