Skip to content

Commit

Permalink
Add an empty PrivacyInfo.xcprivacy
Browse files Browse the repository at this point in the history
  • Loading branch information
muzipiao committed Apr 8, 2024
1 parent 395a15b commit b284454
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GMObjC.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "GMObjC"
s.version = "3.3.3"
s.version = "3.3.4"
s.summary = "国密 SM2、SM3、SM4 的 OC 封装,基于 OpenSSL。"
s.description = '基于 OpenSSL 封装 SM2、SM4 加解密、SM3 摘要算法、SM2 签名验签、ECDH 密钥协商、' \
'ASN1 编码解码、DER 编码解码,HMAC 算法等。'
Expand All @@ -13,6 +13,7 @@ Pod::Spec.new do |s|

s.source_files = "GMObjC/**/*.{h,m}"
s.public_header_files = "GMObjC/**/*.h"
s.resource_bundles = {'GMObjC' => ['GMObjC/PrivacyInfo.xcprivacy']}
s.ios.deployment_target = '9.0'

s.requires_arc = true
Expand Down
4 changes: 4 additions & 0 deletions GMObjC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
9C58AAF92BC38869001E62E5 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 9C58AAF82BC38869001E62E5 /* PrivacyInfo.xcprivacy */; };
9CEA768F271017B700DA6FA1 /* GMObjC.h in Headers */ = {isa = PBXBuildFile; fileRef = 9CEA768E271017B700DA6FA1 /* GMObjC.h */; settings = {ATTRIBUTES = (Public, ); }; };
9CEA76A02710180E00DA6FA1 /* GMSm4Utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 9CEA76952710180E00DA6FA1 /* GMSm4Utils.h */; settings = {ATTRIBUTES = (Public, ); }; };
9CEA76A12710180E00DA6FA1 /* GMSm3Utils.h in Headers */ = {isa = PBXBuildFile; fileRef = 9CEA76962710180E00DA6FA1 /* GMSm3Utils.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand All @@ -23,6 +24,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
9C58AAF82BC38869001E62E5 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
9CEA768B271017B700DA6FA1 /* GMObjC.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GMObjC.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9CEA768E271017B700DA6FA1 /* GMObjC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GMObjC.h; sourceTree = "<group>"; };
9CEA76952710180E00DA6FA1 /* GMSm4Utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GMSm4Utils.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -71,6 +73,7 @@
9CEA768D271017B700DA6FA1 /* GMObjC */ = {
isa = PBXGroup;
children = (
9C58AAF82BC38869001E62E5 /* PrivacyInfo.xcprivacy */,
9CEA768E271017B700DA6FA1 /* GMObjC.h */,
9CEA769F2710180E00DA6FA1 /* GMObjCDef.h */,
9CEA769C2710180E00DA6FA1 /* GMSm2Bio.h */,
Expand Down Expand Up @@ -170,6 +173,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9C58AAF92BC38869001E62E5 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
14 changes: 14 additions & 0 deletions GMObjC/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
],
dependencies: [],
targets: [
.target(name: "GMObjC", dependencies: ["openssl"], path: "GMObjC"),
.target(name: "GMObjC", dependencies: ["openssl"], path: "GMObjC", resources: [.copy("PrivacyInfo.xcprivacy")]),
.binaryTarget(name: "openssl", path: "XCFrameworks/openssl.xcframework"),
]
)

0 comments on commit b284454

Please sign in to comment.