Skip to content

Commit

Permalink
Add PrivacyInfo, update version (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
regdos authored Apr 2, 2024
1 parent 59d4fae commit 65b335b
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.0.5
* Added PrivacyInfo

## 2.0.4
* Fixed cs translation

Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ generate_documentation:
generate_mocks:
./dev/generate_mocks.sh

## ➡️ xcodebuild_test: Run all tests
xcodebuild_test:
## ➡️ build: Build
build:
./dev/xcodebuild_build.sh

## ➡️ test: Run all tests
test:
./dev/xcodebuild_test.sh
6 changes: 3 additions & 3 deletions PUSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = 'PUSDK'
s.version = '2.0.4'
s.version = '2.0.5'
s.summary = 'PayU mobile SDK for iOS'
s.homepage = 'http://developers.payu.com/en/mobile_sdk.html'

s.author = { 'PayU' => '[email protected]' }
s.license = { :type => 'Apache License Version 2.0', :file => 'LICENSE' }
s.source = { :git => 'https://github.com/PayU-EMEA/PayU-iOS-Swift.git', :branch => 'main' }
s.source = { :git => 'https://github.com/PayU-EMEA/PayU-iOS-Swift.git', :tag => s.version }

s.platform = :ios
s.swift_version = '5.3'
Expand Down Expand Up @@ -96,5 +96,5 @@ Pod::Spec.new do |s|
ss.dependency 'PUSDK/PUTheme'
ss.dependency 'PUSDK/PUTranslations'
end

s.resource_bundles = {'PUSDK' => ['PUSDK/Resources/PrivacyInfo.xcprivacy']}
end
27 changes: 27 additions & 0 deletions PUSDK/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePaymentInfo</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
</dict>
</plist>
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ let package = Package(
"PUTranslations",
"PUWebPayments"
],
path: "PUSDK"
path: "PUSDK",
resources: [.copy("Resources/PrivacyInfo.xcprivacy")]
),
.target(
name: "PUTheme",
Expand Down
8 changes: 8 additions & 0 deletions dev/xcodebuild_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
XCODE_SCHEME="PUSDK-Package"
XCODE_DESTINATION="platform=iOS Simulator,OS=17.2,name=iPhone 15 Pro"

echo "✅ xcodebuild $XCODE_SCHEME ..."
xcodebuild \
-scheme "$XCODE_SCHEME" \
-destination "$XCODE_DESTINATION" \
build

0 comments on commit 65b335b

Please sign in to comment.