diff --git a/app.json b/app.json index fa7d950..3a161e6 100644 --- a/app.json +++ b/app.json @@ -8,9 +8,11 @@ "scheme": "cullof", "userInterfaceStyle": "automatic", "newArchEnabled": true, + "jsEngine": "hermes", "ios": { "supportsTablet": true, - "bundleIdentifier": "com.bagombeka-job.cullof" + "bundleIdentifier": "com.bagombeka-job.cullof", + "jsEngine": "hermes" }, "android": { "adaptiveIcon": { @@ -21,11 +23,11 @@ }, "edgeToEdgeEnabled": true, "predictiveBackGestureEnabled": false, - "package": "com.bagombeka_job.cullof" + "package": "com.bagombeka_job.cullof", + "jsEngine": "hermes" }, "web": { - "output": "static", - "favicon": "./assets/images/favicon.png" + "output": "static" }, "plugins": [ "expo-secure-store", @@ -37,7 +39,8 @@ "usesCleartextTraffic": true } } - ] + ], + "./withGradleProperties.js" ], "experiments": { "typedRoutes": true, diff --git a/assets/images/favicon.png b/assets/images/favicon.png deleted file mode 100644 index 408bd74..0000000 Binary files a/assets/images/favicon.png and /dev/null differ diff --git a/assets/images/login_hero.png b/assets/images/login_hero.png deleted file mode 100644 index 0a93df6..0000000 Binary files a/assets/images/login_hero.png and /dev/null differ diff --git a/assets/images/onboarding_hero.png b/assets/images/onboarding_hero.png index 78cd147..1478714 100644 Binary files a/assets/images/onboarding_hero.png and b/assets/images/onboarding_hero.png differ diff --git a/assets/images/partial-react-logo.png b/assets/images/partial-react-logo.png deleted file mode 100644 index 66fd957..0000000 Binary files a/assets/images/partial-react-logo.png and /dev/null differ diff --git a/assets/images/react-logo.png b/assets/images/react-logo.png deleted file mode 100644 index 9d72a9f..0000000 Binary files a/assets/images/react-logo.png and /dev/null differ diff --git a/assets/images/react-logo@2x.png b/assets/images/react-logo@2x.png deleted file mode 100644 index 2229b13..0000000 Binary files a/assets/images/react-logo@2x.png and /dev/null differ diff --git a/assets/images/react-logo@3x.png b/assets/images/react-logo@3x.png deleted file mode 100644 index a99b203..0000000 Binary files a/assets/images/react-logo@3x.png and /dev/null differ diff --git a/assets/images/register_hero.png b/assets/images/register_hero.png deleted file mode 100644 index 45144a1..0000000 Binary files a/assets/images/register_hero.png and /dev/null differ diff --git a/eas.json b/eas.json index 61bf091..320d741 100644 --- a/eas.json +++ b/eas.json @@ -10,7 +10,8 @@ "preview": { "distribution": "internal", "android": { - "buildType": "apk" + "buildType": "apk", + "gradleCommand": ":app:assembleRelease" } }, "production": {} diff --git a/package.json b/package.json index c04a0ba..ec222a1 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "scripts": { "start": "expo start", "reset-project": "node ./scripts/reset-project.js", - "android": "expo start --android", - "ios": "expo start --ios", + "android": "expo run:android", + "ios": "expo run:ios", "web": "expo start --web", "lint": "expo lint" }, diff --git a/withGradleProperties.js b/withGradleProperties.js new file mode 100644 index 0000000..939331a --- /dev/null +++ b/withGradleProperties.js @@ -0,0 +1,18 @@ +const { withGradleProperties } = require('@expo/config-plugins'); + +module.exports = function withCustomGradleProperties(config) { + return withGradleProperties(config, (config) => { + config.modResults.push( + // We limit to 64-bit architecture only: this drops the size to ~25MB! + // 99% of Android phones over the last 8 years use arm64. + { type: 'property', key: 'reactNativeArchitectures', value: 'arm64-v8a' }, + + // Enable R8 Minification (Strips unused React Native code) + { type: 'property', key: 'android.enableMinifyInReleaseBuilds', value: 'true' }, + + // Enable Resource Shrinking (Strips unused images/fonts) + { type: 'property', key: 'android.enableShrinkResourcesInReleaseBuilds', value: 'true' } + ); + return config; + }); +};