Skip to content

Commit b15d564

Browse files
authored
Merge pull request #1128 from mendix/moo/2138-multiple-info-plist-10-24
add dev info plist
2 parents 967b93a + 0d0ec49 commit b15d564

File tree

6 files changed

+139
-9
lines changed

6 files changed

+139
-9
lines changed

ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ platform :ios, deployment_target
2323

2424
prepare_react_native_project!
2525
generate_mendix_delegate
26+
setupInfoDevPlist
2627

2728
linkage = ENV['USE_FRAMEWORKS']
2829
if linkage != nil

ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,17 +2103,17 @@ EXTERNAL SOURCES:
21032103

21042104
SPEC CHECKSUMS:
21052105
boost: 7e761d76ca2ce687f7cc98e698152abd03a18f90
2106-
DoubleConversion: cb417026b2400c8f53ae97020b2be961b59470cb
2106+
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
21072107
fast_float: 06eeec4fe712a76acc9376682e4808b05ce978b6
21082108
FBLazyVector: 23d8c5470c648a635893dc0956c6dbaead54b656
21092109
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
2110-
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
2110+
glog: 69ef571f3de08433d766d614c73a9838a06bf7eb
21112111
hermes-engine: b2187dbe13edb0db8fcb2a93a69c1987a30d98a4
21122112
IQKeyboardManager: c8665b3396bd0b79402b4c573eac345a31c7d485
21132113
libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8
21142114
op-sqlite: 0d4f6014d7eb4347bff281fd4cd7970fdf111276
21152115
OpenSSL-Universal: 6082b0bf950e5636fe0d78def171184e2b3899c2
2116-
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
2116+
RCT-Folly: 36fe2295e44b10d831836cc0d1daec5f8abcf809
21172117
RCTDeprecation: 6ee92578d332db1d4e03267d3ae98bcf8b780863
21182118
RCTRequired: 5b3da0e0f91fddda935574b81748c3e3d3649ee7
21192119
RCTTypeSafety: 870cb072be3d3f310ecec897c3d297a931f8f7e1
@@ -2199,6 +2199,6 @@ SPEC CHECKSUMS:
21992199
SSZipArchive: 8a6ee5677c8e304bebc109e39cf0da91ccef22ea
22002200
Yoga: 92f3bb322c40a86b7233b815854730442e01b8c4
22012201

2202-
PODFILE CHECKSUM: 0721d8defdcee9bbb168ccd39c73b4972842a2af
2202+
PODFILE CHECKSUM: 6b09d592b26ddbc7d2bfae3b0af220c4e3b54925
22032203

22042204
COCOAPODS: 1.16.2

ios/mendix_utils.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,22 @@ def include_script_phases(phases)
212212
def get_excluded_capabilities
213213
["nativeOTA"]
214214
end
215+
216+
def setupInfoDevPlist
217+
source_plist = "nativeTemplate/Info.plist"
218+
dest_plist = "nativeTemplate/Info-dev.plist"
219+
220+
# Read the source plist as text
221+
content = File.read(source_plist)
222+
223+
# Replace <key>NSAllowsLocalNetworking</key><false/> with <true/>
224+
content.gsub!(
225+
/(<key>NSAllowsLocalNetworking<\/key>\s*)<false\/>/,
226+
'\1<true/>'
227+
)
228+
229+
# Write back the modified content
230+
File.open(dest_plist, "w") do |file|
231+
file << content
232+
end
233+
end

