Skip to content

Commit 44d8ae6

Browse files
feat: Android build
1 parent 3cd6007 commit 44d8ae6

7 files changed

Lines changed: 5 additions & 9 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ android/\.settings/org\.eclipse\.buildship\.core\.prefs
7575
android/mendixnative-release/\.project
7676

7777
android/mendixnative-release/\.settings/org\.eclipse\.buildship\.core\.prefs
78+
79+
android/**/.cxx/

android/app/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ dependencies {
120120
implementation("com.facebook.react:hermes-android")
121121

122122
implementation project(':react-native-localize')
123-
implementation project(":mendixnative-release")
124123

125124
// Explicit add okhttp
126125
implementation("com.squareup.okhttp3:okhttp:4.9.1")
@@ -158,5 +157,4 @@ task copyDownloadableDepsToLibs(type: Copy) {
158157
into "libs"
159158
}
160159

161-
apply from: file("../../node_modules/@mendix/native/androidlib/mendix.gradle"); applyMendixGradle(project)
162160
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

android/app/src/appstore/java/com/mendix/nativetemplate/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class MainActivity extends MendixReactActivity {
1717
@Override
1818
protected void onCreate(@Nullable Bundle savedInstanceState) {
1919
RNBootSplash.init(this, R.style.BootTheme);
20-
this.getLifecycle().addObserver(new MendixActivityObserver(this));
20+
// this.getLifecycle().addObserver(new MendixActivityObserver(this));
2121
boolean hasDeveloperSupport = ((MainApplication) getApplication()).getUseDeveloperSupport();
2222
mendixApp = new MendixApp(AppUrl.getUrlFromResource(this), MxConfiguration.WarningsFilter.none, hasDeveloperSupport, false);
2323
super.onCreate(savedInstanceState);

android/app/src/main/java/com/mendix/nativetemplate/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public boolean getUseDeveloperSupport() {
2222
@Override
2323
public List<ReactPackage> getPackages() {
2424
List<ReactPackage> packages = new PackageList(this).getPackages();
25-
packages.addAll(new MendixPackageList(this).getPackages());
25+
// packages.addAll(new MendixPackageList(this).getPackages());
2626

2727
// Packages that cannot be autolinked yet can be added manually here, for example:
2828
// packages.add(new MyReactNativePackage());

android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ buildscript {
2929
classpath "com.facebook.react:react-native-gradle-plugin"
3030
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
3131
classpath 'org.jetbrains.kotlin:compose-compiler-gradle-plugin:2.0.21'
32-
apply from: file("../node_modules/@mendix/native/androidlib/mendix.gradle"); applyMendixClassPaths(project)
3332

3433
// NOTE: Do not place your application dependencies here; they belong
3534
// in the individual module build.gradle files

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ android.disableResourceValidation=true
2323
android.nonTransitiveRClass=true
2424
android.suppressUnsupportedCompileSdk=33
2525
# enabled by default in RN 0.76 so we need to disable it explicitly
26-
newArchEnabled=false
26+
newArchEnabled=true
2727
hermesEnabled=true
2828
mendixnative.cookieEncryption=false
2929
VisionCamera_enableCodeScanner=true

android/settings.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ rootProject.name = 'nativeTemplate'
66

77
includeBuild('../node_modules/@react-native/gradle-plugin')
88

9-
include ':mendixnative-release'
10-
project(':mendixnative-release').projectDir = new File(rootProject.projectDir, '../node_modules/@mendix/native/androidlib')
11-
129
include ':app'

0 commit comments

Comments
 (0)