From 65b335b735181eff3316b90b543da0b60a12c258 Mon Sep 17 00:00:00 2001 From: Tomasz Regdos Date: Tue, 2 Apr 2024 13:16:34 +0200 Subject: [PATCH] Add PrivacyInfo, update version (#9) --- CHANGELOG.md | 3 +++ Makefile | 8 ++++++-- PUSDK.podspec | 6 +++--- PUSDK/Resources/PrivacyInfo.xcprivacy | 27 +++++++++++++++++++++++++++ Package.swift | 3 ++- dev/xcodebuild_build.sh | 8 ++++++++ 6 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 PUSDK/Resources/PrivacyInfo.xcprivacy create mode 100755 dev/xcodebuild_build.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index c8d0c6d2..86388efc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.0.5 +* Added PrivacyInfo + ## 2.0.4 * Fixed cs translation diff --git a/Makefile b/Makefile index 9af60d4c..b47bc22d 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/PUSDK.podspec b/PUSDK.podspec index 9d86d74f..4232a6ba 100644 --- a/PUSDK.podspec +++ b/PUSDK.podspec @@ -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' => 'sdk@payu.com' } 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' @@ -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 diff --git a/PUSDK/Resources/PrivacyInfo.xcprivacy b/PUSDK/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..82d2b11e --- /dev/null +++ b/PUSDK/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,27 @@ + + + + + NSPrivacyTracking + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypePaymentInfo + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + + diff --git a/Package.swift b/Package.swift index e4cf426c..3cf89646 100644 --- a/Package.swift +++ b/Package.swift @@ -200,7 +200,8 @@ let package = Package( "PUTranslations", "PUWebPayments" ], - path: "PUSDK" + path: "PUSDK", + resources: [.copy("Resources/PrivacyInfo.xcprivacy")] ), .target( name: "PUTheme", diff --git a/dev/xcodebuild_build.sh b/dev/xcodebuild_build.sh new file mode 100755 index 00000000..a0e81196 --- /dev/null +++ b/dev/xcodebuild_build.sh @@ -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