ios/nativeTemplate.xcodeproj/project.pbxproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
2C887FE224B8948F0003DC53 /* StoryBoardSplash.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C887FE124B8948F0003DC53 /* StoryBoardSplash.m */; };
3636
2C887FE324B8948F0003DC53 /* StoryBoardSplash.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C887FE124B8948F0003DC53 /* StoryBoardSplash.m */; };
3737
572D87C4D9F46E7564D1FE09 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = DBB22F41E3AF5D95F9759402 /* PrivacyInfo.xcprivacy */; };
38+
6EBE02112EE9B3BC00A4F24F /* Info-dev.plist in Resources */ = {isa = PBXBuildFile; fileRef = 6EBE02102EE9B3BC00A4F24F /* Info-dev.plist */; };
39+
6EBE02122EE9B3BC00A4F24F /* Info-dev.plist in Resources */ = {isa = PBXBuildFile; fileRef = 6EBE02102EE9B3BC00A4F24F /* Info-dev.plist */; };
3840
9DF4091425A46A56E2A9A405 /* libPods-nativeTemplate.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 73F36AC2CCD37CCD4E7B1BB8 /* libPods-nativeTemplate.a */; };
3941
B28D6DAD97033B55832E5853 /* libPods-dev.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 11502903429AC2E6E69E6482 /* libPods-dev.a */; };
4042
C5A009082BE291FE00F10EC1 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = C5A009072BE291FE00F10EC1 /* PrivacyInfo.xcprivacy */; };
@@ -84,6 +86,7 @@
8486
4D55DFFF6D52DC368FE13A23 /* Pods-nativeTemplate.releasedevapp.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-nativeTemplate.releasedevapp.xcconfig"; path = "Target Support Files/Pods-nativeTemplate/Pods-nativeTemplate.releasedevapp.xcconfig"; sourceTree = "<group>"; };
8587
64F8A8A81DAAF68662AD5926 /* Pods-nativeTemplate.releasedevapp.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-nativeTemplate.releasedevapp.xcconfig"; path = "Target Support Files/Pods-nativeTemplate/Pods-nativeTemplate.releasedevapp.xcconfig"; sourceTree = "<group>"; };
8688
6ABE4BDB54D431090249D8EC /* Pods-dev.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-dev.release.xcconfig"; path = "Target Support Files/Pods-dev/Pods-dev.release.xcconfig"; sourceTree = "<group>"; };
89+
6EBE02102EE9B3BC00A4F24F /* Info-dev.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Info-dev.plist"; path = "nativeTemplate/Info-dev.plist"; sourceTree = "<group>"; };
8790
73F36AC2CCD37CCD4E7B1BB8 /* libPods-nativeTemplate.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-nativeTemplate.a"; sourceTree = BUILT_PRODUCTS_DIR; };
8891
7EEDF4024CB6865C31DBA5BB /* Pods-nativeTemplate.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-nativeTemplate.release.xcconfig"; path = "Target Support Files/Pods-nativeTemplate/Pods-nativeTemplate.release.xcconfig"; sourceTree = "<group>"; };
8992
9A27E05F0AD54B417B79E303 /* Pods-dev.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-dev.debug.xcconfig"; path = "Target Support Files/Pods-dev/Pods-dev.debug.xcconfig"; sourceTree = "<group>"; };
@@ -144,6 +147,7 @@
144147
2C4991D024C593C3008403BB /* MendixAppDelegate.m */,
145148
2C4991D324C595F0008403BB /* MendixAppDelegate.h */,
146149
13B07FB61A68108700A75B9A /* Info.plist */,
150+
6EBE02102EE9B3BC00A4F24F /* Info-dev.plist */,
147151
1AAE158823C5FEFC00F855F4 /* SwiftInterop.swift */,
148152
2C887FD924B88A0E0003DC53 /* LaunchScreen.storyboard */,
149153
2C005A7823D5B1E200003E29 /* nativeTemplate.entitlements */,
@@ -367,6 +371,7 @@
367371
files = (
368372
C5A009082BE291FE00F10EC1 /* PrivacyInfo.xcprivacy in Resources */,
369373
2C887FDA24B88A0E0003DC53 /* LaunchScreen.storyboard in Resources */,
374+
6EBE02112EE9B3BC00A4F24F /* Info-dev.plist in Resources */,
370375
1A0B83DB22E09B2600EA1E51 /* Bundle in Resources */,
371376
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
372377
EB55620C22E0755000E19C26 /* glyphicons-halflings-regular.ttf in Resources */,
@@ -380,6 +385,7 @@
380385
files = (
381386
1A0B3AFD23992F8200388BF7 /* Images.xcassets in Resources */,
382387
1A0B3AD32397E15800388BF7 /* MendixApp.storyboard in Resources */,
388+
6EBE02122EE9B3BC00A4F24F /* Info-dev.plist in Resources */,
383389
1A0B3AEF2399058B00388BF7 /* config.release.xcconfig in Resources */,
384390
2C887FDB24B88A0E0003DC53 /* LaunchScreen.storyboard in Resources */,
385391
1A0B3AD62397EA8500388BF7 /* glyphicons-halflings-regular.ttf in Resources */,
@@ -870,7 +876,7 @@
870876
"$(inherited)",
871877
"${SRCROOT}/../node_modules/@mendix/native/ios/**",
872878
);
873-
INFOPLIST_FILE = NativeTemplate/Info.plist;
879+
INFOPLIST_FILE = "NativeTemplate/Info-dev.plist";
874880
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
875881
LD_RUNPATH_SEARCH_PATHS = (
876882
"$(inherited)",
@@ -926,7 +932,7 @@
926932
"$(inherited)",
927933
"${SRCROOT}/../node_modules/@mendix/native/ios/**",
928934
);
929-
INFOPLIST_FILE = NativeTemplate/Info.plist;
935+
INFOPLIST_FILE = "NativeTemplate/Info-dev.plist";
930936
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
931937
LD_RUNPATH_SEARCH_PATHS = (
932938
"$(inherited)",
@@ -1128,7 +1134,7 @@
11281134
"$(inherited)",
11291135
"${SRCROOT}/../node_modules/@mendix/native/ios/**",
11301136
);
1131-
INFOPLIST_FILE = NativeTemplate/Info.plist;
1137+
INFOPLIST_FILE = "NativeTemplate/Info-dev.plist";
11321138
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
11331139
LD_RUNPATH_SEARCH_PATHS = (
11341140
"$(inherited)",

ios/nativeTemplate/Info-dev.plist

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>LSApplicationQueriesSchemes</key>
6+
<array>
7+
<string>mailto</string>
8+
<string>tel</string>
9+
</array>
10+
<key>CFBundleDevelopmentRegion</key>
11+
<string>en</string>
12+
<key>CFBundleDisplayName</key>
13+
<string>$(BUNDLE_DISPLAY_NAME)</string>
14+
<key>CFBundleExecutable</key>
15+
<string>$(EXECUTABLE_NAME)</string>
16+
<key>CFBundleIdentifier</key>
17+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
18+
<key>CFBundleInfoDictionaryVersion</key>
19+
<string>6.0</string>
20+
<key>CFBundleName</key>
21+
<string>$(PRODUCT_NAME)</string>
22+
<key>CFBundlePackageType</key>
23+
<string>APPL</string>
24+
<key>CFBundleShortVersionString</key>
25+
<string>1.0</string>
26+
<key>CFBundleSignature</key>
27+
<string>????</string>
28+
<key>CFBundleVersion</key>
29+
<string>1</string>
30+
<key>GoogleMapsApiKey</key>
31+
<string></string>
32+
<key>LSRequiresIPhoneOS</key>
33+
<true/>
34+
<key>NSAppTransportSecurity</key>
35+
<dict>
36+
<key>NSAllowsArbitraryLoads</key>
37+
<false/>
38+
<key>NSAllowsLocalNetworking</key>
39+
<true/>
40+
</dict>
41+
<key>NSBluetoothAlwaysUsageDescription</key>
42+
<string>This app may need access to your Bluetooth connection</string>
43+
<key>NSBluetoothPeripheralUsageDescription</key>
44+
<string>This app may need access to your Bluetooth connection</string>
45+
<key>NSCalendarsUsageDescription</key>
46+
<string>This app requires access to the calendar</string>
47+
<key>NSCameraUsageDescription</key>
48+
<string>The camera can be used to open apps by scanning a QR code.</string>
49+
<key>NSFaceIDUsageDescription</key>
50+
<string>Enabling Face ID allows you quick and secure access to your account.</string>
51+
<key>NSLocationAlwaysUsageDescription</key>
52+
<string>To use that feature the app needs access to your location.</string>
53+
<key>NSLocationWhenInUseUsageDescription</key>
54+
<string>To use that feature the app needs access to your location.</string>
55+
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
56+
<string>To use that feature the app needs access to your location.</string>
57+
<key>NSMicrophoneUsageDescription</key>
58+
<string>To use that feature the app needs access to your microphone.</string>
59+
<key>NSPhotoLibraryUsageDescription</key>
60+
<string>To use that feature the app needs access to your photo library.</string>
61+
<key>Runtime url</key>
62+
<string>$(RUNTIME_URL)</string>
63+
<key>TargetName</key>
64+
<string>${TARGET_NAME}</string>
65+
<key>UIAppFonts</key>
66+
<array>
67+
<string>glyphicons-halflings-regular.ttf</string>
68+
<string>AntDesign.ttf</string>
69+
<string>Entypo.ttf</string>
70+
<string>EvilIcons.ttf</string>
71+
<string>Feather.ttf</string>
72+
<string>FontAwesome.ttf</string>
73+
<string>FontAwesome5_Brands.ttf</string>
74+
<string>FontAwesome5_Regular.ttf</string>
75+
<string>FontAwesome5_Solid.ttf</string>
76+
<string>Fontisto.ttf</string>
77+
<string>Foundation.ttf</string>
78+
<string>Ionicons.ttf</string>
79+
<string>MaterialCommunityIcons.ttf</string>
80+
<string>MaterialIcons.ttf</string>
81+
<string>Octicons.ttf</string>
82+
<string>SimpleLineIcons.ttf</string>
83+
<string>Zocial.ttf</string>
84+
</array>
85+
<key>UILaunchStoryboardName</key>
86+
<string>LaunchScreen</string>
87+
<key>UIMainStoryboardFile</key>
88+
<string>${MAIN_STORY_BOARD}</string>
89+
<key>UIRequiredDeviceCapabilities</key>
90+
<array>
91+
<string>arm64</string>
92+
</array>
93+
<key>UIRequiresFullScreen</key>
94+
<false/>
95+
<key>UISupportedInterfaceOrientations</key>
96+
<array>
97+
<string>UIInterfaceOrientationPortrait</string>
98+
<string>UIInterfaceOrientationLandscapeRight</string>
99+
<string>UIInterfaceOrientationLandscapeLeft</string>
100+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
101+
</array>
102+
<key>UIViewControllerBasedStatusBarAppearance</key>
103+
<false/>
104+
</dict>
105+
</plist>

ios/nativeTemplate/Info.plist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@
3333
<true/>
3434
<key>NSAppTransportSecurity</key>
3535
<dict>
36-
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
3736
<key>NSAllowsArbitraryLoads</key>
3837
<false/>
3938
<key>NSAllowsLocalNetworking</key>
40-
<true/>
39+
<false/>
4140
</dict>
4241
<key>NSBluetoothAlwaysUsageDescription</key>
4342
<string>This app may need access to your Bluetooth connection</string>

0 commit comments

Comments
 (0)