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

build: update ios #225

Merged
merged 21 commits into from
Apr 27, 2024
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
1 change: 0 additions & 1 deletion .github/actions/android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ inputs:
description: GOOGLE_API_KEY
required: true


runs:
using: "composite"
steps:
Expand Down
14 changes: 6 additions & 8 deletions .github/actions/ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ inputs:
description: MYAPP_UPLOAD_STORE_PASSWORD
required: true


runs:
using: "composite"
steps:
- name: install pods
shell: bash
run: |
cd ./${CUSTOM_DIR}/ios
NO_FLIPPER=1 pod install
- name: prepare
shell: bash
env:
Expand All @@ -38,20 +32,24 @@ runs:
IOS_SCHEME: ${{ inputs.IOS_SCHEME }}
APP_STORE_API_ISSUER: ${{ inputs.APP_STORE_API_ISSUER }}
APP_STORE_API_KEY: ${{ inputs.APP_STORE_API_KEY }}
TEST: ${{ inputs.TEST }}
run: |
xcodebuild -workspace ${IOS_SCHEME}.xcworkspace -scheme $IOS_SCHEME -sdk iphoneos archive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -allowProvisioningUpdates -quiet
cd ./${CUSTOM_DIR}/ios
xcodebuild -workspace ${IOS_SCHEME}.xcworkspace -scheme $IOS_SCHEME -sdk iphoneos archive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -authenticationKeyPath ~/private_keys/AuthKey_${APP_STORE_API_KEY}.p8 -authenticationKeyIssuerID $APP_STORE_API_ISSUER -authenticationKeyID $APP_STORE_API_KEY -allowProvisioningUpdates -quiet
- name: exportArchive
shell: bash
env:
IOS_SCHEME: ${{ inputs.IOS_SCHEME }}
APP_STORE_API_ISSUER: ${{ inputs.APP_STORE_API_ISSUER }}
APP_STORE_API_KEY: ${{ inputs.APP_STORE_API_KEY }}
run: |
xcodebuild -exportArchive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -exportOptionsPlist ${PWD}/ExportOptions.plist -exportPath $PWD/build -authenticationKeyIssuerID $APP_STORE_API_ISSUER -authenticationKeyID $APP_STORE_API_KEY -allowProvisioningUpdates -quiet
cd ./${CUSTOM_DIR}/ios
xcodebuild -exportArchive -archivePath ${PWD}/build/${IOS_SCHEME}.xcarchive -exportOptionsPlist ${PWD}/ExportOptions.plist -exportPath $PWD/build -authenticationKeyPath ~/private_keys/AuthKey_${APP_STORE_API_KEY}.p8 -authenticationKeyIssuerID $APP_STORE_API_ISSUER -authenticationKeyID $APP_STORE_API_KEY -allowProvisioningUpdates -quiet
- name: publish
shell: bash
env:
APP_STORE_API_ISSUER: ${{ inputs.APP_STORE_API_ISSUER }}
APP_STORE_API_KEY: ${{ inputs.APP_STORE_API_KEY }}
run: |
cd ./${CUSTOM_DIR}/ios
xcrun altool --upload-app -f ./build/*.ipa -t ios --apiKey $APP_STORE_API_KEY --apiIssuer $APP_STORE_API_ISSUER
35 changes: 18 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,24 @@ on:
workflow_dispatch:

jobs:
ios:
runs-on: [ self-hosted, macOS, ARM64, mobile ]
environment: production-ios
concurrency: ios
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: install
uses: ./.github/actions/install
- name: ios
uses: ./.github/actions/ios
with:
EXPORT_OPTIONS: ${{ secrets.EXPORT_OPTIONS }}
IOS_SCHEME: ${{ secrets.IOS_SCHEME }}
APP_STORE_API_ISSUER: ${{ secrets.APP_STORE_API_ISSUER }}
APP_STORE_API_KEY: ${{ secrets.APP_STORE_API_KEY }}
android:
runs-on: ubuntu-latest
runs-on: [self-hosted, macOS, ARM64, mobile]
environment: production-android
concurrency: android
steps:
Expand All @@ -22,19 +38,4 @@ jobs:
MYAPP_UPLOAD_KEY_PASSWORD: ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
MYAPP_UPLOAD_STORE_PASSWORD: ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
ios:
runs-on: [self-hosted, macOS, ARM64, mobile]
environment: production-ios
concurrency: ios
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: install
uses: ./.github/actions/install
- name: ios
uses: ./.github/actions/ios
with:
EXPORT_OPTIONS: ${{ secrets.EXPORT_OPTIONS }}
IOS_SCHEME: ${{ secrets.IOS_SCHEME }}
APP_STORE_API_ISSUER: ${{ secrets.APP_STORE_API_ISSUER }}
APP_STORE_API_KEY: ${{ secrets.APP_STORE_API_KEY }}

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Checker
name: Release

on:
workflow_call:
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/java/com/mobydick/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mobydick

import android.os.Bundle;
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
Expand Down