Skip to content

Commit

Permalink
Add PrivacyInfo.xcprivacy (#32)
Browse files Browse the repository at this point in the history
* Add PrivacyInfo.xcprivacy

* Remove unused KeenClient-Prefix.pch file
  • Loading branch information
tung-vu-td committed Apr 25, 2024
1 parent 7ffe8ec commit d886a9b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 29 deletions.
20 changes: 6 additions & 14 deletions KeenClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
012E8A551672B9A90021F6FA /* KeenProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KeenProperties.m; sourceTree = "<group>"; };
017EE11E14E30C96000F3868 /* libKeenClient.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libKeenClient.a; sourceTree = BUILT_PRODUCTS_DIR; };
017EE12114E30C96000F3868 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
017EE12514E30C96000F3868 /* KeenClient-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "KeenClient-Prefix.pch"; sourceTree = "<group>"; };
017EE12614E30C96000F3868 /* KeenClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeenClient.h; sourceTree = "<group>"; };
017EE12714E30C96000F3868 /* KeenClient.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeenClient.m; sourceTree = "<group>"; };
017EE13114E30C96000F3868 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
Expand Down Expand Up @@ -269,22 +268,13 @@
01BA1B0414E895BC00CF9F84 /* KeenConstants.m */,
012E8A541672B9A90021F6FA /* KeenProperties.h */,
012E8A551672B9A90021F6FA /* KeenProperties.m */,
017EE12414E30C96000F3868 /* Supporting Files */,
CA6410D618E37E7C00E53E3C /* KIOEventStore.h */,
CA6410D718E37E7C00E53E3C /* KIOEventStore.m */,
CACE78C918EA0CD800A4AB5B /* KIOEventStore_PrivateMethods.h */,
);
path = KeenClient;
sourceTree = "<group>";
};
017EE12414E30C96000F3868 /* Supporting Files */ = {
isa = PBXGroup;
children = (
017EE12514E30C96000F3868 /* KeenClient-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
017EE13714E30C96000F3868 /* KeenClientTests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -840,11 +830,12 @@
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
DSTROOT = /tmp/KeenClient.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "KeenClient/KeenClient-Prefix.pch";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
"GCC_PREPROCESSOR_DEFINITIONS[arch=*]" = "$(inherited)";
GCC_THUMB_SUPPORT = NO;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/Library\"",
Expand All @@ -861,9 +852,10 @@
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
DSTROOT = /tmp/KeenClient.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "KeenClient/KeenClient-Prefix.pch";
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
GCC_THUMB_SUPPORT = NO;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/Library\"",
Expand Down
8 changes: 7 additions & 1 deletion KeenClient.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions KeenClient/KeenClient-Prefix.pch

This file was deleted.

9 changes: 5 additions & 4 deletions KeenClientTD.podspec
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
Pod::Spec.new do |spec|
spec.name = 'KeenClientTD'
spec.version = '4.1.0'
spec.license = { :type => 'MIT' }
spec.platforms = { :ios => "12.0", :tvos => "12.0" }
spec.license = { type: 'MIT' }
spec.platforms = { ios: '12.0', tvos: '12.0' }
spec.homepage = 'https://github.com/treasure-data/KeenClient-iOS'
spec.authors = { 'Mitsunori Komatsu' => 'mitsu@treasure-data.com' }
spec.summary = 'Keen iOS client library forked by TD.'
spec.description = <<-DESC
The Keen iOS client is designed to be simple to develop with, yet incredibly flexible. Our goal is to let you decide what events are important to you, use your own vocabulary to describe them, and decide when you want to send them to Keen service.
This is a forked project by TD. The original cool project is https://github.com/keenlabs/KeenClient-iOS.
DESC
spec.source = { :git => 'https://github.com/treasure-data/KeenClient-iOS.git', :tag => spec.version.to_s }
DESC
spec.source = { git: 'https://github.com/treasure-data/KeenClient-iOS.git', tag: spec.version.to_s }
spec.source_files = 'KeenClient/*.{h,m}'
spec.resources = 'PrivacyInfo.xcprivacy'
spec.public_header_files = 'KeenClient/*.h'
spec.requires_arc = true

Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.3

import PackageDescription

Expand All @@ -18,8 +18,7 @@ let package = Package(
targets: [
.target(
name: "KeenClientTD",
dependencies: [
],
dependencies: [],
path: ".",
exclude: [
"KeenClient.xcodeproj/",
Expand All @@ -37,6 +36,7 @@ let package = Package(
"KeenClient/",
"Library/sqlite-amalgamation/",
],
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: "KeenClient",
cxxSettings: [
.headerSearchPath("Library/sqlite-amalgamation"),
Expand Down
33 changes: 33 additions & 0 deletions PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>E174.1</string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit d886a9b

Please sign in to comment.