Skip to content

Commit ec428d8

Browse files
committed
fix: devMenu for devRelease iOS build; amend AndroidManifest with new tag
1 parent 6cc14a3 commit ec428d8

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
android:largeHeap="true"
6161
android:theme="@style/AppTheme"
6262
android:requestLegacyExternalStorage="true"
63+
android:enableOnBackInvokedCallback="true"
6364
tools:ignore="GoogleAppIndexingWarning">
6465
<activity
6566
android:name="com.mendix.nativetemplate.MainActivity"

ios/Podfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ post_install do |installer|
112112

113113
installer.pods_project.targets.each do |target|
114114
target.build_configurations.each do |config|
115-
if target.name == "React"
116-
if config.name == "ReleaseDevApp"
117-
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= []
118-
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] |= ['$(inherited)', "DEBUG=1"]
115+
if config.name == "ReleaseDevApp"
116+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= []
117+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] |= ['$(inherited)', 'NDEBUG=1', 'REACT_NATIVE_DEBUG=1']
118+
if target.name.start_with?("React") || target.name.start_with?("RCT")
119+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] |= ['DEBUG=1']
119120
end
120121
end
121122

ios/nativeTemplate.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,10 @@
970970
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
971971
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
972972
GCC_C_LANGUAGE_STANDARD = gnu99;
973+
GCC_PREPROCESSOR_DEFINITIONS = (
974+
"$(inherited)",
975+
"DEBUG=1",
976+
);
973977
HEADER_SEARCH_PATHS = "$(inherited)";
974978
INFOPLIST_FILE = "nativeTemplate/Info-dev.plist";
975979
IPHONEOS_DEPLOYMENT_TARGET = 15.5;

0 commit comments

Comments
 (0)