From 25eecca4efa34b7f7f0bb85e4052ee8ecb3fec09 Mon Sep 17 00:00:00 2001 From: Measure Team Date: Fri, 24 May 2024 10:43:59 +0000 Subject: [PATCH] Update to the Anyline Tire Tread SDK v5.0.0 --- Anyline Tire Demo.xcodeproj/project.pbxproj | 44 +++++-------------- .../xcshareddata/IDEWorkspaceChecks.plist | 8 ---- .../xcshareddata/swiftpm/Package.resolved | 41 ----------------- .../Scan/Controller/ScanViewController.swift | 22 +++++----- .../Resources/System/PrivacyInfo.xcprivacy | 43 ++++++++++++++++++ .../Resources/default_config.json | 39 ++++++++++++++++ 6 files changed, 104 insertions(+), 93 deletions(-) delete mode 100644 Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 Anyline Tire Demo/Resources/System/PrivacyInfo.xcprivacy create mode 100644 Anyline Tire Demo/Resources/default_config.json diff --git a/Anyline Tire Demo.xcodeproj/project.pbxproj b/Anyline Tire Demo.xcodeproj/project.pbxproj index 2f25726..b552501 100644 --- a/Anyline Tire Demo.xcodeproj/project.pbxproj +++ b/Anyline Tire Demo.xcodeproj/project.pbxproj @@ -12,14 +12,11 @@ 030D8C7E8F9F826524BA31A7 /* SnapKit in Frameworks */ = {isa = PBXBuildFile; productRef = AE4098F783D33EDD00174621 /* SnapKit */; }; 0A1A2396F1C55377451C6AF4 /* ResultViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DBF323846DAEE03F621DBF05 /* ResultViewController.swift */; }; 0FA8883A556B2FA320CA2DD2 /* AccuracySpeedSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94B3EE586C5AEFFD0946C9B5 /* AccuracySpeedSettingsView.swift */; }; - 0FCB12352851B2CC14B8A7C1 /* vcs.xml in Resources */ = {isa = PBXBuildFile; fileRef = CD3FF46CD2D958B6D81CB5BA /* vcs.xml */; }; 1AC53E9E0FF2699C737155CF /* String+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67840B9E99FD8F9FC54844DB /* String+Extension.swift */; }; 1D17BE143196523D2031D216 /* DescriptionErrorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 684EA574D2CD2834C4B90FE7 /* DescriptionErrorView.swift */; }; 1DB1D383AF7C342F7E94BE9C /* AnimationLoadingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 039C5E9CF9FCB168405C7A63 /* AnimationLoadingView.swift */; }; - 25AB68DC8C089B49BF4B88D4 /* workspace.xml in Resources */ = {isa = PBXBuildFile; fileRef = 0961EA8CC47CD233AAC28496 /* workspace.xml */; }; 29ED2FF6F2DD3987E89BFA6A /* tiretread_sound_stop.wav in Resources */ = {isa = PBXBuildFile; fileRef = 0279B6C33EC315BFB9202A88 /* tiretread_sound_stop.wav */; }; 2E4E98C5AC372ECAECE7BCEA /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4F65BCB8B40B49FE3A81C57 /* SettingsView.swift */; }; - 310CB561F42A37A560B9F435 /* Anyline Tire Demo.iml in Resources */ = {isa = PBXBuildFile; fileRef = 5AFB7AFBE9E5485338795E06 /* Anyline Tire Demo.iml */; }; 35B3D619C9CB0D2485FB93C0 /* ResultDetailsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 592EBCA3FF9BC3EC5068119D /* ResultDetailsViewController.swift */; }; 38DB3D561F4C43FB5A8B9727 /* ErrorButtonActionsDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5FDD518668FD48C095561BE8 /* ErrorButtonActionsDelegate.swift */; }; 3CAFFCCFEE3CA28949769BCE /* KeychainSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 5A8E509B4C8C4AC6C6113DBD /* KeychainSwift */; }; @@ -34,7 +31,6 @@ 60867B6448E0174B6C94DD34 /* PDFReaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B672D5814257084C202F656D /* PDFReaderView.swift */; }; 61F8BC3D17A20B47266573CC /* SettingsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94A1F359FD235E25B6A374F9 /* SettingsViewModel.swift */; }; 630302657E9563016A6A475F /* tiretread_sound_beep_too_close.wav in Resources */ = {isa = PBXBuildFile; fileRef = 898D068837A772FDC17C4F80 /* tiretread_sound_beep_too_close.wav */; }; - 66F67940F4634951C847EB98 /* misc.xml in Resources */ = {isa = PBXBuildFile; fileRef = 8686A4230BA9C306CA9090E6 /* misc.xml */; }; 6A3DED6F32AF230CE411624C /* ATDSideButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1FCB5E52078C5C5E8B5569B /* ATDSideButton.swift */; }; 6A88F4119F37EF8E80A6C418 /* LandingViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9341A53AAD476ED9898701C5 /* LandingViewModel.swift */; }; 6E11D51C1B198681FBBBAF50 /* LoadingViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5010D7616B934B0CEA331D02 /* LoadingViewModel.swift */; }; @@ -73,7 +69,7 @@ D6919D00130DD2096F69F352 /* ResultView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C44AFD25638D1C9513636C37 /* ResultView.swift */; }; DA4553F0DFF86A25ACBF1197 /* LandingTextViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 846F00A3CE42550CD5D87E5F /* LandingTextViewDelegate.swift */; }; DAB4121C20787CFBD4E8BC3B /* ATDTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6E20CCB2348A1D5779AD369D /* ATDTextField.swift */; }; - DD19A188C2FE3B064AACA037 /* modules.xml in Resources */ = {isa = PBXBuildFile; fileRef = 848E9ACC3C8B16BC3203A29C /* modules.xml */; }; + DB44FB5A96AA0F682A973E1D /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 8C50D0963153128DE17311B4 /* PrivacyInfo.xcprivacy */; }; DEC9D5EECB42273A5F89B447 /* LandingButtonActionsDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 696E6ED85B49AD9091DA35DE /* LandingButtonActionsDelegate.swift */; }; E42046826C435BB3C8648356 /* InfoSettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98E054DE5275CFBA5F059FFD /* InfoSettingsView.swift */; }; E867FA59DFE1158EF820BA09 /* UIViewController+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE63BB8F9AD2406691FCCEAA /* UIViewController+Extension.swift */; }; @@ -82,6 +78,7 @@ F61AC54D164F3F1D35289943 /* QRCodeReaderViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 420A2185548C476939CD5037 /* QRCodeReaderViewController.swift */; }; F81338C8435FEBA076801D69 /* ScanViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00CC8518403D55DB36CAFA0D /* ScanViewModel.swift */; }; FA806DEF9791249E298CA64D /* tiretread_sound_beep_too_far.wav in Resources */ = {isa = PBXBuildFile; fileRef = B97D72540717494221B2D968 /* tiretread_sound_beep_too_far.wav */; }; + FDF60A693E95780FFB708213 /* default_config.json in Resources */ = {isa = PBXBuildFile; fileRef = 3C29DEB55C2E3EA584BCBFE0 /* default_config.json */; }; FE1F9B0BF324FAB9B95F0C81 /* ErrorViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58DC8214D152A69BF6BE2BFA /* ErrorViewController.swift */; }; /* End PBXBuildFile section */ @@ -89,7 +86,6 @@ 00CC8518403D55DB36CAFA0D /* ScanViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScanViewModel.swift; sourceTree = ""; }; 0279B6C33EC315BFB9202A88 /* tiretread_sound_stop.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = tiretread_sound_stop.wav; sourceTree = ""; }; 039C5E9CF9FCB168405C7A63 /* AnimationLoadingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimationLoadingView.swift; sourceTree = ""; }; - 0961EA8CC47CD233AAC28496 /* workspace.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = workspace.xml; sourceTree = ""; }; 1082146CA856FECC9AE1C392 /* LicenseSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LicenseSettingsView.swift; sourceTree = ""; }; 14A8CECEA3C792A45FFCB5FE /* LoadingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadingViewController.swift; sourceTree = ""; }; 1DBED146B22C6AF08693B5B3 /* ATDTopView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ATDTopView.swift; sourceTree = ""; }; @@ -101,6 +97,7 @@ 356C7E9537E33B81DD3E9DF8 /* tiretread_sound_start.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = tiretread_sound_start.wav; sourceTree = ""; }; 390C46701BB308E6F53EFB81 /* TireTreadMeasurementView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TireTreadMeasurementView.swift; sourceTree = ""; }; 39FB6DAFECFCBA5FFF7D488D /* CaptureSpeedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CaptureSpeedView.swift; sourceTree = ""; }; + 3C29DEB55C2E3EA584BCBFE0 /* default_config.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = default_config.json; sourceTree = ""; }; 3F4512E39D68A2ECC6176D69 /* ImperialSystemSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImperialSystemSettingsView.swift; sourceTree = ""; }; 420A2185548C476939CD5037 /* QRCodeReaderViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QRCodeReaderViewController.swift; sourceTree = ""; }; 43FD477C87ED260D7F2D4B0B /* LandingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LandingView.swift; sourceTree = ""; }; @@ -112,7 +109,6 @@ 53E863C814ADFA1AE90698DB /* LandingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LandingViewController.swift; sourceTree = ""; }; 58DC8214D152A69BF6BE2BFA /* ErrorViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorViewController.swift; sourceTree = ""; }; 592EBCA3FF9BC3EC5068119D /* ResultDetailsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResultDetailsViewController.swift; sourceTree = ""; }; - 5AFB7AFBE9E5485338795E06 /* Anyline Tire Demo.iml */ = {isa = PBXFileReference; path = "Anyline Tire Demo.iml"; sourceTree = ""; }; 5C4839D8B8B3418C1F448C0C /* KeychainManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeychainManager.swift; sourceTree = ""; }; 5FA6E900770A1B48D530C0B0 /* Anyline Tire Demo.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = "Anyline Tire Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 5FDD518668FD48C095561BE8 /* ErrorButtonActionsDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorButtonActionsDelegate.swift; sourceTree = ""; }; @@ -127,17 +123,15 @@ 7806B02B24D5CA9894554DDF /* ProximaNova-Light.otf */ = {isa = PBXFileReference; path = "ProximaNova-Light.otf"; sourceTree = ""; }; 79422290CE7EF2CD20C3D8EE /* SettingsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsViewController.swift; sourceTree = ""; }; 846F00A3CE42550CD5D87E5F /* LandingTextViewDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LandingTextViewDelegate.swift; sourceTree = ""; }; - 848E9ACC3C8B16BC3203A29C /* modules.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = modules.xml; sourceTree = ""; }; - 8686A4230BA9C306CA9090E6 /* misc.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = misc.xml; sourceTree = ""; }; 898D068837A772FDC17C4F80 /* tiretread_sound_beep_too_close.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = tiretread_sound_beep_too_close.wav; sourceTree = ""; }; 8A35D4D3DBCB082A5C414DA4 /* ProximaNova-Bold.otf */ = {isa = PBXFileReference; path = "ProximaNova-Bold.otf"; sourceTree = ""; }; + 8C50D0963153128DE17311B4 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 91A81A696C0FE10BADEDFFF0 /* ErrorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorView.swift; sourceTree = ""; }; 9305D03F418897C0AD10B90F /* tiretread_focuspoint_found.wav */ = {isa = PBXFileReference; lastKnownFileType = audio.wav; path = tiretread_focuspoint_found.wav; sourceTree = ""; }; 9341A53AAD476ED9898701C5 /* LandingViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LandingViewModel.swift; sourceTree = ""; }; 94A1F359FD235E25B6A374F9 /* SettingsViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsViewModel.swift; sourceTree = ""; }; 94B3EE586C5AEFFD0946C9B5 /* AccuracySpeedSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccuracySpeedSettingsView.swift; sourceTree = ""; }; 98E054DE5275CFBA5F059FFD /* InfoSettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InfoSettingsView.swift; sourceTree = ""; }; - 991D8278FE1177881E96C0DB /* .gitignore */ = {isa = PBXFileReference; path = .gitignore; sourceTree = ""; }; 9E205BE38F7CF6F2E673D73B /* MeasurementView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeasurementView.swift; sourceTree = ""; }; A9CB99471900809461B83691 /* TextLandingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextLandingView.swift; sourceTree = ""; }; AA0D513A072F0FA35EEED2BE /* ATDTextLabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ATDTextLabel.swift; sourceTree = ""; }; @@ -149,7 +143,6 @@ C1FCB5E52078C5C5E8B5569B /* ATDSideButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ATDSideButton.swift; sourceTree = ""; }; C44AFD25638D1C9513636C37 /* ResultView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResultView.swift; sourceTree = ""; }; CBBFD690B0F8E473AD1285E8 /* VolumeButtonObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VolumeButtonObserver.swift; sourceTree = ""; }; - CD3FF46CD2D958B6D81CB5BA /* vcs.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = vcs.xml; sourceTree = ""; }; D5BA79536B6EEBE089971CDA /* ScanViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScanViewController.swift; sourceTree = ""; }; D6FDFBEF38034A3F4671F98F /* UserDefaultsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDefaultsManager.swift; sourceTree = ""; }; DB20B1D3E5DE027FAE19AD9F /* ProximaNova-Regular.otf */ = {isa = PBXFileReference; path = "ProximaNova-Regular.otf"; sourceTree = ""; }; @@ -205,6 +198,7 @@ 0B640698AABBBA4ECC8390C5 /* Resources */ = { isa = PBXGroup; children = ( + 3C29DEB55C2E3EA584BCBFE0 /* default_config.json */, 19003AC71D8C98073C1BB5CA /* Audio */, 26065F191C2A166B67E54837 /* Extensions */, 9040E2F1A88E371D7DDCB6A7 /* Helpers */, @@ -317,7 +311,6 @@ BE053E1CF96479297B839F59 /* LaunchScreen.storyboard */, 3318E4FA5B27EDB760F76DFF /* Localizable.strings */, 2193B4C3D407BACF67DB63B3 /* SceneDelegate.swift */, - 810A32CC4231A35D7FE8D5A0 /* .idea */, B2A029EAA4AF722D05D155BE /* DataStorage */, 22B452DAF0CCDD6BA9E99063 /* Fonts */, 4E462EF51CB251ECFF0B094A /* Presentation */, @@ -397,19 +390,6 @@ path = Error; sourceTree = ""; }; - 810A32CC4231A35D7FE8D5A0 /* .idea */ = { - isa = PBXGroup; - children = ( - 991D8278FE1177881E96C0DB /* .gitignore */, - 5AFB7AFBE9E5485338795E06 /* Anyline Tire Demo.iml */, - 8686A4230BA9C306CA9090E6 /* misc.xml */, - 848E9ACC3C8B16BC3203A29C /* modules.xml */, - CD3FF46CD2D958B6D81CB5BA /* vcs.xml */, - 0961EA8CC47CD233AAC28496 /* workspace.xml */, - ); - path = .idea; - sourceTree = ""; - }; 8301B8486339AEE6DE4D3B30 /* View */ = { isa = PBXGroup; children = ( @@ -457,6 +437,7 @@ 930DC432CB7ADC12BB1C40F9 /* System */ = { isa = PBXGroup; children = ( + 8C50D0963153128DE17311B4 /* PrivacyInfo.xcprivacy */, B5F46F97960F579993C41507 /* SystemInfo.swift */, ); path = System; @@ -642,22 +623,19 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 310CB561F42A37A560B9F435 /* Anyline Tire Demo.iml in Resources */, 778185811BD1A1128E44BED5 /* Assets.xcassets in Resources */, 84C49BAE86A8C61E2789AE51 /* LaunchScreen.storyboard in Resources */, B43E435CF5FD514D9D4D4245 /* Localizable.strings in Resources */, + DB44FB5A96AA0F682A973E1D /* PrivacyInfo.xcprivacy in Resources */, CFBC8035DE3560D7ABB142FD /* ProximaNova-Bold.otf in Resources */, E9B33D39315858DA62E2C2BD /* ProximaNova-Light.otf in Resources */, C547C5D4DB92F152AC74F0F8 /* ProximaNova-Regular.otf in Resources */, - 66F67940F4634951C847EB98 /* misc.xml in Resources */, - DD19A188C2FE3B064AACA037 /* modules.xml in Resources */, + FDF60A693E95780FFB708213 /* default_config.json in Resources */, 3CDCBDE8BEBC15FDA1FB6264 /* tiretread_focuspoint_found.wav in Resources */, 630302657E9563016A6A475F /* tiretread_sound_beep_too_close.wav in Resources */, FA806DEF9791249E298CA64D /* tiretread_sound_beep_too_far.wav in Resources */, 7369D989A1B4FE06EB66969A /* tiretread_sound_start.wav in Resources */, 29ED2FF6F2DD3987E89BFA6A /* tiretread_sound_stop.wav in Resources */, - 0FCB12352851B2CC14B8A7C1 /* vcs.xml in Resources */, - 25AB68DC8C089B49BF4B88D4 /* workspace.xml in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -828,7 +806,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3.1; + MARKETING_VERSION = 1.5.3; PRODUCT_BUNDLE_IDENTIFIER = com.anyline.showcase.tiretread; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; @@ -921,7 +899,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.3.1; + MARKETING_VERSION = 1.5.3; PRODUCT_BUNDLE_IDENTIFIER = com.anyline.showcase.tiretread; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; @@ -962,7 +940,7 @@ repositoryURL = "https://github.com/Anyline/anyline-tiretread-spm-module"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 4.2.1; + minimumVersion = 5.0.0; }; }; 4B5AEA5F9FCA6152FDAB044B /* XCRemoteSwiftPackageReference "SnapKit" */ = { diff --git a/Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index b778bbe..0000000 --- a/Anyline Tire Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,41 +0,0 @@ -{ - "pins" : [ - { - "identity" : "alamofire", - "kind" : "remoteSourceControl", - "location" : "https://github.com/Alamofire/Alamofire", - "state" : { - "revision" : "3dc6a42c7727c49bf26508e29b0a0b35f9c7e1ad", - "version" : "5.8.1" - } - }, - { - "identity" : "anyline-tiretread-spm-module", - "kind" : "remoteSourceControl", - "location" : "https://github.com/Anyline/anyline-tiretread-spm-module", - "state" : { - "revision" : "4477a51d26ffd4ed280a4bee2dfdb6d208d82e90", - "version" : "4.2.1" - } - }, - { - "identity" : "keychain-swift", - "kind" : "remoteSourceControl", - "location" : "https://github.com/evgenyneu/keychain-swift.git", - "state" : { - "branch" : "master", - "revision" : "6b6fc468877a5f01fe211fcf0af840b9ecce9d98" - } - }, - { - "identity" : "snapkit", - "kind" : "remoteSourceControl", - "location" : "https://github.com/SnapKit/SnapKit.git", - "state" : { - "branch" : "develop", - "revision" : "4478b2234e85c36b9f2c855d909037dc4dc08eda" - } - } - ], - "version" : 2 -} diff --git a/Anyline Tire Demo/Presentation/Features/Scan/Controller/ScanViewController.swift b/Anyline Tire Demo/Presentation/Features/Scan/Controller/ScanViewController.swift index 50d2ccd..506053f 100644 --- a/Anyline Tire Demo/Presentation/Features/Scan/Controller/ScanViewController.swift +++ b/Anyline Tire Demo/Presentation/Features/Scan/Controller/ScanViewController.swift @@ -55,8 +55,6 @@ private extension ScanViewController { let userDefaults = UserDefaultsManager.shared - let measurementSystem: MeasurementSystem = userDefaults.imperialSystem ? .imperial : .metric - /* * You can optionally provide additional context to a scan. * This makes sense in a workflow, where a scan is connected to other TireTread scans or @@ -72,18 +70,20 @@ private extension ScanViewController { customUiConfig.howToScanTooltipConfig.visible = shouldShowGuidance customUiConfig.tireOverlayConfig.visible = shouldShowGuidance customUiConfig.lineProgressBarConfig.visible = shouldShowGuidance - - let config = TireTreadScanViewConfig.Builder() - .withMeasurementSystem(measurementSystem: measurementSystem) - .withCustomDefaultUiConfig(defaultUIConfig: customUiConfig) - //.addAdditionalContext(additionalContext: additionalContext) - // The API ".withScanSpeed()" is experimental, may impact scan performance and be removed with any major SDK release. - // You are advised to ignore this configuration on your implementation. - .withScanSpeed(scanSpeed: userDefaults.scanSpeed) - .build() + + let config = TireTreadScanViewConfig() + config.measurementSystem = userDefaults.imperialSystem ? .imperial : .metric + // ScanSpeed is experimental, may impact scan performance and may be removed with any major SDK release. + config.scanSpeed = userDefaults.scanSpeed + config.defaultUiConfig = customUiConfig + // You are advised to ignore this configuration on your implementation. + // config.additionalContext = additionalContext // creates a TireTreadScannerViewController. You can later refer to it here // as self.scannerViewController. + + // Alternatively initialise scan process with a JSON config + // let config = "default_config.json" TireTreadScanViewKt.TireTreadScanView(context: UIViewController(), config: config, callback: self) { [weak self] error in self?.displayError() print("Initialization failed: \(error)") diff --git a/Anyline Tire Demo/Resources/System/PrivacyInfo.xcprivacy b/Anyline Tire Demo/Resources/System/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..d20bc1f --- /dev/null +++ b/Anyline Tire Demo/Resources/System/PrivacyInfo.xcprivacy @@ -0,0 +1,43 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + NSPrivacyAccessedAPITypeReasons + + E174.1 + + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategorySystemBootTime + NSPrivacyAccessedAPITypeReasons + + 35F9.1 + + + + + diff --git a/Anyline Tire Demo/Resources/default_config.json b/Anyline Tire Demo/Resources/default_config.json new file mode 100644 index 0000000..2978a0e --- /dev/null +++ b/Anyline Tire Demo/Resources/default_config.json @@ -0,0 +1,39 @@ +{ + "useDefaultUi": true, + "useDefaultHaptic": true, + "defaultUiConfig": { + "distanceIndicatorConfig": { + "visible": true, + "textOk": "Distance OK", + "textMoveCloser": "Move closer", + "textMoveAway": "Move away" + }, + "focusPointTooltipConfig": { + "visible": true, + "text": "Move your device slowly back and forth to detect the tire." + }, + "howToScanTooltipConfig": { + "visible": true, + "text": "Align the overlay with your tire’s outer edge. \nTo change the overlay side, flip your device." + }, + "tapToStartScanningTooltipConfig": { + "visible": true, + "text": "Tap anywhere to start. Then move the device slowly to the inner tire edge." + }, + "tireOverlayConfig": { + "visible": true + }, + "uploadViewConfig": { + "visible": true, + "text": "Uploading..." + }, + "progressTimerConfig": { + "visible": true + }, + "lineProgressBarConfig": { + "visible": true + } + }, + "scanSpeed": "Fast", + "measurementSystem": "Metric" +} \ No newline at end of file