Skip to content

Commit b400b70

Browse files
authored
feat: add PrivacyInfo.xcprivacy for CordovaLib & app template (#1383)
1 parent 902df96 commit b400b70

File tree

11 files changed

+96
-58
lines changed

11 files changed

+96
-58
lines changed

Cordova.podspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ Pod::Spec.new do |s|
3434
s.platform = :ios, "11.0"
3535
s.source = relSource
3636
s.requires_arc = true
37-
s.frameworks = 'Foundation'
37+
s.frameworks = ["Foundation", "UIKit", "WebKit"]
3838
s.source_files = 'CordovaLib/**/*.{h,m}'
3939
s.public_header_files = 'CordovaLib/include/**/*.h'
40+
s.resource_bundles = { "Cordova" => ["CordovaLib/PrivacyInfo.xcprivacy"] }
4041
end
4142

4243
#

CordovaLib/CordovaLib.xcodeproj/project.pbxproj

+34-14
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
9052DE8E2150D06B008E83D4 /* CDVIntentAndNavigationFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = 3093E2211B16D6A3003F381A /* CDVIntentAndNavigationFilter.h */; };
9595
9052DE8F2150D06B008E83D4 /* CDVHandleOpenURL.h in Headers */ = {isa = PBXBuildFile; fileRef = 7ED95CF81AB9028C008C4574 /* CDVHandleOpenURL.h */; };
9696
9059F51C26F2CE2400B3B2B7 /* CDVURLSchemeHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 2F4D42BA23F218BA00501999 /* CDVURLSchemeHandler.h */; settings = {ATTRIBUTES = (Public, ); }; };
97+
90B382512AEB72DD00F3F4D7 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 902D0BC12AEB64EB009C68E5 /* PrivacyInfo.xcprivacy */; };
98+
90DE61742B8F11D300810C2E /* Cordova.h in Headers */ = {isa = PBXBuildFile; fileRef = C0C01EB41E3911D50056E6CB /* Cordova.h */; settings = {ATTRIBUTES = (Public, ); }; };
9799
A3B082D41BB15CEA00D8DC35 /* CDVGestureHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = A3B082D21BB15CEA00D8DC35 /* CDVGestureHandler.h */; };
98100
A3B082D51BB15CEA00D8DC35 /* CDVGestureHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = A3B082D31BB15CEA00D8DC35 /* CDVGestureHandler.m */; };
99101
C0C01EB61E3911D50056E6CB /* Cordova.h in Headers */ = {isa = PBXBuildFile; fileRef = C0C01EB41E3911D50056E6CB /* Cordova.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -172,6 +174,7 @@
172174
7ED95D321AB9029B008C4574 /* NSDictionary+CordovaPreferences.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+CordovaPreferences.m"; sourceTree = "<group>"; };
173175
7ED95D331AB9029B008C4574 /* NSMutableArray+QueueAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSMutableArray+QueueAdditions.h"; sourceTree = "<group>"; };
174176
7ED95D341AB9029B008C4574 /* NSMutableArray+QueueAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSMutableArray+QueueAdditions.m"; sourceTree = "<group>"; };
177+
902D0BC12AEB64EB009C68E5 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
175178
A3B082D21BB15CEA00D8DC35 /* CDVGestureHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDVGestureHandler.h; sourceTree = "<group>"; };
176179
A3B082D31BB15CEA00D8DC35 /* CDVGestureHandler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDVGestureHandler.m; sourceTree = "<group>"; };
177180
C0C01EB21E3911D50056E6CB /* Cordova.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Cordova.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -212,7 +215,8 @@
212215
9064EF5E26FAB74200C9D65B /* include */,
213216
7ED95D0E1AB9029B008C4574 /* Public */,
214217
7ED95CF11AB9028C008C4574 /* Private */,
215-
C0C01EB31E3911D50056E6CB /* Cordova */,
218+
C0C01EB51E3911D50056E6CB /* Info.plist */,
219+
902D0BC12AEB64EB009C68E5 /* PrivacyInfo.xcprivacy */,
216220
034768DFFF38A50411DB9C8B /* Products */,
217221
);
218222
sourceTree = "<group>";
@@ -325,6 +329,7 @@
325329
9064EF5F26FAB74800C9D65B /* Cordova */ = {
326330
isa = PBXGroup;
327331
children = (
332+
C0C01EB41E3911D50056E6CB /* Cordova.h */,
328333
7ED95D0F1AB9029B008C4574 /* CDV.h */,
329334
7ED95D101AB9029B008C4574 /* CDVAppDelegate.h */,
330335
7ED95D121AB9029B008C4574 /* CDVAvailability.h */,
@@ -342,9 +347,9 @@
342347
4E23F8F923E16E96006CD852 /* CDVWebViewProcessPoolFactory.h */,
343348
7ED95D2C1AB9029B008C4574 /* CDVWebViewEngineProtocol.h */,
344349
7ED95D2D1AB9029B008C4574 /* CDVAllowList.h */,
350+
2F4D42BA23F218BA00501999 /* CDVURLSchemeHandler.h */,
345351
7ED95D311AB9029B008C4574 /* NSDictionary+CordovaPreferences.h */,
346352
7ED95D331AB9029B008C4574 /* NSMutableArray+QueueAdditions.h */,
347-
2F4D42BA23F218BA00501999 /* CDVURLSchemeHandler.h */,
348353
);
349354
path = Cordova;
350355
sourceTree = "<group>";
@@ -358,15 +363,6 @@
358363
path = CDVGestureHandler;
359364
sourceTree = "<group>";
360365
};
361-
C0C01EB31E3911D50056E6CB /* Cordova */ = {
362-
isa = PBXGroup;
363-
children = (
364-
C0C01EB41E3911D50056E6CB /* Cordova.h */,
365-
C0C01EB51E3911D50056E6CB /* Info.plist */,
366-
);
367-
path = Cordova;
368-
sourceTree = "<group>";
369-
};
370366
/* End PBXGroup section */
371367

