Skip to content

Commit 719e864

Browse files
committedSep 10, 2023
refactor: convert java to kotlin and objectivec to swift
1 parent 314b865 commit 719e864

File tree

92 files changed

+5643
-4491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+5643
-4491
lines changed
 

‎.github/workflows/build-android.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,34 @@ name: Build Android App
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
paths:
88
- '.github/workflows/build-android.yml'
99
- 'android/**'
1010
- 'example/android/**'
1111
- 'yarn.lock'
1212
- 'example/yarn.lock'
13+
- 'src/Spec/**'
1314
pull_request:
1415
paths:
1516
- '.github/workflows/build-android.yml'
1617
- 'android/**'
1718
- 'example/android/**'
1819
- 'yarn.lock'
1920
- 'example/yarn.lock'
21+
- 'src/Spec/**'
2022

2123
jobs:
22-
build:
24+
build_example:
2325
name: Build Android Example App
2426
runs-on: ubuntu-latest
25-
defaults:
26-
run:
27-
working-directory: example/android
2827
steps:
2928
- uses: actions/checkout@v2
3029

31-
- name: Setup JDK 1.8
30+
- name: Setup JDK 11
3231
uses: actions/setup-java@v1
3332
with:
34-
java-version: 1.8
33+
java-version: 11
3534

3635
- name: Get yarn cache directory path
3736
id: yarn-cache-dir-path
@@ -44,8 +43,10 @@ jobs:
4443
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
4544
restore-keys: |
4645
${{ runner.os }}-yarn-
46+
- name: Install node_modules
47+
run: yarn install --frozen-lockfile
4748
- name: Install node_modules for example/
48-
run: yarn install --frozen-lockfile --cwd ..
49+
run: yarn install --frozen-lockfile --cwd example
4950

5051
- name: Restore Gradle cache
5152
uses: actions/cache@v2
@@ -56,5 +57,5 @@ jobs:
5657
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
5758
restore-keys: |
5859
${{ runner.os }}-gradle-
59-
- name: Run Gradle Build
60-
run: ./gradlew assembleDebug
60+
- name: Run Gradle Build for example/android/
61+
run: cd example/android && ./gradlew assembleDebug --build-cache && cd ../..

‎.github/workflows/build-ios.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ on:
99
- 'ios/**'
1010
- '*.podspec'
1111
- 'example/ios/**'
12+
- 'src/Spec/**'
1213
pull_request:
1314
paths:
1415
- '.github/workflows/build-ios.yml'
1516
- 'ios/**'
1617
- '*.podspec'
1718
- 'example/ios/**'
19+
- 'src/Spec/**'
1820

1921
jobs:
2022
build:
@@ -40,10 +42,14 @@ jobs:
4042
- name: Install node_modules for example/
4143
run: yarn install --frozen-lockfile --cwd ..
4244

45+
- name: Restore buildcache
46+
uses: mikehardy/buildcache-action@v1
47+
continue-on-error: true
48+
4349
- name: Setup Ruby (bundle)
4450
uses: ruby/setup-ruby@v1
4551
with:
46-
ruby-version: 2.6
52+
ruby-version: 2.7
4753
bundler-cache: true
4854
working-directory: example/ios
4955

@@ -58,13 +64,17 @@ jobs:
5864
restore-keys: |
5965
${{ runner.os }}-pods-
6066
- name: Install Pods
61-
run: bundle exec pod check || bundle exec pod install
67+
run: bundle exec pod check || NO_FLIPPER=1 RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
68+
- name: Install xcpretty
69+
run: gem install xcpretty
6270
- name: Build App
63-
run: "xcodebuild \
71+
run: "set -o pipefail && xcodebuild \
72+
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
73+
-derivedDataPath build -UseModernBuildSystem=YES \
6474
-workspace CompressorExample.xcworkspace \
6575
-scheme CompressorExample \
6676
-sdk iphonesimulator \
6777
-configuration Debug \
68-
-destination \"generic/platform=iOS Simulator\" \
78+
-destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
6979
build \
70-
CODE_SIGNING_ALLOWED=NO"
80+
CODE_SIGNING_ALLOWED=NO | xcpretty"

0 commit comments

Comments
 (0)
Please sign in to comment.