Skip to content

Commit cf39a9d

Browse files
committed
Keep upgrading to 0.75.2 and add android build automation
1 parent 29b6bb4 commit cf39a9d

File tree

31 files changed

+27457
-28362
lines changed

31 files changed

+27457
-28362
lines changed

.eslintrc.js

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
module.exports = {
22
root: true,
3-
extends: ['@react-native-community', 'prettier'],
4-
parser: '@typescript-eslint/parser',
5-
plugins: ['@typescript-eslint', 'import-helpers'],
6-
rules: {
7-
'import-helpers/order-imports': [
8-
'warn',
9-
{
10-
newlinesBetween: 'always', // new line between groups
11-
groups: [
12-
['/^react/'],
13-
'module',
14-
'/^../hooks/',
15-
'/^../utils/',
16-
'/^../interfaces/',
17-
['parent', 'sibling', 'index'],
18-
],
19-
alphabetize: { order: 'asc', ignoreCase: true },
20-
},
21-
],
22-
'no-unused-vars': 'off',
23-
'@typescript-eslint/no-unused-vars': ['off'],
24-
'react-hooks/exhaustive-deps': 'off',
25-
},
26-
};
3+
extends: '@react-native',
4+
};
5+

.github/workflows/build-for-android

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Android Build
2+
3+
on: push
4+
5+
jobs:
6+
build-for-android:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Setup node
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: 20
15+
registry-url: 'https://registry.npmjs.org'
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: 17
21+
distribution: 'adopt'
22+
cache: 'gradle'
23+
24+
25+
- name: npm install for SDK
26+
run: npm install
27+
28+
- name: npm install for example
29+
run: |
30+
cd example
31+
npm install
32+
cd ..
33+
34+
- name: Build for Android
35+
run: |
36+
cd example
37+
npm run build-android
38+
cd ..
39+

.github/workflows/build-for-ios.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Build for iOS Simulator
4242
run: |
43-
cd example/ios
43+
cd example/
4444
npm run build-ios
45-
cd ../..
45+
cd ..
4646

example/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native',
4+
};
5+

example/Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source 'https://rubygems.org'
2+
3+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4+
ruby ">= 2.6.10"
5+
6+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
7+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9+

example/android/app/BUCK

Lines changed: 0 additions & 55 deletions
This file was deleted.

example/android/app/src/main/java/com/reactnativeantmediaexample/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MainActivity : ReactActivity() {
1111
* Returns the name of the main component registered from JavaScript. This is used to schedule
1212
* rendering of the component.
1313
*/
14-
override fun getMainComponentName(): String = "RnDiffApp"
14+
override fun getMainComponentName(): String = "ReactNativeNameExample"
1515

1616
/**
1717
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]

example/android/gradle.properties

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
2121
# Android operating system, and which are packaged with your app's APK
2222
# https://developer.android.com/topic/libraries/support-library/androidx-rn
2323
android.useAndroidX=true
24-
# Automatically convert third-party libraries to use AndroidX
25-
android.enableJetifier=true
26-
27-
# Version of flipper SDK to use with React Native
28-
FLIPPER_VERSION=0.125.0
2924

3025
# Use this property to specify which architecture you want to build.
3126
# You can also override it from the CLI using
@@ -42,9 +37,3 @@ newArchEnabled=false
4237
# Use this property to enable or disable the Hermes JS engine.
4338
# If set to false, you will be using JSC instead.
4439
hermesEnabled=true
45-
46-
# This one fixes a weird WebRTC runtime problem on some devices.
47-
# https://github.com/jitsi/jitsi-meet/issues/7911#issuecomment-714323255
48-
#android.enableDexingArtifactTransform.desugaring=false
49-
50-
android.useFullClasspathForDexingTransform = false
-15.7 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)