372368
/* Begin PBXHeadersBuildPhase section */
@@ -426,6 +422,7 @@
426422
7ED95D411AB9029B008C4574 /* CDVInvokedUrlCommand.h in Headers */,
427423
7ED95D431AB9029B008C4574 /* CDVPlugin+Resources.h in Headers */,
428424
7ED95D451AB9029B008C4574 /* CDVPlugin.h in Headers */,
425+
90DE61742B8F11D300810C2E /* Cordova.h in Headers */,
429426
7ED95D471AB9029B008C4574 /* CDVPluginResult.h in Headers */,
430427
7ED95D491AB9029B008C4574 /* CDVScreenOrientationDelegate.h in Headers */,
431428
4E23F8FC23E16E96006CD852 /* CDVWebViewUIDelegate.h in Headers */,
@@ -457,6 +454,7 @@
457454
C0C01EAF1E3911D50056E6CB /* Headers */,
458455
C0C01EAD1E3911D50056E6CB /* Sources */,
459456
C0C01EAE1E3911D50056E6CB /* Frameworks */,
457+
90B382502AEB72D300F3F4D7 /* Resources */,
460458
);
461459
buildRules = (
462460
);
@@ -490,7 +488,6 @@
490488
0867D690FE84028FC02AAC07 /* Project object */ = {
491489
isa = PBXProject;
492490
attributes = {
493-
BuildIndependentTargetsInParallel = YES;
494491
LastUpgradeCheck = 1010;
495492
TargetAttributes = {
496493
C0C01EB11E3911D50056E6CB = {
@@ -522,6 +519,17 @@
522519
};
523520
/* End PBXProject section */
524521

522+
/* Begin PBXResourcesBuildPhase section */
523+
90B382502AEB72D300F3F4D7 /* Resources */ = {
524+
isa = PBXResourcesBuildPhase;
525+
buildActionMask = 2147483647;
526+
files = (
527+
90B382512AEB72DD00F3F4D7 /* PrivacyInfo.xcprivacy in Resources */,
528+
);
529+
runOnlyForDeploymentPostprocessing = 0;
530+
};
531+
/* End PBXResourcesBuildPhase section */
532+
525533
/* Begin PBXSourcesBuildPhase section */
526534
C0C01EAD1E3911D50056E6CB /* Sources */ = {
527535
isa = PBXSourcesBuildPhase;
@@ -645,6 +653,7 @@
645653
COPY_PHASE_STRIP = NO;
646654
DEBUG_INFORMATION_FORMAT = dwarf;
647655
DEFINES_MODULE = YES;
656+
ENABLE_MODULE_VERIFIER = YES;
648657
ENABLE_STRICT_OBJC_MSGSEND = YES;
649658
ENABLE_TESTABILITY = YES;
650659
ENABLE_USER_SCRIPT_SANDBOXING = YES;
@@ -665,6 +674,8 @@
665674
GCC_WARN_UNUSED_VARIABLE = YES;
666675
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
667676
MERGEABLE_LIBRARY = YES;
677+
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
678+
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
668679
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
669680
MTL_FAST_MATH = YES;
670681
ONLY_ACTIVE_ARCH = YES;
@@ -712,6 +723,7 @@
712723
COPY_PHASE_STRIP = NO;
713724
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
714725
DEFINES_MODULE = YES;
726+
ENABLE_MODULE_VERIFIER = YES;
715727
ENABLE_NS_ASSERTIONS = NO;
716728
ENABLE_STRICT_OBJC_MSGSEND = YES;
717729
ENABLE_USER_SCRIPT_SANDBOXING = YES;
@@ -727,6 +739,8 @@
727739
GCC_WARN_UNUSED_VARIABLE = YES;
728740
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
729741
MERGEABLE_LIBRARY = YES;
742+
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
743+
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
730744
MTL_ENABLE_DEBUG_INFO = NO;
731745
MTL_FAST_MATH = YES;
732746
OTHER_LDFLAGS = "-ObjC";
@@ -740,10 +754,12 @@
740754
C0C01EB71E3911D50056E6CB /* Debug */ = {
741755
isa = XCBuildConfiguration;
742756
buildSettings = {
757+
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
743758
DYLIB_INSTALL_NAME_BASE = "@rpath";
744759
ENABLE_MODULE_VERIFIER = YES;
745-
INFOPLIST_FILE = Cordova/Info.plist;
760+
INFOPLIST_FILE = Info.plist;
746761
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
762+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
747763
LD_RUNPATH_SEARCH_PATHS = (
748764
"$(inherited)",
749765
"@executable_path/Frameworks",
@@ -752,6 +768,7 @@
752768
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
753769
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
754770
PRODUCT_BUNDLE_IDENTIFIER = org.apache.cordova.Cordova;
771+
SKIP_INSTALL = NO;
755772
TARGETED_DEVICE_FAMILY = "1,2";
756773
VERSIONING_SYSTEM = "apple-generic";
757774
VERSION_INFO_PREFIX = "";
@@ -761,10 +778,12 @@
761778
C0C01EB81E3911D50056E6CB /* Release */ = {
762779
isa = XCBuildConfiguration;
763780
buildSettings = {
781+
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
764782
DYLIB_INSTALL_NAME_BASE = "@rpath";
765783
ENABLE_MODULE_VERIFIER = YES;
766-
INFOPLIST_FILE = Cordova/Info.plist;
784+
INFOPLIST_FILE = Info.plist;
767785
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
786+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
768787
LD_RUNPATH_SEARCH_PATHS = (
769788
"$(inherited)",
770789
"@executable_path/Frameworks",
@@ -773,6 +792,7 @@
773792
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
774793
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
775794
PRODUCT_BUNDLE_IDENTIFIER = org.apache.cordova.Cordova;
795+
SKIP_INSTALL = NO;
776796
TARGETED_DEVICE_FAMILY = "1,2";
777797
VERSIONING_SYSTEM = "apple-generic";
778798
VERSION_INFO_PREFIX = "";

CordovaLib/Cordova/Info.plist CordovaLib/Info.plist

+7-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>CordovaLib</string>
79
<key>CFBundleExecutable</key>
810
<string>$(EXECUTABLE_NAME)</string>
911
<key>CFBundleIdentifier</key>
@@ -13,12 +15,12 @@
1315
<key>CFBundleName</key>
1416
<string>$(PRODUCT_NAME)</string>
1517
<key>CFBundlePackageType</key>
16-
<string>FMWK</string>
18+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1719
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
20+
<string>7.1.0-dev</string>
1921
<key>CFBundleVersion</key>
2022
<string>$(CURRENT_PROJECT_VERSION)</string>
21-
<key>NSPrincipalClass</key>
22-
<string></string>
23+
<key>NSHumanReadableCopyright</key>
24+
<string>Copyright 2012 The Apache Software Foundation</string>
2325
</dict>
2426
</plist>

CordovaLib/PrivacyInfo.xcprivacy

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>NSPrivacyTracking</key>
6+
<false/>
7+
<key>NSPrivacyCollectedDataTypes</key>
8+
<array/>
9+
<key>NSPrivacyAccessedAPITypes</key>
10+
<array/>
11+
<key>NSPrivacyTrackingDomains</key>
12+
<array/>
13+
</dict>
14+
</plist>

CordovaLib/include/Cordova/CDV.h

+8
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@
2424
#import <Cordova/CDVPluginResult.h>
2525
#import <Cordova/CDVViewController.h>
2626
#import <Cordova/CDVCommandDelegate.h>
27+
#import <Cordova/CDVCommandQueue.h>
28+
#import <Cordova/CDVConfigParser.h>
2729
#import <Cordova/CDVInvokedUrlCommand.h>
30+
#import <Cordova/CDVPlugin+Resources.h>
31+
#import <Cordova/CDVWebViewEngineProtocol.h>
32+
#import <Cordova/CDVWebViewProcessPoolFactory.h>
33+
#import <Cordova/NSDictionary+CordovaPreferences.h>
34+
#import <Cordova/NSMutableArray+QueueAdditions.h>
2835
#import <Cordova/CDVAllowList.h>
2936
#import <Cordova/CDVScreenOrientationDelegate.h>
3037
#import <Cordova/CDVTimer.h>
38+
#import <Cordova/CDVURLSchemeHandler.h>

CordovaLib/Cordova/Cordova.h CordovaLib/include/Cordova/Cordova.h

-21
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,4 @@ FOUNDATION_EXPORT double CordovaVersionNumber;
2525
//! Project version string for Cordova.
2626
FOUNDATION_EXPORT const unsigned char CordovaVersionString[];
2727

28-
// In this header, you should import all the public headers of your framework using statements like #import <Cordova/PublicHeader.h>
29-
3028
#import <Cordova/CDV.h>
31-
#import <Cordova/CDVAvailability.h>
32-
#import <Cordova/CDVAvailabilityDeprecated.h>
33-
#import <Cordova/CDVAppDelegate.h>
34-
#import <Cordova/CDVPlugin.h>
35-
#import <Cordova/CDVPluginResult.h>
36-
#import <Cordova/CDVViewController.h>
37-
#import <Cordova/CDVCommandDelegate.h>
38-
#import <Cordova/CDVCommandQueue.h>
39-
#import <Cordova/CDVConfigParser.h>
40-
#import <Cordova/CDVInvokedUrlCommand.h>
41-
#import <Cordova/CDVPlugin+Resources.h>
42-
#import <Cordova/CDVWebViewEngineProtocol.h>
43-
#import <Cordova/CDVWebViewProcessPoolFactory.h>
44-
#import <Cordova/NSDictionary+CordovaPreferences.h>
45-
#import <Cordova/NSMutableArray+QueueAdditions.h>
46-
#import <Cordova/CDVAllowList.h>
47-
#import <Cordova/CDVScreenOrientationDelegate.h>
48-
#import <Cordova/CDVTimer.h>
49-
#import <Cordova/CDVURLSchemeHandler.h>

Package.swift

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.5
22

33
/*
44
Licensed to the Apache Software Foundation (ASF) under one
@@ -24,7 +24,8 @@ import PackageDescription
2424
let package = Package(
2525
name: "Cordova",
2626
platforms: [
27-
.iOS(.v11)
27+
.iOS(.v11),
28+
.macCatalyst(.v13)
2829
],
2930
products: [
3031
.library(name: "CordovaLib", targets: ["Cordova"])
@@ -34,7 +35,10 @@ let package = Package(
3435
.target(
3536
name: "Cordova",
3637
path: "CordovaLib/",
37-
exclude: ["Cordova/Cordova.h", "Cordova/Info.plist"],
38+
exclude: ["Info.plist"],
39+
resources: [
40+
.copy("PrivacyInfo.xcprivacy")
41+
],
3842
cSettings: [
3943
.headerSearchPath("Classes/Private")
4044
]

lib/create.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ class ProjectCreator {
118118
// like it should).
119119
fs.symlinkSync(cordovaLibPathSrc, cordovaLibPathDest);
120120
} else {
121-
for (const p of ['include', 'Classes', 'CordovaLib.xcodeproj/project.pbxproj']) {
122-
fs.copySync(path.join(cordovaLibPathSrc, p), path.join(cordovaLibPathDest, p));
123-
}
121+
fs.copySync(cordovaLibPathSrc, cordovaLibPathDest);
124122
}
125123
}
126124

templates/project/__PROJECT_NAME__.xcodeproj/project.pbxproj

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
4E7CA2B6272ABB0D00177EF9 /* config.xml in Copy Staging Resources */ = {isa = PBXBuildFile; fileRef = F840E1F0165FE0F500CFE078 /* config.xml */; };
1717
4E7CA2B7272ABB0D00177EF9 /* www in Copy Staging Resources */ = {isa = PBXBuildFile; fileRef = 301BF56E109A69640062928A /* www */; };
1818
6AFF5BF91D6E424B00AB3073 /* CDVLaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6AFF5BF81D6E424B00AB3073 /* CDVLaunchScreen.storyboard */; };
19+
90B630EF2AECBBD0009EF368 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 90B630EE2AECBBD0009EF368 /* PrivacyInfo.xcprivacy */; };
1920
/* End PBXBuildFile section */
2021

2122
/* Begin PBXContainerItemProxy section */
@@ -74,6 +75,7 @@
7475
32CA4F630368D1EE00C91783 /* __PROJECT_NAME__-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "__PROJECT_NAME__-Prefix.pch"; sourceTree = "<group>"; };
7576
6AFF5BF81D6E424B00AB3073 /* CDVLaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = CDVLaunchScreen.storyboard; sourceTree = "<group>"; };
7677
8D1107310486CEB800E47090 /* __PROJECT_NAME__-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "__PROJECT_NAME__-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
78+
90B630EE2AECBBD0009EF368 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
7779
EB87FDF31871DA8E0020F90C /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; name = www; path = ../../www; sourceTree = "<group>"; };
7880
EB87FDF41871DAF40020F90C /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = config.xml; path = ../../config.xml; sourceTree = "<group>"; };
7981
ED33DF2A687741AEAF9F8254 /* Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Bridging-Header.h"; sourceTree = "<group>"; };
@@ -120,6 +122,7 @@
120122
29B97315FDCFA39411CA2CEA /* __PROJECT_NAME__ */ = {
121123
isa = PBXGroup;
122124
children = (
125+
90B630EE2AECBBD0009EF368 /* PrivacyInfo.xcprivacy */,
123126
8D1107310486CEB800E47090 /* __PROJECT_NAME__-Info.plist */,
124127
32CA4F630368D1EE00C91783 /* __PROJECT_NAME__-Prefix.pch */,
125128
6AFF5BF81D6E424B00AB3073 /* CDVLaunchScreen.storyboard */,
@@ -269,6 +272,7 @@
269272
files = (
270273
302D95F214D2391D003F00A1 /* MainViewController.xib in Resources */,
271274
0207DA581B56EA530066E2B4 /* Assets.xcassets in Resources */,
275+
90B630EF2AECBBD0009EF368 /* PrivacyInfo.xcprivacy in Resources */,
272276
6AFF5BF91D6E424B00AB3073 /* CDVLaunchScreen.storyboard in Resources */,
273277
);
274278
runOnlyForDeploymentPostprocessing = 0;
@@ -351,6 +355,7 @@
351355
isa = XCBuildConfiguration;
352356
baseConfigurationReference = 3047A5111AB8059700498E2A /* build.xcconfig */;
353357
buildSettings = {
358+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
354359
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
355360
CLANG_ENABLE_MODULES = YES;
356361
CLANG_ENABLE_OBJC_ARC = YES;
@@ -397,6 +402,7 @@
397402
isa = XCBuildConfiguration;
398403
baseConfigurationReference = 3047A5111AB8059700498E2A /* build.xcconfig */;
399404
buildSettings = {
405+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
400406
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
401407
CLANG_ENABLE_MODULES = YES;
402408
CLANG_ENABLE_OBJC_ARC = YES;

templates/project/__PROJECT_NAME__/Bridging-Header.h

+3-11
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,15 @@
66
to you under the Apache License, Version 2.0 (the
77
"License"); you may not use this file except in compliance
88
with the License. You may obtain a copy of the License at
9+
910
http://www.apache.org/licenses/LICENSE-2.0
11+
1012
Unless required by applicable law or agreed to in writing,
1113
software distributed under the License is distributed on an
1214
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1315
KIND, either express or implied. See the License for the
1416
specific language governing permissions and limitations
1517
under the License.
1618
*/
17-
//
18-
// Bridging-Header.h
19-
// __PROJECT_NAME__
20-
//
21-
// Created by ___FULLUSERNAME___ on ___DATE___.
22-
// Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
23-
//
24-
//
25-
// Use this file to import your target's public headers that you would like to expose to Swift.
26-
//
2719

28-
#import <Cordova/CDV.h>
20+
#import <Cordova/Cordova.h>

0 commit comments

Comments
 (0)