├── .DS_Store ├── .gitignore ├── App ├── .DS_Store ├── Assets.xcassets │ ├── .DS_Store │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ └── icon.png │ ├── AppIcon.solidimagestack │ │ ├── Back.solidimagestacklayer │ │ │ ├── Content.imageset │ │ │ │ ├── Contents.json │ │ │ │ └── back.png │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── Front.solidimagestacklayer │ │ │ ├── Content.imageset │ │ │ ├── Contents.json │ │ │ └── front.png │ │ │ └── Contents.json │ └── Contents.json └── UnprotectApp.swift ├── LICENSE ├── Packages ├── .DS_Store ├── Core │ ├── .gitignore │ ├── Package.swift │ ├── README.md │ └── Sources │ │ ├── DesignSystem │ │ ├── Assets.xcassets │ │ │ ├── Background.colorset │ │ │ │ └── Contents.json │ │ │ ├── CodeBackground.colorset │ │ │ │ └── Contents.json │ │ │ ├── CodeColor.colorset │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ ├── Contributors.colorset │ │ │ │ └── Contents.json │ │ │ ├── LightBackground.colorset │ │ │ │ └── Contents.json │ │ │ ├── Rules.colorset │ │ │ │ └── Contents.json │ │ │ ├── SecondaryBackground.colorset │ │ │ │ └── Contents.json │ │ │ ├── Snippets.colorset │ │ │ │ └── Contents.json │ │ │ ├── Techniques.colorset │ │ │ │ └── Contents.json │ │ │ └── TertiaryBackground.colorset │ │ │ │ └── Contents.json │ │ ├── Color.swift │ │ └── Font.swift │ │ ├── Models │ │ ├── Categorie.swift │ │ ├── DetectionRule.swift │ │ ├── Language.swift │ │ ├── Snippet.swift │ │ └── Technique.swift │ │ └── Networking │ │ ├── Network.swift │ │ └── Results.swift └── Features │ ├── .gitignore │ ├── .swiftpm │ └── xcode │ │ └── package.xcworkspace │ │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ ├── Package.swift │ ├── README.md │ └── Sources │ ├── Snippets │ ├── Detail │ │ └── SnippetDetailView.swift │ └── List │ │ └── SnippetsListView.swift │ └── Techniques │ ├── Badges │ └── BadgesView.swift │ ├── Detail │ └── TechniqueDetailView.swift │ └── List │ ├── TechniqueRowView.swift │ └── TechniquesListView.swift ├── README.md ├── Unprotect-Info.plist └── Unprotect.xcodeproj ├── project.pbxproj ├── project.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist └── xcshareddata └── xcschemes └── Unprotect.xcscheme /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unprotect-Project/Unprotect-iOS/c15c28409247c370a584258568b943a721c1682a/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | ## Playgrounds 34 | timeline.xctimeline 35 | playground.xcworkspace 36 | 37 | # Swift Package Manager 38 | # 39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 40 | # Packages/ 41 | # Package.pins 42 | # Package.resolved 43 | # *.xcodeproj 44 | # 45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 46 | # hence it is not needed unless you have added a package configuration file to your project 47 | # .swiftpm 48 | 49 | .build/ 50 | 51 | # CocoaPods 52 | # 53 | # We recommend against adding the Pods directory to your .gitignore. However 54 | # you should judge for yourself, the pros and cons are mentioned at: 55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 56 | # 57 | # Pods/ 58 | # 59 | # Add this line if you want to avoid checking in source code from the Xcode workspace 60 | # *.xcworkspace 61 | 62 | # Carthage 63 | # 64 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 65 | # Carthage/Checkouts 66 | 67 | Carthage/Build/ 68 | 69 | # Accio dependency management 70 | Dependencies/ 71 | .accio/ 72 | 73 | # fastlane 74 | # 75 | # It is recommended to not store the screenshots in the git repo. 76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 77 | # For more information about the recommended setup visit: 78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 79 | 80 | fastlane/report.xml 81 | fastlane/Preview.html 82 | fastlane/screenshots/**/*.png 83 | fastlane/test_output 84 | 85 | # Code Injection 86 | # 87 | # After new code Injection tools there's a generated folder /iOSInjectionProject 88 | # https://github.com/johnno1962/injectionforxcode 89 | 90 | iOSInjectionProject/ 91 | -------------------------------------------------------------------------------- /App/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unprotect-Project/Unprotect-iOS/c15c28409247c370a584258568b943a721c1682a/App/.DS_Store -------------------------------------------------------------------------------- /App/Assets.xcassets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unprotect-Project/Unprotect-iOS/c15c28409247c370a584258568b943a721c1682a/App/Assets.xcassets/.DS_Store -------------------------------------------------------------------------------- /App/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "icon.png", 5 | "idiom" : "universal", 6 | "platform" : "ios", 7 | "size" : "1024x1024" 8 | } 9 | ], 10 | "info" : { 11 | "author" : "xcode", 12 | "version" : 1 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.appiconset/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unprotect-Project/Unprotect-iOS/c15c28409247c370a584258568b943a721c1682a/App/Assets.xcassets/AppIcon.appiconset/icon.png -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "back.png", 5 | "idiom" : "vision", 6 | "scale" : "2x" 7 | } 8 | ], 9 | "info" : { 10 | "author" : "xcode", 11 | "version" : 1 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unprotect-Project/Unprotect-iOS/c15c28409247c370a584258568b943a721c1682a/App/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/back.png -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.solidimagestack/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | }, 6 | "layers" : [ 7 | { 8 | "filename" : "Front.solidimagestacklayer" 9 | }, 10 | { 11 | "filename" : "Back.solidimagestacklayer" 12 | } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "front.png", 5 | "idiom" : "vision", 6 | "scale" : "2x" 7 | } 8 | ], 9 | "info" : { 10 | "author" : "xcode", 11 | "version" : 1 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/front.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unprotect-Project/Unprotect-iOS/c15c28409247c370a584258568b943a721c1682a/App/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/front.png -------------------------------------------------------------------------------- /App/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /App/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /App/UnprotectApp.swift: -------------------------------------------------------------------------------- 1 | import DesignSystem 2 | import Models 3 | import SwiftUI 4 | import Techniques 5 | import Snippets 6 | import Networking 7 | 8 | @main 9 | @MainActor struct UnprotectApp: App { 10 | var body: some Scene { 11 | WindowGroup { 12 | TabView { 13 | techniqueTab.tabItem { 14 | Label("Techniques", systemImage: "aqi.medium") 15 | } 16 | 17 | snippetsTab.tabItem { 18 | Label("Snippets", systemImage: "cube") 19 | } 20 | } 21 | .preferredColorScheme(.dark) 22 | .environment(Networking()) 23 | } 24 | } 25 | 26 | private var techniqueTab: some View { 27 | NavigationStack { 28 | TechniquesListView() 29 | .navigationDestination(for: Technique.self) { technique in 30 | TechniqueDetailView(technique: technique) 31 | } 32 | .toolbarBackground(Color.uSecondaryBackground.opacity(0.50), for: .navigationBar) 33 | } 34 | .toolbarBackground(Color.uSecondaryBackground.opacity(0.50), for: .tabBar) 35 | } 36 | 37 | private var snippetsTab: some View { 38 | NavigationStack { 39 | SnippetsListView() 40 | .navigationDestination(for: Snippet.self) { snippet in 41 | SnippetDetailView(snippet: snippet) 42 | } 43 | .toolbarBackground(Color.uSecondaryBackground.opacity(0.50), for: .navigationBar) 44 | } 45 | .toolbarBackground(Color.uSecondaryBackground.opacity(0.50), for: .tabBar) 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Packages/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unprotect-Project/Unprotect-iOS/c15c28409247c370a584258568b943a721c1682a/Packages/.DS_Store -------------------------------------------------------------------------------- /Packages/Core/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | DerivedData/ 7 | .swiftpm/config/registries.json 8 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 9 | .netrc 10 | -------------------------------------------------------------------------------- /Packages/Core/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.9 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "Core", 8 | platforms: [ 9 | .iOS(.v17), 10 | .macOS(.v14), 11 | ], 12 | products: [ 13 | .library(name: "Networking", targets: ["Networking"]), 14 | .library(name: "DesignSystem", targets: ["DesignSystem"]), 15 | .library(name: "Models", targets: ["Models"]), 16 | ], 17 | dependencies: [], 18 | targets: [ 19 | .target(name: "Networking"), 20 | .target(name: "DesignSystem"), 21 | .target(name: "Models"), 22 | ] 23 | ) 24 | -------------------------------------------------------------------------------- /Packages/Core/README.md: -------------------------------------------------------------------------------- 1 | # Core 2 | 3 | The core stuff of the app. Networking, etc... 4 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/Background.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x34", 9 | "green" : "0x27", 10 | "red" : "0x19" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/CodeBackground.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x2B", 9 | "green" : "0x20", 10 | "red" : "0x15" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/CodeColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xBA", 9 | "green" : "0xAD", 10 | "red" : "0xA6" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/Contributors.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x00", 9 | "green" : "0x8C", 10 | "red" : "0xFF" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/LightBackground.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x41", 9 | "green" : "0x33", 10 | "red" : "0x25" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/Rules.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x2F", 9 | "green" : "0xA4", 10 | "red" : "0x2E" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/SecondaryBackground.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x2B", 9 | "green" : "0x20", 10 | "red" : "0x15" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/Snippets.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xB1", 9 | "green" : "0xAC", 10 | "red" : "0x51" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/Techniques.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0xD0", 9 | "green" : "0x4F", 10 | "red" : "0x94" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Assets.xcassets/TertiaryBackground.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "color" : { 5 | "color-space" : "srgb", 6 | "components" : { 7 | "alpha" : "1.000", 8 | "blue" : "0x23", 9 | "green" : "0x17", 10 | "red" : "0x08" 11 | } 12 | }, 13 | "idiom" : "universal" 14 | } 15 | ], 16 | "info" : { 17 | "author" : "xcode", 18 | "version" : 1 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Color.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | extension Color { 4 | public static let uBackround = Color("Background", bundle: .module) 5 | public static let uLightBackground = Color("LightBackground", bundle: .module) 6 | public static let uSecondaryBackground = Color("SecondaryBackground", bundle: .module) 7 | public static let uTertiaryBackground = Color("TertiaryBackground", bundle: .module) 8 | 9 | public static let uSnippets = Color("Snippets", bundle: .module) 10 | public static let uContributors = Color("Contributors", bundle: .module) 11 | public static let uRules = Color("Rules", bundle: .module) 12 | public static let uTechniques = Color("Techniques", bundle: .module) 13 | public static let uCodeColor = Color("CodeColor", bundle: .module) 14 | public static let uCodeBackground = Color("CodeBackground", bundle: .module) 15 | } 16 | -------------------------------------------------------------------------------- /Packages/Core/Sources/DesignSystem/Font.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | 3 | extension Font { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /Packages/Core/Sources/Models/Categorie.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Categorie: Codable, Identifiable, Hashable { 4 | public let id: Int 5 | public let key: String 6 | public let label: String 7 | } 8 | 9 | public let previewCategorie = Categorie(id: 0, key: "Categories", label: "Categorie") 10 | -------------------------------------------------------------------------------- /Packages/Core/Sources/Models/DetectionRule.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct DetectionRule: Codable, Hashable, Identifiable { 4 | public let id: Int 5 | public let name: String 6 | public let rule: String 7 | public let type: RuleType 8 | 9 | public struct RuleType: Codable, Hashable, Identifiable { 10 | public let id: Int 11 | public let name: String 12 | public let syntaxLang: String 13 | } 14 | } 15 | 16 | let previewDetectionRule = DetectionRule(id: 0, 17 | name: "Rule", 18 | rule: "Rule first", 19 | type: .init(id: 0, name: "YARA", syntaxLang: "C")) 20 | -------------------------------------------------------------------------------- /Packages/Core/Sources/Models/Language.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import SwiftUI 3 | 4 | public struct Language: Codable, Identifiable, Hashable { 5 | public let id: Int 6 | public let label: String 7 | public let codeClass: String 8 | } 9 | 10 | public let previewLanguage = Language(id: 0, label: "C++", codeClass: "CPP") 11 | -------------------------------------------------------------------------------- /Packages/Core/Sources/Models/Snippet.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import SwiftUI 3 | 4 | public struct Snippet: Codable, Hashable, Identifiable { 5 | public let id: Int 6 | public let plainCode: String 7 | public let language: Language 8 | public let technique: URL 9 | public let description: String 10 | } 11 | -------------------------------------------------------------------------------- /Packages/Core/Sources/Models/Technique.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Technique: Codable, Identifiable, Hashable { 4 | public let id: Int 5 | public let name: String 6 | public let description: String 7 | public let category: [Int] 8 | public let tags: String 9 | public let attachments: [String] 10 | public let rules: [Int] 11 | } 12 | 13 | public let previewTechnique = { Technique(id: Int.random(in: 0...100000), 14 | name: "Technique preview", 15 | description: "Some description", 16 | category: [0, 1, 2], 17 | tags: "#preview", 18 | attachments: [], 19 | rules: []) } 20 | -------------------------------------------------------------------------------- /Packages/Core/Sources/Networking/Network.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @Observable 4 | public class Networking { 5 | public enum Endpoint: String { 6 | case techniques, categories, snippets 7 | case detectionRules = "detection_rules" 8 | case snippetAuthors = "snippet_authors" 9 | } 10 | 11 | private let jsonDecoder = JSONDecoder() 12 | 13 | public init() { 14 | jsonDecoder.keyDecodingStrategy = .convertFromSnakeCase 15 | } 16 | 17 | private func makeURL(endpoint: Endpoint, page: Int?) -> URL { 18 | var components = URLComponents() 19 | components.scheme = "https" 20 | components.host = "unprotect.it" 21 | components.path = "/api/\(endpoint.rawValue).json" 22 | if let page { 23 | components.queryItems = [ 24 | URLQueryItem(name: "page", value: String(page)) 25 | ] 26 | } 27 | return components.url! 28 | } 29 | 30 | public func fetch(endpoint: Endpoint, page: Int?) async throws -> Result { 31 | let request = URLRequest(url: makeURL(endpoint: endpoint, page: page)) 32 | let data = try await URLSession.shared.data(for: request).0 33 | return try jsonDecoder.decode(Result.self, from: data) 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Packages/Core/Sources/Networking/Results.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public struct Results: Codable { 4 | public let count: Int 5 | public let next: URL? 6 | public let previous: URL? 7 | public let results: [Model] 8 | 9 | public init() { 10 | self.count = 0 11 | self.next = nil 12 | self.previous = nil 13 | self.results = [] 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Packages/Features/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | DerivedData/ 7 | .swiftpm/config/registries.json 8 | .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata 9 | .netrc 10 | -------------------------------------------------------------------------------- /Packages/Features/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Packages/Features/Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.9 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "Features", 8 | platforms: [ 9 | .iOS(.v17), 10 | .macOS(.v14), 11 | ], 12 | products: [ 13 | .library(name: "Techniques", targets: ["Techniques"]), 14 | .library(name: "Snippets", targets: ["Snippets"]), 15 | ], 16 | dependencies: [ 17 | .package(name: "Core", path: "./Core"), 18 | ], 19 | targets: [ 20 | .target( 21 | name: "Techniques", 22 | dependencies: [ 23 | .product(name: "Networking", package: "Core"), 24 | .product(name: "DesignSystem", package: "Core"), 25 | .product(name: "Models", package: "Core"), 26 | ]), 27 | .target( 28 | name: "Snippets", 29 | dependencies: [ 30 | .product(name: "Networking", package: "Core"), 31 | .product(name: "DesignSystem", package: "Core"), 32 | .product(name: "Models", package: "Core"), 33 | ]), 34 | ] 35 | ) 36 | -------------------------------------------------------------------------------- /Packages/Features/README.md: -------------------------------------------------------------------------------- 1 | # Features 2 | 3 | The various features of the app. 4 | -------------------------------------------------------------------------------- /Packages/Features/Sources/Snippets/Detail/SnippetDetailView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import DesignSystem 3 | import Models 4 | 5 | @MainActor 6 | public struct SnippetDetailView: View { 7 | let snippet: Snippet 8 | 9 | public init(snippet: Snippet) { 10 | self.snippet = snippet 11 | } 12 | 13 | public var body: some View { 14 | ZStack { 15 | #if !os(visionOS) 16 | Color.uBackround.edgesIgnoringSafeArea(.all) 17 | #endif 18 | ScrollView { 19 | LazyVStack(alignment: .leading, spacing: 24) { 20 | descriptionSection 21 | snippetsSection 22 | } 23 | #if !os(visionOS) 24 | .background(Color.uBackround) 25 | #endif 26 | } 27 | .navigationBarTitleDisplayMode(.inline) 28 | } 29 | } 30 | 31 | @ViewBuilder 32 | private var descriptionSection: some View { 33 | makeSection(title: "Description") 34 | Text(snippet.description) 35 | .foregroundColor(.white) 36 | .font(.body) 37 | .padding(.horizontal, 12) 38 | } 39 | 40 | @ViewBuilder 41 | private var snippetsSection: some View { 42 | makeSection(title: "Snippets") 43 | 44 | Text(snippet.language.label) 45 | .padding(.horizontal, 12) 46 | 47 | ScrollView { 48 | Text(snippet.plainCode) 49 | .foregroundColor(.uCodeColor) 50 | .font(.body) 51 | .textSelection(.enabled) 52 | .padding(12) 53 | .frame(maxWidth: .infinity, alignment: .leading) 54 | } 55 | #if os(visionOS) 56 | .background(Material.thick) 57 | #else 58 | .background(Color.uCodeBackground) 59 | #endif 60 | .cornerRadius(6) 61 | .padding(.horizontal, 12) 62 | .frame(maxHeight: 300) 63 | } 64 | 65 | private func makeSection(title: String) -> some View { 66 | HStack { 67 | Text(title) 68 | .font(.headline) 69 | .fontWeight(.bold) 70 | .padding(12) 71 | Spacer() 72 | } 73 | .foregroundColor(.white) 74 | #if !os(visionOS) 75 | .background(Color.uLightBackground) 76 | #endif 77 | } 78 | } 79 | 80 | -------------------------------------------------------------------------------- /Packages/Features/Sources/Snippets/List/SnippetsListView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import DesignSystem 3 | import Networking 4 | import Models 5 | 6 | @MainActor 7 | public struct SnippetsListView: View { 8 | @Environment(Networking.self) private var networking 9 | @State private var snippets: [Snippet] = [] 10 | 11 | public init() { } 12 | 13 | public var body: some View { 14 | List { 15 | if snippets.isEmpty { 16 | ProgressView() 17 | #if !os(visionOS) 18 | .listRowBackground(Color.uBackround) 19 | #endif 20 | } else { 21 | ForEach(snippets) { snippet in 22 | NavigationLink(value: snippet) { 23 | Text(snippet.description).lineLimit(2) 24 | } 25 | #if !os(visionOS) 26 | .listRowBackground(Color.uBackround) 27 | #endif 28 | } 29 | } 30 | }.task { 31 | do { 32 | let snippets: Results = try await networking.fetch(endpoint: .snippets, page: 1) 33 | self.snippets = snippets.results 34 | } catch { } 35 | } 36 | #if os(visionOS) 37 | .listStyle(.grouped) 38 | #else 39 | .listStyle(.plain) 40 | .background(Color.uBackround) 41 | #endif 42 | .navigationTitle("Snippets") 43 | } 44 | } 45 | 46 | #Preview { 47 | SnippetsListView() 48 | } 49 | -------------------------------------------------------------------------------- /Packages/Features/Sources/Techniques/Badges/BadgesView.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import SwiftUI 3 | import Models 4 | 5 | struct BadgesView: View { 6 | let technique: Technique 7 | let categories: [Categorie] 8 | let size: Size 9 | 10 | enum Size { 11 | case small, expanded 12 | } 13 | 14 | var body: some View { 15 | ScrollView(.horizontal) { 16 | HStack(spacing: 8) { 17 | ForEach(technique.category, id: \.self) { category in 18 | if let category = categories.first(where: { $0.id == category }) { 19 | makeBadge(title: category.label, color: .uTechniques) 20 | } 21 | } 22 | if !technique.attachments.isEmpty { 23 | makeBadge(title: "\(technique.attachments.count) Attachment(s)", color: .uSnippets) 24 | } 25 | if !technique.rules.isEmpty { 26 | makeBadge(title: "\(technique.rules.count) Rule(s)", color: .uRules) 27 | } 28 | if size == .expanded { 29 | if !technique.tags.isEmpty { 30 | ForEach(technique.tags.components(separatedBy: " "), id: \.self) { tag in 31 | makeBadge(title: tag, color: .uContributors) 32 | } 33 | } 34 | } 35 | } 36 | } 37 | .scrollIndicators(.hidden) 38 | .scrollClipDisabled() 39 | } 40 | 41 | private func makeBadge(title: String, color: Color) -> some View { 42 | Text(title) 43 | .font(.footnote) 44 | .padding(8) 45 | .background(color) 46 | .cornerRadius(8) 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Packages/Features/Sources/Techniques/Detail/TechniqueDetailView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import DesignSystem 3 | import Models 4 | 5 | public struct TechniqueDetailView: View { 6 | let technique: Technique 7 | 8 | @State private var selectedSnippet: Int 9 | @State private var selectedRule: Int 10 | 11 | public init(technique: Technique) { 12 | self.technique = technique 13 | self.selectedSnippet = 0 14 | self.selectedRule = 0 15 | } 16 | 17 | public var body: some View { 18 | ZStack { 19 | Color.uBackround.edgesIgnoringSafeArea(.all) 20 | ScrollView { 21 | LazyVStack(alignment: .leading, spacing: 24) { 22 | descriptionSection 23 | /* 24 | if !technique.snippets.isEmpty { 25 | snippetsSection 26 | } 27 | if !technique.detectionRules.isEmpty { 28 | rulesSection 29 | } 30 | */ 31 | infoSection 32 | } 33 | .background(Color.uBackround) 34 | } 35 | .navigationTitle(technique.name) 36 | .navigationBarTitleDisplayMode(.inline) 37 | } 38 | } 39 | 40 | @ViewBuilder 41 | private var descriptionSection: some View { 42 | makeSection(title: "Description") 43 | Text(technique.description) 44 | .foregroundColor(.white) 45 | .font(.body) 46 | .padding(.horizontal, 12) 47 | } 48 | 49 | @ViewBuilder 50 | private var infoSection: some View { 51 | makeSection(title: "Info") 52 | BadgesView(technique: technique, categories: [], size: .expanded) 53 | .padding(.horizontal, 12) 54 | } 55 | 56 | @ViewBuilder 57 | private var snippetsSection: some View { 58 | makeSection(title: "Snippets") 59 | 60 | /* 61 | Picker("Language", selection: $selectedSnippet) { 62 | ForEach(technique.snippets) { snippet in 63 | Text(snippet.language.label) 64 | .tag(snippet.id) 65 | } 66 | } 67 | .pickerStyle(.segmented) 68 | .padding(.horizontal, 12) 69 | */ 70 | 71 | /* 72 | ScrollView { 73 | Text(technique.snippets.first{ $0.id == selectedSnippet }?.plainCode ?? "") 74 | .foregroundColor(.uCodeColor) 75 | .font(.body) 76 | .textSelection(.enabled) 77 | .padding(12) 78 | .frame(maxWidth: .infinity, alignment: .leading) 79 | } 80 | .background(Color.uCodeBackground) 81 | .cornerRadius(6) 82 | .padding(.horizontal, 12) 83 | .frame(maxHeight: 300) 84 | */ 85 | } 86 | 87 | 88 | @ViewBuilder 89 | private var rulesSection: some View { 90 | makeSection(title: "Detection Rules") 91 | 92 | /* 93 | Picker("Detection Rules", selection: $selectedRule) { 94 | ForEach(technique.detectionRules) { rule in 95 | Text(rule.type.name) 96 | .tag(rule.id) 97 | } 98 | } 99 | .pickerStyle(.segmented) 100 | .padding(.horizontal, 12) 101 | 102 | 103 | ScrollView { 104 | Text(technique.detectionRules.first{ $0.id == selectedRule }?.rule ?? "") 105 | .foregroundColor(.uCodeColor) 106 | .font(.body) 107 | .textSelection(.enabled) 108 | .padding(12) 109 | .frame(maxWidth: .infinity, alignment: .leading) 110 | } 111 | .background(Color.uCodeBackground) 112 | .cornerRadius(6) 113 | .padding(.horizontal, 12) 114 | .frame(maxHeight: 300) 115 | */ 116 | } 117 | 118 | private func makeSection(title: String) -> some View { 119 | HStack { 120 | Text(title) 121 | .font(.headline) 122 | .fontWeight(.bold) 123 | .padding(12) 124 | Spacer() 125 | } 126 | .foregroundColor(.white) 127 | .background(Color.uLightBackground) 128 | } 129 | } 130 | 131 | #Preview { 132 | TechniqueDetailView(technique: previewTechnique()) 133 | } 134 | 135 | 136 | -------------------------------------------------------------------------------- /Packages/Features/Sources/Techniques/List/TechniqueRowView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import Models 3 | import DesignSystem 4 | 5 | @available(iOS 16.0, *) 6 | struct TechniqueRowView: View { 7 | let technique: Technique 8 | let categories: [Categorie] 9 | 10 | var body: some View { 11 | VStack(alignment: .leading, spacing: 8) { 12 | Text(technique.name) 13 | .font(.headline) 14 | .fontWeight(.bold) 15 | Text(technique.description) 16 | .font(.body) 17 | .lineLimit(2) 18 | BadgesView(technique: technique, categories: categories, size: .small) 19 | } 20 | } 21 | } 22 | 23 | #Preview { 24 | List { 25 | TechniqueRowView(technique: previewTechnique(), categories: []) 26 | TechniqueRowView(technique: previewTechnique(), categories: []) 27 | TechniqueRowView(technique: previewTechnique(), categories: []) 28 | }.preferredColorScheme(.dark) 29 | } 30 | -------------------------------------------------------------------------------- /Packages/Features/Sources/Techniques/List/TechniquesListView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import DesignSystem 3 | import Networking 4 | import Models 5 | 6 | public struct TechniquesListView: View { 7 | @Environment(Networking.self) private var networking 8 | 9 | enum ViewState { 10 | case loading 11 | case error(error: Error) 12 | case data(techniques: [Technique], categories: [Categorie], haveNextPage: Bool) 13 | } 14 | 15 | @State private var state: ViewState = .loading 16 | @State private var searchText: String = "" 17 | @State private var page: Int = 1 18 | 19 | public init() { } 20 | 21 | public var body: some View { 22 | List { 23 | switch state { 24 | case .loading: 25 | loadingView 26 | case let .error(error): 27 | Text(error.localizedDescription) 28 | .foregroundColor(.white) 29 | #if !os(visionOS) 30 | .listRowBackground(Color.uBackround) 31 | #endif 32 | case let .data(techniques, categories, _): 33 | ForEach(techniques) { technique in 34 | NavigationLink(value: technique) { 35 | TechniqueRowView(technique: technique, categories: categories) 36 | } 37 | #if !os(visionOS) 38 | .listRowBackground(Color.uBackround) 39 | .listRowSeparatorTint(Color.uSnippets) 40 | .listRowSeparator(.visible) 41 | #endif 42 | } 43 | nextPageView 44 | } 45 | } 46 | .searchable(text: $searchText, prompt: "Search anything") 47 | #if os(visionOS) 48 | .listStyle(.grouped) 49 | #else 50 | .listStyle(.plain) 51 | .background(Color.uBackround) 52 | #endif 53 | .navigationTitle("Unprotect") 54 | .task { 55 | await fetchData() 56 | } 57 | .task(id: searchText) { 58 | guard !searchText.isEmpty else { return } 59 | // TODO: Search 60 | } 61 | } 62 | 63 | private var loadingView: some View { 64 | ForEach([previewTechnique(), previewTechnique(), previewTechnique()]) { technique in 65 | TechniqueRowView(technique: technique, categories: []) 66 | .redacted(reason: .placeholder) 67 | #if !os(visionOS) 68 | .listRowBackground(Color.uBackround) 69 | .listRowSeparatorTint(Color.uSnippets) 70 | .listRowSeparator(.visible) 71 | #endif 72 | } 73 | } 74 | 75 | @ViewBuilder 76 | private var nextPageView: some View { 77 | switch state { 78 | case .loading: 79 | EmptyView() 80 | case .error: 81 | EmptyView() 82 | case .data(let techniques, let categories, let haveNextPage): 83 | if haveNextPage { 84 | ProgressView() 85 | #if !os(visionOS) 86 | .listRowBackground(Color.uBackround) 87 | #endif 88 | .onAppear { 89 | page += 1 90 | Task { 91 | let newPage = await fetchTechniques() 92 | var techniques = techniques 93 | techniques.append(contentsOf: newPage.results) 94 | state = .data(techniques: techniques, 95 | categories: categories, 96 | haveNextPage: newPage.next != nil) 97 | } 98 | } 99 | } 100 | } 101 | } 102 | 103 | private func fetchData() async { 104 | async let techniques = fetchTechniques() 105 | async let categories = fetchCategories() 106 | self.state = await .data(techniques: techniques.results, 107 | categories: categories, 108 | haveNextPage: techniques.next != nil) 109 | } 110 | 111 | private func fetchTechniques() async -> Results { 112 | do { 113 | return try await networking.fetch(endpoint: .techniques, 114 | page: page) 115 | } catch { 116 | return .init() 117 | } 118 | } 119 | 120 | private func fetchCategories() async -> [Categorie] { 121 | do { 122 | let data: Results = try await networking.fetch(endpoint: .categories, 123 | page: page) 124 | return data.results 125 | } catch { 126 | return [] 127 | } 128 | } 129 | } 130 | 131 | #Preview { 132 | TechniquesListView() 133 | } 134 | 135 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unprotect-iOS 2 | Unprotect in SwiftUI for iOS 3 | 4 | Support iOS 17+ only. 5 | 6 | You need Xcode 15 to compile it. 7 | -------------------------------------------------------------------------------- /Unprotect-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIStatusBarStyle 6 | UIStatusBarStyleLightContent 7 | UIViewControllerBasedStatusBarAppearance 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Unprotect.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 55; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9F0AC67F286A195E00133F00 /* Techniques in Frameworks */ = {isa = PBXBuildFile; productRef = 9F0AC67E286A195E00133F00 /* Techniques */; }; 11 | 9F6D3107286993510066CBF4 /* DesignSystem in Frameworks */ = {isa = PBXBuildFile; productRef = 9F6D3106286993510066CBF4 /* DesignSystem */; }; 12 | 9F6D3109286993510066CBF4 /* Networking in Frameworks */ = {isa = PBXBuildFile; productRef = 9F6D3108286993510066CBF4 /* Networking */; }; 13 | 9FC42A852B335FFD00566E00 /* Snippets in Frameworks */ = {isa = PBXBuildFile; productRef = 9FC42A842B335FFD00566E00 /* Snippets */; }; 14 | 9FFD247928698F670081CFF2 /* UnprotectApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9FFD246928698F650081CFF2 /* UnprotectApp.swift */; }; 15 | 9FFD247D28698F670081CFF2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9FFD246B28698F670081CFF2 /* Assets.xcassets */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 9F6D310C2869B9A10066CBF4 /* Unprotect-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "Unprotect-Info.plist"; sourceTree = ""; }; 20 | 9FFD246928698F650081CFF2 /* UnprotectApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnprotectApp.swift; sourceTree = ""; }; 21 | 9FFD246B28698F670081CFF2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 22 | 9FFD247028698F670081CFF2 /* Unprotect.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Unprotect.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 9FFD2489286990970081CFF2 /* Core */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Core; sourceTree = ""; }; 24 | 9FFD248D286990D00081CFF2 /* Features */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = Features; sourceTree = ""; }; 25 | /* End PBXFileReference section */ 26 | 27 | /* Begin PBXFrameworksBuildPhase section */ 28 | 9FFD246D28698F670081CFF2 /* Frameworks */ = { 29 | isa = PBXFrameworksBuildPhase; 30 | buildActionMask = 2147483647; 31 | files = ( 32 | 9F6D3109286993510066CBF4 /* Networking in Frameworks */, 33 | 9F6D3107286993510066CBF4 /* DesignSystem in Frameworks */, 34 | 9FC42A852B335FFD00566E00 /* Snippets in Frameworks */, 35 | 9F0AC67F286A195E00133F00 /* Techniques in Frameworks */, 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 9FFD246328698F650081CFF2 = { 43 | isa = PBXGroup; 44 | children = ( 45 | 9F6D310C2869B9A10066CBF4 /* Unprotect-Info.plist */, 46 | 9FFD246828698F650081CFF2 /* App */, 47 | 9FFD2488286990970081CFF2 /* Packages */, 48 | 9FFD247128698F670081CFF2 /* Products */, 49 | 9FFD248A286990B30081CFF2 /* Frameworks */, 50 | ); 51 | sourceTree = ""; 52 | }; 53 | 9FFD246828698F650081CFF2 /* App */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 9FFD246928698F650081CFF2 /* UnprotectApp.swift */, 57 | 9FFD246B28698F670081CFF2 /* Assets.xcassets */, 58 | ); 59 | path = App; 60 | sourceTree = ""; 61 | }; 62 | 9FFD247128698F670081CFF2 /* Products */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | 9FFD247028698F670081CFF2 /* Unprotect.app */, 66 | ); 67 | name = Products; 68 | sourceTree = ""; 69 | }; 70 | 9FFD2488286990970081CFF2 /* Packages */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 9FFD248D286990D00081CFF2 /* Features */, 74 | 9FFD2489286990970081CFF2 /* Core */, 75 | ); 76 | path = Packages; 77 | sourceTree = ""; 78 | }; 79 | 9FFD248A286990B30081CFF2 /* Frameworks */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | ); 83 | name = Frameworks; 84 | sourceTree = ""; 85 | }; 86 | /* End PBXGroup section */ 87 | 88 | /* Begin PBXNativeTarget section */ 89 | 9FFD246F28698F670081CFF2 /* Unprotect */ = { 90 | isa = PBXNativeTarget; 91 | buildConfigurationList = 9FFD248128698F670081CFF2 /* Build configuration list for PBXNativeTarget "Unprotect" */; 92 | buildPhases = ( 93 | 9FFD246C28698F670081CFF2 /* Sources */, 94 | 9FFD246D28698F670081CFF2 /* Frameworks */, 95 | 9FFD246E28698F670081CFF2 /* Resources */, 96 | ); 97 | buildRules = ( 98 | ); 99 | dependencies = ( 100 | ); 101 | name = Unprotect; 102 | packageProductDependencies = ( 103 | 9F6D3106286993510066CBF4 /* DesignSystem */, 104 | 9F6D3108286993510066CBF4 /* Networking */, 105 | 9F0AC67E286A195E00133F00 /* Techniques */, 106 | 9FC42A842B335FFD00566E00 /* Snippets */, 107 | ); 108 | productName = "Unprotect (iOS)"; 109 | productReference = 9FFD247028698F670081CFF2 /* Unprotect.app */; 110 | productType = "com.apple.product-type.application"; 111 | }; 112 | /* End PBXNativeTarget section */ 113 | 114 | /* Begin PBXProject section */ 115 | 9FFD246428698F650081CFF2 /* Project object */ = { 116 | isa = PBXProject; 117 | attributes = { 118 | BuildIndependentTargetsInParallel = 1; 119 | LastSwiftUpdateCheck = 1340; 120 | LastUpgradeCheck = 1400; 121 | TargetAttributes = { 122 | 9FFD246F28698F670081CFF2 = { 123 | CreatedOnToolsVersion = 13.4.1; 124 | }; 125 | }; 126 | }; 127 | buildConfigurationList = 9FFD246728698F650081CFF2 /* Build configuration list for PBXProject "Unprotect" */; 128 | compatibilityVersion = "Xcode 13.0"; 129 | developmentRegion = en; 130 | hasScannedForEncodings = 0; 131 | knownRegions = ( 132 | en, 133 | Base, 134 | ); 135 | mainGroup = 9FFD246328698F650081CFF2; 136 | productRefGroup = 9FFD247128698F670081CFF2 /* Products */; 137 | projectDirPath = ""; 138 | projectRoot = ""; 139 | targets = ( 140 | 9FFD246F28698F670081CFF2 /* Unprotect */, 141 | ); 142 | }; 143 | /* End PBXProject section */ 144 | 145 | /* Begin PBXResourcesBuildPhase section */ 146 | 9FFD246E28698F670081CFF2 /* Resources */ = { 147 | isa = PBXResourcesBuildPhase; 148 | buildActionMask = 2147483647; 149 | files = ( 150 | 9FFD247D28698F670081CFF2 /* Assets.xcassets in Resources */, 151 | ); 152 | runOnlyForDeploymentPostprocessing = 0; 153 | }; 154 | /* End PBXResourcesBuildPhase section */ 155 | 156 | /* Begin PBXSourcesBuildPhase section */ 157 | 9FFD246C28698F670081CFF2 /* Sources */ = { 158 | isa = PBXSourcesBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | 9FFD247928698F670081CFF2 /* UnprotectApp.swift in Sources */, 162 | ); 163 | runOnlyForDeploymentPostprocessing = 0; 164 | }; 165 | /* End PBXSourcesBuildPhase section */ 166 | 167 | /* Begin XCBuildConfiguration section */ 168 | 9FFD247F28698F670081CFF2 /* Debug */ = { 169 | isa = XCBuildConfiguration; 170 | buildSettings = { 171 | ALWAYS_SEARCH_USER_PATHS = NO; 172 | CLANG_ANALYZER_NONNULL = YES; 173 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 174 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 175 | CLANG_ENABLE_MODULES = YES; 176 | CLANG_ENABLE_OBJC_ARC = YES; 177 | CLANG_ENABLE_OBJC_WEAK = YES; 178 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 179 | CLANG_WARN_BOOL_CONVERSION = YES; 180 | CLANG_WARN_COMMA = YES; 181 | CLANG_WARN_CONSTANT_CONVERSION = YES; 182 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 183 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 184 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 185 | CLANG_WARN_EMPTY_BODY = YES; 186 | CLANG_WARN_ENUM_CONVERSION = YES; 187 | CLANG_WARN_INFINITE_RECURSION = YES; 188 | CLANG_WARN_INT_CONVERSION = YES; 189 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 190 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 191 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 192 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 193 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 194 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 195 | CLANG_WARN_STRICT_PROTOTYPES = YES; 196 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 197 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 198 | CLANG_WARN_UNREACHABLE_CODE = YES; 199 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 200 | COPY_PHASE_STRIP = NO; 201 | DEAD_CODE_STRIPPING = YES; 202 | DEBUG_INFORMATION_FORMAT = dwarf; 203 | ENABLE_STRICT_OBJC_MSGSEND = YES; 204 | ENABLE_TESTABILITY = YES; 205 | GCC_C_LANGUAGE_STANDARD = gnu11; 206 | GCC_DYNAMIC_NO_PIC = NO; 207 | GCC_NO_COMMON_BLOCKS = YES; 208 | GCC_OPTIMIZATION_LEVEL = 0; 209 | GCC_PREPROCESSOR_DEFINITIONS = ( 210 | "DEBUG=1", 211 | "$(inherited)", 212 | ); 213 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 214 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 215 | GCC_WARN_UNDECLARED_SELECTOR = YES; 216 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 217 | GCC_WARN_UNUSED_FUNCTION = YES; 218 | GCC_WARN_UNUSED_VARIABLE = YES; 219 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 220 | MTL_FAST_MATH = YES; 221 | ONLY_ACTIVE_ARCH = YES; 222 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 223 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 224 | }; 225 | name = Debug; 226 | }; 227 | 9FFD248028698F670081CFF2 /* Release */ = { 228 | isa = XCBuildConfiguration; 229 | buildSettings = { 230 | ALWAYS_SEARCH_USER_PATHS = NO; 231 | CLANG_ANALYZER_NONNULL = YES; 232 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 233 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 234 | CLANG_ENABLE_MODULES = YES; 235 | CLANG_ENABLE_OBJC_ARC = YES; 236 | CLANG_ENABLE_OBJC_WEAK = YES; 237 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 238 | CLANG_WARN_BOOL_CONVERSION = YES; 239 | CLANG_WARN_COMMA = YES; 240 | CLANG_WARN_CONSTANT_CONVERSION = YES; 241 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 242 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 243 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 244 | CLANG_WARN_EMPTY_BODY = YES; 245 | CLANG_WARN_ENUM_CONVERSION = YES; 246 | CLANG_WARN_INFINITE_RECURSION = YES; 247 | CLANG_WARN_INT_CONVERSION = YES; 248 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 249 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 250 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 251 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 252 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 253 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 254 | CLANG_WARN_STRICT_PROTOTYPES = YES; 255 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 256 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 257 | CLANG_WARN_UNREACHABLE_CODE = YES; 258 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 259 | COPY_PHASE_STRIP = NO; 260 | DEAD_CODE_STRIPPING = YES; 261 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 262 | ENABLE_NS_ASSERTIONS = NO; 263 | ENABLE_STRICT_OBJC_MSGSEND = YES; 264 | GCC_C_LANGUAGE_STANDARD = gnu11; 265 | GCC_NO_COMMON_BLOCKS = YES; 266 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 267 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 268 | GCC_WARN_UNDECLARED_SELECTOR = YES; 269 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 270 | GCC_WARN_UNUSED_FUNCTION = YES; 271 | GCC_WARN_UNUSED_VARIABLE = YES; 272 | MTL_ENABLE_DEBUG_INFO = NO; 273 | MTL_FAST_MATH = YES; 274 | SWIFT_COMPILATION_MODE = wholemodule; 275 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 276 | }; 277 | name = Release; 278 | }; 279 | 9FFD248228698F670081CFF2 /* Debug */ = { 280 | isa = XCBuildConfiguration; 281 | buildSettings = { 282 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 283 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 284 | CODE_SIGN_STYLE = Automatic; 285 | CURRENT_PROJECT_VERSION = 1; 286 | DEVELOPMENT_TEAM = K5WN7B7AT2; 287 | ENABLE_PREVIEWS = YES; 288 | GENERATE_INFOPLIST_FILE = YES; 289 | INFOPLIST_FILE = "Unprotect-Info.plist"; 290 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 291 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 292 | INFOPLIST_KEY_UILaunchScreen_Generation = YES; 293 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 294 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 295 | IPHONEOS_DEPLOYMENT_TARGET = 17.0; 296 | LD_RUNPATH_SEARCH_PATHS = ( 297 | "$(inherited)", 298 | "@executable_path/Frameworks", 299 | ); 300 | MACOSX_DEPLOYMENT_TARGET = 13.0; 301 | MARKETING_VERSION = 1.0; 302 | PRODUCT_BUNDLE_IDENTIFIER = com.it.Unprotect; 303 | PRODUCT_NAME = Unprotect; 304 | SDKROOT = iphoneos; 305 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; 306 | SUPPORTS_MACCATALYST = NO; 307 | SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; 308 | SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; 309 | SWIFT_EMIT_LOC_STRINGS = YES; 310 | SWIFT_VERSION = 5.0; 311 | TARGETED_DEVICE_FAMILY = "1,2,7"; 312 | }; 313 | name = Debug; 314 | }; 315 | 9FFD248328698F670081CFF2 /* Release */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 319 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 320 | CODE_SIGN_STYLE = Automatic; 321 | CURRENT_PROJECT_VERSION = 1; 322 | DEVELOPMENT_TEAM = K5WN7B7AT2; 323 | ENABLE_PREVIEWS = YES; 324 | GENERATE_INFOPLIST_FILE = YES; 325 | INFOPLIST_FILE = "Unprotect-Info.plist"; 326 | INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; 327 | INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; 328 | INFOPLIST_KEY_UILaunchScreen_Generation = YES; 329 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 330 | INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; 331 | IPHONEOS_DEPLOYMENT_TARGET = 17.0; 332 | LD_RUNPATH_SEARCH_PATHS = ( 333 | "$(inherited)", 334 | "@executable_path/Frameworks", 335 | ); 336 | MACOSX_DEPLOYMENT_TARGET = 13.0; 337 | MARKETING_VERSION = 1.0; 338 | PRODUCT_BUNDLE_IDENTIFIER = com.it.Unprotect; 339 | PRODUCT_NAME = Unprotect; 340 | SDKROOT = iphoneos; 341 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; 342 | SUPPORTS_MACCATALYST = NO; 343 | SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; 344 | SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; 345 | SWIFT_EMIT_LOC_STRINGS = YES; 346 | SWIFT_VERSION = 5.0; 347 | TARGETED_DEVICE_FAMILY = "1,2,7"; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Release; 351 | }; 352 | /* End XCBuildConfiguration section */ 353 | 354 | /* Begin XCConfigurationList section */ 355 | 9FFD246728698F650081CFF2 /* Build configuration list for PBXProject "Unprotect" */ = { 356 | isa = XCConfigurationList; 357 | buildConfigurations = ( 358 | 9FFD247F28698F670081CFF2 /* Debug */, 359 | 9FFD248028698F670081CFF2 /* Release */, 360 | ); 361 | defaultConfigurationIsVisible = 0; 362 | defaultConfigurationName = Release; 363 | }; 364 | 9FFD248128698F670081CFF2 /* Build configuration list for PBXNativeTarget "Unprotect" */ = { 365 | isa = XCConfigurationList; 366 | buildConfigurations = ( 367 | 9FFD248228698F670081CFF2 /* Debug */, 368 | 9FFD248328698F670081CFF2 /* Release */, 369 | ); 370 | defaultConfigurationIsVisible = 0; 371 | defaultConfigurationName = Release; 372 | }; 373 | /* End XCConfigurationList section */ 374 | 375 | /* Begin XCSwiftPackageProductDependency section */ 376 | 9F0AC67E286A195E00133F00 /* Techniques */ = { 377 | isa = XCSwiftPackageProductDependency; 378 | productName = Techniques; 379 | }; 380 | 9F6D3106286993510066CBF4 /* DesignSystem */ = { 381 | isa = XCSwiftPackageProductDependency; 382 | productName = DesignSystem; 383 | }; 384 | 9F6D3108286993510066CBF4 /* Networking */ = { 385 | isa = XCSwiftPackageProductDependency; 386 | productName = Networking; 387 | }; 388 | 9FC42A842B335FFD00566E00 /* Snippets */ = { 389 | isa = XCSwiftPackageProductDependency; 390 | productName = Snippets; 391 | }; 392 | /* End XCSwiftPackageProductDependency section */ 393 | }; 394 | rootObject = 9FFD246428698F650081CFF2 /* Project object */; 395 | } 396 | -------------------------------------------------------------------------------- /Unprotect.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Unprotect.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Unprotect.xcodeproj/xcshareddata/xcschemes/Unprotect.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | --------------------------------------------------------------------------------