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

Detox configuration for Android on Apple Silicon #1954

Merged
merged 1 commit into from
Oct 10, 2023
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
13 changes: 13 additions & 0 deletions packages/mobile/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ module.exports = {
avdName: 'emulator',
},
},
emulator_ci: {
type: 'android.emulator',
device: {
avdName: 'Pixel_3a_API_34_arm64-v8a',
},
},
},
configurations: {
'ios.sim.debug': {
Expand Down Expand Up @@ -135,6 +141,13 @@ module.exports = {
rootDir: './e2e/artifacts/android',
},
},
'android.emu.debug.ci': {
device: 'emulator_ci',
app: 'android.debug',
artifacts: {
rootDir: './e2e/artifacts/android',
},
},
'android.emu.storybook': {
device: 'emulator',
app: 'android.storybook',
Expand Down
5 changes: 4 additions & 1 deletion packages/mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,11 @@ def reactNativeArchitectures() {
return value ? value.split(",") : ["arm64-v8a"]
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

android {
ndkPath NDK_PATH
ndkPath properties.getProperty('ndk.dir')

ndkVersion rootProject.ext.ndkVersion

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/android/gradle.properties
Original file line number Diff line number Diff line change
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: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
Expand Down
Loading