Skip to content

Commit debb43f

Browse files
committed
Merge branch 'main' of github.com:fleetbase/storefront-app into app/oli-max
2 parents 2c2df11 + 29c460e commit debb43f

File tree

63 files changed

+6127
-4867
lines changed

Some content is hidden

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

63 files changed

+6127
-4867
lines changed

.github/workflows/react-native-ci.yml

Lines changed: 441 additions & 441 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ buck-out/
5050
\.buckd/
5151
*.keystore
5252
!debug.keystore
53+
.kotlin/
5354

5455
# testing
5556
/coverage

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.19.4
-2.36 KB
Binary file not shown.

android/app/build.gradle

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,32 @@ def enableProguardInReleaseBuilds = false
6464
* The preferred build flavor of JavaScriptCore (JSC)
6565
*
6666
* For example, to use the international variant, you can use:
67-
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
67+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
6868
*
6969
* The international variant includes ICU i18n library and necessary data
7070
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
7171
* give correct results when using with locales other than en-US. Note that
7272
* this variant is about 6MiB larger per architecture than default.
7373
*/
74-
def jscFlavor = 'org.webkit:android-jsc:+'
74+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
7575

7676
android {
7777
ndkVersion rootProject.ext.ndkVersion
7878
buildToolsVersion rootProject.ext.buildToolsVersion
7979
compileSdk rootProject.ext.compileSdkVersion
8080

8181
namespace "com.storefront.app"
82+
83+
compileOptions {
84+
sourceCompatibility JavaVersion.VERSION_17
85+
targetCompatibility JavaVersion.VERSION_17
86+
}
87+
88+
packagingOptions {
89+
jniLibs {
90+
useLegacyPackaging = false
91+
}
92+
}
8293
defaultConfig {
8394
applicationId project.env.get("APP_IDENTIFIER") ?: "com.storefront.app"
8495
minSdkVersion rootProject.ext.minSdkVersion

android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
package com.storefront.app
22

33
import android.app.Application
4-
import com.AlexanderZaytsev.RNI18n.RNI18nPackage
54
import com.facebook.react.PackageList
65
import com.facebook.react.ReactApplication
76
import com.facebook.react.ReactHost
7+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
88
import com.facebook.react.ReactNativeHost
99
import com.facebook.react.ReactPackage
10-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1110
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1211
import com.facebook.react.defaults.DefaultReactNativeHost
13-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
14-
import com.facebook.soloader.SoLoader
15-
import com.lugg.RNCConfig.RNCConfigPackage
1612

1713
class MainApplication : Application(), ReactApplication {
1814

1915
override val reactNativeHost: ReactNativeHost =
2016
object : DefaultReactNativeHost(this) {
21-
override fun getPackages(): List<ReactPackage> =
22-
PackageList(this).packages.apply {
23-
}
17+
override fun getPackages(): List<ReactPackage> = PackageList(this).packages.apply {}
2418

2519
override fun getJSMainModuleName(): String = "index"
2620

@@ -35,10 +29,6 @@ class MainApplication : Application(), ReactApplication {
3529

3630
override fun onCreate() {
3731
super.onCreate()
38-
SoLoader.init(this, OpenSourceMergedSoMapping)
39-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
40-
// If you opted in for the New Architecture, we load the native entry point for this app.
41-
load()
42-
}
32+
loadReactNative(this)
4333
}
4434
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Application.mk for Fleetbase Storefront App
2+
# This file configures the NDK build for the application
3+
4+
# Enable support for 16 KB memory page sizes (required for Android 15+ devices)
5+
# This flag is supported by NDK r27 and higher
6+
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true

android/build.gradle

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,24 @@ buildscript {
55
playServicesLocationVersion = "21.0.1"
66
firebaseMessagingVersion = "22.0.0"
77
firebaseVersion = "22.0.0"
8-
buildToolsVersion = "35.0.0"
8+
buildToolsVersion = "36.0.0"
99
minSdkVersion = 24
10-
compileSdkVersion = 35
11-
targetSdkVersion = 35
10+
compileSdkVersion = 36
11+
targetSdkVersion = 36
1212
ndkVersion = "27.1.12297006"
13-
kotlinVersion = "2.0.21"
13+
kotlinVersion = "2.1.20"
1414
appCompatVersion = "1.4.2"
1515
}
1616
repositories {
1717
google()
1818
mavenCentral()
19-
20-
maven {
21-
url "https://jitpack.io" // Or the correct repository URL for Flipper
22-
}
19+
maven { url 'https://jitpack.io' }
2320
}
2421
dependencies {
25-
classpath("com.android.tools.build:gradle:3.5.4")
22+
classpath("com.android.tools.build:gradle:8.6.0")
2623
classpath("com.facebook.react:react-native-gradle-plugin")
27-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
24+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.20")
2825
classpath('com.google.gms:google-services:4.3.15')
29-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
3026
}
3127
}
3228

android/gradle.properties

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ android.useAndroidX=true
2626
# You can also override it from the CLI using
2727
# ./gradlew <task> -PreactNativeArchitectures=x86_64
2828
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
29+
newArchEnabled=true
2930

3031
# Use this property to enable support to the new architecture.
3132
# This will allow you to use TurboModules and the Fabric render in
@@ -38,5 +39,10 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3839
hermesEnabled=true
3940
android.enableJetifier=true
4041

41-
kotlin.compiler.jvmTarget=11
42+
# Use this property to enable edge-to-edge display support.
43+
# This allows your app to draw behind system bars for an immersive UI.
44+
# Note: Only works with ReactActivity and should not be used with custom Activity.
45+
edgeToEdgeEnabled=false
46+
47+
kotlin.compiler.jvmTarget=17
4248
kotlin.jvm.target.validation.mode=warning

0 commit comments

Comments
 (0)