Skip to content

Commit f5e4cc3

Browse files
chore: add mendix.gradle
1 parent 44d8ae6 commit f5e4cc3

7 files changed

Lines changed: 22 additions & 21 deletions

File tree

android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,5 @@ task copyDownloadableDepsToLibs(type: Copy) {
157157
into "libs"
158158
}
159159

160+
apply from: file("../../node_modules/mendix-native/android/mendix.gradle"); applyMendixGradle(project)
160161
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ 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/android/mendix.gradle"); applyMendixClassPaths(project)
3233

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

mendix-native-0.0.1.tgz

3.43 KB
Binary file not shown.

package-lock.json

Lines changed: 17 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"@d11/react-native-fast-image": "8.11.1",
1111
"@gorhom/bottom-sheet": "^5.1.1",
12-
"@mendix/native": "file:./mendix-native-0.0.1.tgz",
12+
"mendix-native": "file:./mendix-native-0.0.1.tgz",
1313
"@notifee/react-native": "9.1.8",
1414
"@op-engineering/op-sqlite": "12.0.2",
1515
"@react-native-async-storage/async-storage": "2.0.0",

0 commit comments

Comments
 (0)