Skip to content

Commit

Permalink
feat: Enable new arch for the example project
Browse files Browse the repository at this point in the history
- Example app is working with Fabric and bridgeless mode on both iOS (MapKit) and Android
- remove reanimated from examples to enable android CI to pass
  • Loading branch information
GETAWAY-Dev committed Apr 14, 2024
2 parents 10c2bd2 + 630b72e commit 1a21f86
Show file tree
Hide file tree
Showing 13 changed files with 541 additions and 440 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/androidBuild.yml
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v3

- name: Clear Gradle Cache
run: rm -rf $HOME/.gradle/caches/

- name: Setup node
uses: actions/setup-node@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions android/build.gradle
Expand Up @@ -37,6 +37,12 @@ android {

buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
}
packagingOptions {
excludes = [
"META-INF",
"META-INF/**",
]
}
}

repositories {
Expand Down
1 change: 1 addition & 0 deletions example/android/app/build.gradle
Expand Up @@ -102,6 +102,7 @@ android {
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}

}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions example/android/gradle.properties
Expand Up @@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand All @@ -34,7 +34,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
newArchEnabled=true

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
Expand Down
1 change: 0 additions & 1 deletion example/babel.config.js
Expand Up @@ -7,7 +7,6 @@ module.exports = {
['@babel/preset-typescript', {allowDeclareFields: true}], // to allow use of declare context
],
plugins: [
'react-native-reanimated/plugin',
[
'module-resolver',
{
Expand Down

0 comments on commit 1a21f86

Please sign in to comment.