├── .codeclimate.yml ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── weekly-digest.yml └── workflows │ ├── ci.yml │ └── cla.yml ├── .gitignore ├── .swiftlint.yml ├── CODE_OF_CONDUCT.md ├── DEV-Simple.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── swiftpm │ │ └── Package.resolved └── xcshareddata │ └── xcschemes │ ├── DEV-Simple-Local.xcscheme │ └── DEV-Simple.xcscheme ├── DEV-Simple ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-57x57@1x.png │ │ ├── Icon-App-57x57@2x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-72x72@1x.png │ │ ├── Icon-App-72x72@2x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ ├── Icon-App-83.5x83.5@2x.png │ │ ├── Icon-Small-50x50@1x.png │ │ ├── Icon-Small-50x50@2x.png │ │ └── ItunesArtwork@2x.png │ ├── Contents.json │ ├── ForemBot.imageset │ │ ├── Contents.json │ │ ├── ForemBot1x.png │ │ ├── ForemBot2x.png │ │ └── ForemBot3x.png │ ├── Logo.imageset │ │ ├── Contents.json │ │ └── Logo-1080.png │ ├── Open.imageset │ │ ├── Contents.json │ │ └── upload.png │ ├── Safari.imageset │ │ ├── Contents.json │ │ └── safari.png │ ├── Silver.imageset │ │ ├── Apple+Silver-2880x1800.jpg │ │ └── Contents.json │ ├── arrow.down.app.fill.symbolset │ │ ├── Contents.json │ │ └── arrow.down.app.fill 2.0.svg │ └── newspaper.symbolset │ │ ├── Contents.json │ │ └── newspaper.svg ├── BrowserViewController.swift ├── DEV-Simple.entitlements ├── Info.plist ├── Launch Screen.storyboard ├── NewsModalView.swift ├── Storyboards │ └── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard ├── Utilities │ ├── Globals.swift │ ├── NetworkReachability.swift │ ├── Notification+DEV.swift │ └── ThemeManager.swift └── ViewController.swift ├── DEV-SimpleTests ├── DEV_SimpleTests.swift ├── Info.plist ├── ViewControllerTests.swift └── test.html ├── DEV-SimpleUITests ├── DEV_SimpleUITests.swift └── Info.plist ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md └── fastlane ├── Appfile ├── Fastfile └── README.md /.codeclimate.yml: -------------------------------------------------------------------------------- 1 | plugins: 2 | swiftlint: 3 | enabled: true 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | **Describe the bug** 8 | A clear and concise description of what the bug is. 9 | 10 | **To Reproduce** 11 | Steps to reproduce the behavior: 12 | 1. Go to '...' 13 | 2. Click on '....' 14 | 3. Scroll down to '....' 15 | 4. See error 16 | 17 | **Expected behavior** 18 | A clear and concise description of what you expected to happen. 19 | 20 | **Screenshots** 21 | If applicable, add screenshots to help explain your problem. 22 | 23 | **Smartphone (please complete the following information):** 24 | - Device: [e.g. iPhone6] 25 | - OS: [e.g. iOS8.1] 26 | - Version [e.g. 22] 27 | 28 | **Additional context** 29 | Add any other context about the problem here. 30 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | **Is your feature request related to a problem? Please describe.** 8 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 9 | 10 | **Describe the solution you'd like** 11 | A clear and concise description of what you want to happen. 12 | 13 | **Describe alternatives you've considered** 14 | A clear and concise description of any alternative solutions or features you've considered. 15 | 16 | **Additional context** 17 | Add any other context or screenshots about the feature request here. 18 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ## What type of PR is this? (check all applicable) 6 | 7 | - [ ] Refactor 8 | - [ ] Feature 9 | - [ ] Bug Fix 10 | - [ ] Documentation Update 11 | 12 | ## Description 13 | 14 | ## Related Tickets & Documents 15 | 16 | ## Mobile & Desktop Screenshots/Recordings (if there are UI changes) 17 | 18 | ## Added to documentation? 19 | 20 | - [ ] docs.dev.to 21 | - [ ] readme 22 | - [ ] no documentation needed 23 | 24 | ## [optional] What gif best describes this PR or how it makes you feel? 25 | 26 | ![alt_text](gif_link) 27 | -------------------------------------------------------------------------------- /.github/weekly-digest.yml: -------------------------------------------------------------------------------- 1 | publishDay: mon 2 | canPublishIssues: true 3 | canPublishPullRequests: true 4 | canPublishContributors: true 5 | canPublishStargazers: true 6 | canPublishCommits: true 7 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: 3 | push: 4 | branches: [ master, main ] 5 | pull_request: 6 | branches: [ master, main ] 7 | 8 | jobs: 9 | test: 10 | name: Test Suite 11 | runs-on: macOS-latest 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@master 15 | - name: XCode Setup 16 | uses: maxim-lobanov/setup-xcode@v1 17 | with: 18 | xcode-version: latest-stable 19 | - name: Build and test 20 | run: | 21 | fastlane test 22 | 23 | -------------------------------------------------------------------------------- /.github/workflows/cla.yml: -------------------------------------------------------------------------------- 1 | name: "CLA" 2 | on: 3 | issue_comment: 4 | types: [created] 5 | pull_request_target: 6 | types: [opened,closed,synchronize] 7 | merge_group: 8 | branches: 9 | - main 10 | 11 | permissions: 12 | actions: write 13 | contents: write 14 | pull-requests: write 15 | statuses: write 16 | 17 | jobs: 18 | check_cla: 19 | uses: forem/forem/.github/workflows/cla.yml@main 20 | secrets: inherit 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | *.DS_Store 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | *.dSYM.zip 30 | *.dSYM 31 | 32 | ## Playgrounds 33 | timeline.xctimeline 34 | playground.xcworkspace 35 | 36 | # Swift Package Manager 37 | # 38 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 39 | # Packages/ 40 | # Package.pins 41 | # Package.resolved 42 | .build/ 43 | 44 | # CocoaPods 45 | # 46 | # We recommend against adding the Pods directory to your .gitignore. However 47 | # you should judge for yourself, the pros and cons are mentioned at: 48 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 49 | # 50 | # Pods/ 51 | # 52 | # Add this line if you want to avoid checking in source code from the Xcode workspace 53 | # *.xcworkspace 54 | 55 | # Carthage 56 | # 57 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 58 | Carthage/Checkouts 59 | 60 | Carthage/Build 61 | 62 | # fastlane 63 | # 64 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 65 | # screenshots whenever they are needed. 66 | # For more information about the recommended setup visit: 67 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 68 | 69 | fastlane/report.xml 70 | fastlane/Preview.html 71 | fastlane/screenshots/**/*.png 72 | fastlane/test_output 73 | 74 | swiftlint.result.json 75 | -------------------------------------------------------------------------------- /.swiftlint.yml: -------------------------------------------------------------------------------- 1 | included: # paths to include during linting. `--path` is ignored if present. 2 | - DEV-Simple 3 | excluded: # paths to ignore during linting. Takes precedence over `included`. 4 | - Carthage 5 | reporter: xcode 6 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at yo@dev.to. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /DEV-Simple.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 52; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 03E3F0432731D3EA0045B350 /* NewsModalView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03E3F0422731D3EA0045B350 /* NewsModalView.swift */; }; 11 | 1B032B1821E409FE00A2108A /* Globals.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B032B1721E409FE00A2108A /* Globals.swift */; }; 12 | 73D7673C218BA66700BD13B6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73D7673B218BA66700BD13B6 /* AppDelegate.swift */; }; 13 | 73D7673E218BA66700BD13B6 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73D7673D218BA66700BD13B6 /* ViewController.swift */; }; 14 | 73D76741218BA66700BD13B6 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 73D7673F218BA66700BD13B6 /* Main.storyboard */; }; 15 | 73D76743218BA66B00BD13B6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 73D76742218BA66B00BD13B6 /* Assets.xcassets */; }; 16 | 73D76746218BA66B00BD13B6 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 73D76744218BA66B00BD13B6 /* LaunchScreen.storyboard */; }; 17 | 73D76751218BA66B00BD13B6 /* DEV_SimpleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73D76750218BA66B00BD13B6 /* DEV_SimpleTests.swift */; }; 18 | 73D7675C218BA66B00BD13B6 /* DEV_SimpleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73D7675B218BA66B00BD13B6 /* DEV_SimpleUITests.swift */; }; 19 | 73E8ACC72192165E009CE057 /* BrowserViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73E8ACC62192165E009CE057 /* BrowserViewController.swift */; }; 20 | BD35609425719BFE00555C25 /* ThemeManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD35609325719BFE00555C25 /* ThemeManager.swift */; }; 21 | BD5C906C21B63CCC000D9F79 /* NetworkReachability.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD5C906B21B63CCC000D9F79 /* NetworkReachability.swift */; }; 22 | CC5ECD74263D83F40048466A /* PushNotifications in Frameworks */ = {isa = PBXBuildFile; productRef = CC5ECD73263D83F40048466A /* PushNotifications */; }; 23 | CC5ECD7B263D85760048466A /* ForemWebView in Frameworks */ = {isa = PBXBuildFile; productRef = CC5ECD7A263D85760048466A /* ForemWebView */; }; 24 | CC5ECD80263D85C50048466A /* NotificationBannerSwift in Frameworks */ = {isa = PBXBuildFile; productRef = CC5ECD7F263D85C50048466A /* NotificationBannerSwift */; }; 25 | CCEA9AFC219B403100AEF5BE /* ViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCEA9AFB219B403100AEF5BE /* ViewControllerTests.swift */; }; 26 | CCEA9AFE219B410300AEF5BE /* test.html in Resources */ = {isa = PBXBuildFile; fileRef = CCEA9AFD219B410300AEF5BE /* test.html */; }; 27 | DC65E65425656AF600EE3446 /* Notification+DEV.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC65E65325656AF600EE3446 /* Notification+DEV.swift */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 73D7674D218BA66B00BD13B6 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 73D76730218BA66700BD13B6 /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 73D76737218BA66700BD13B6; 36 | remoteInfo = "DEV-Simple"; 37 | }; 38 | 73D76758218BA66B00BD13B6 /* PBXContainerItemProxy */ = { 39 | isa = PBXContainerItemProxy; 40 | containerPortal = 73D76730218BA66700BD13B6 /* Project object */; 41 | proxyType = 1; 42 | remoteGlobalIDString = 73D76737218BA66700BD13B6; 43 | remoteInfo = "DEV-Simple"; 44 | }; 45 | /* End PBXContainerItemProxy section */ 46 | 47 | /* Begin PBXCopyFilesBuildPhase section */ 48 | DC139D912555A4E7009A3F45 /* Embed Frameworks */ = { 49 | isa = PBXCopyFilesBuildPhase; 50 | buildActionMask = 2147483647; 51 | dstPath = ""; 52 | dstSubfolderSpec = 10; 53 | files = ( 54 | ); 55 | name = "Embed Frameworks"; 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXCopyFilesBuildPhase section */ 59 | 60 | /* Begin PBXFileReference section */ 61 | 03E3F0422731D3EA0045B350 /* NewsModalView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewsModalView.swift; sourceTree = ""; }; 62 | 1B032B1721E409FE00A2108A /* Globals.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Globals.swift; sourceTree = ""; }; 63 | 73D76738218BA66700BD13B6 /* DEV-Simple.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DEV-Simple.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | 73D7673B218BA66700BD13B6 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 65 | 73D7673D218BA66700BD13B6 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 66 | 73D76740218BA66700BD13B6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 67 | 73D76742218BA66B00BD13B6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 68 | 73D76745218BA66B00BD13B6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 69 | 73D76747218BA66B00BD13B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 70 | 73D7674C218BA66B00BD13B6 /* DEV-SimpleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DEV-SimpleTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 71 | 73D76750218BA66B00BD13B6 /* DEV_SimpleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DEV_SimpleTests.swift; sourceTree = ""; }; 72 | 73D76752218BA66B00BD13B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | 73D76757218BA66B00BD13B6 /* DEV-SimpleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "DEV-SimpleUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | 73D7675B218BA66B00BD13B6 /* DEV_SimpleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DEV_SimpleUITests.swift; sourceTree = ""; }; 75 | 73D7675D218BA66B00BD13B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 76 | 73D767692190CE3900BD13B6 /* DEV-Simple.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "DEV-Simple.entitlements"; sourceTree = ""; }; 77 | 73E8ACC62192165E009CE057 /* BrowserViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowserViewController.swift; sourceTree = ""; }; 78 | BD35609325719BFE00555C25 /* ThemeManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThemeManager.swift; sourceTree = ""; }; 79 | BD5C906B21B63CCC000D9F79 /* NetworkReachability.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkReachability.swift; sourceTree = ""; }; 80 | CCEA9AFB219B403100AEF5BE /* ViewControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewControllerTests.swift; sourceTree = ""; }; 81 | CCEA9AFD219B410300AEF5BE /* test.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = test.html; sourceTree = ""; }; 82 | DC65E65325656AF600EE3446 /* Notification+DEV.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Notification+DEV.swift"; sourceTree = ""; }; 83 | /* End PBXFileReference section */ 84 | 85 | /* Begin PBXFrameworksBuildPhase section */ 86 | 73D76735218BA66700BD13B6 /* Frameworks */ = { 87 | isa = PBXFrameworksBuildPhase; 88 | buildActionMask = 2147483647; 89 | files = ( 90 | CC5ECD7B263D85760048466A /* ForemWebView in Frameworks */, 91 | CC5ECD80263D85C50048466A /* NotificationBannerSwift in Frameworks */, 92 | CC5ECD74263D83F40048466A /* PushNotifications in Frameworks */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | 73D76749218BA66B00BD13B6 /* Frameworks */ = { 97 | isa = PBXFrameworksBuildPhase; 98 | buildActionMask = 2147483647; 99 | files = ( 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | 73D76754218BA66B00BD13B6 /* Frameworks */ = { 104 | isa = PBXFrameworksBuildPhase; 105 | buildActionMask = 2147483647; 106 | files = ( 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | /* End PBXFrameworksBuildPhase section */ 111 | 112 | /* Begin PBXGroup section */ 113 | 1BA17C89220C848B007A8EF5 /* Storyboards */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 73D76744218BA66B00BD13B6 /* LaunchScreen.storyboard */, 117 | 73D7673F218BA66700BD13B6 /* Main.storyboard */, 118 | ); 119 | path = Storyboards; 120 | sourceTree = ""; 121 | }; 122 | 1BA17C8A220C84A2007A8EF5 /* Utilities */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 1B032B1721E409FE00A2108A /* Globals.swift */, 126 | DC65E65325656AF600EE3446 /* Notification+DEV.swift */, 127 | BD5C906B21B63CCC000D9F79 /* NetworkReachability.swift */, 128 | BD35609325719BFE00555C25 /* ThemeManager.swift */, 129 | ); 130 | path = Utilities; 131 | sourceTree = ""; 132 | }; 133 | 73D7672F218BA66700BD13B6 = { 134 | isa = PBXGroup; 135 | children = ( 136 | 73D7673A218BA66700BD13B6 /* DEV-Simple */, 137 | 73D7674F218BA66B00BD13B6 /* DEV-SimpleTests */, 138 | 73D7675A218BA66B00BD13B6 /* DEV-SimpleUITests */, 139 | 73D76739218BA66700BD13B6 /* Products */, 140 | BD5C906D21B6436E000D9F79 /* Frameworks */, 141 | ); 142 | sourceTree = ""; 143 | }; 144 | 73D76739218BA66700BD13B6 /* Products */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 73D76738218BA66700BD13B6 /* DEV-Simple.app */, 148 | 73D7674C218BA66B00BD13B6 /* DEV-SimpleTests.xctest */, 149 | 73D76757218BA66B00BD13B6 /* DEV-SimpleUITests.xctest */, 150 | ); 151 | name = Products; 152 | sourceTree = ""; 153 | }; 154 | 73D7673A218BA66700BD13B6 /* DEV-Simple */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 73D7673B218BA66700BD13B6 /* AppDelegate.swift */, 158 | 73D7673D218BA66700BD13B6 /* ViewController.swift */, 159 | 73E8ACC62192165E009CE057 /* BrowserViewController.swift */, 160 | 03E3F0422731D3EA0045B350 /* NewsModalView.swift */, 161 | 1BA17C8A220C84A2007A8EF5 /* Utilities */, 162 | 1BA17C89220C848B007A8EF5 /* Storyboards */, 163 | 73D76742218BA66B00BD13B6 /* Assets.xcassets */, 164 | 73D767692190CE3900BD13B6 /* DEV-Simple.entitlements */, 165 | 73D76747218BA66B00BD13B6 /* Info.plist */, 166 | ); 167 | path = "DEV-Simple"; 168 | sourceTree = ""; 169 | }; 170 | 73D7674F218BA66B00BD13B6 /* DEV-SimpleTests */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | 73D76750218BA66B00BD13B6 /* DEV_SimpleTests.swift */, 174 | CCEA9AFB219B403100AEF5BE /* ViewControllerTests.swift */, 175 | 73D76752218BA66B00BD13B6 /* Info.plist */, 176 | CCEA9AFD219B410300AEF5BE /* test.html */, 177 | ); 178 | path = "DEV-SimpleTests"; 179 | sourceTree = ""; 180 | }; 181 | 73D7675A218BA66B00BD13B6 /* DEV-SimpleUITests */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 73D7675B218BA66B00BD13B6 /* DEV_SimpleUITests.swift */, 185 | 73D7675D218BA66B00BD13B6 /* Info.plist */, 186 | ); 187 | path = "DEV-SimpleUITests"; 188 | sourceTree = ""; 189 | }; 190 | BD5C906D21B6436E000D9F79 /* Frameworks */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | ); 194 | name = Frameworks; 195 | sourceTree = ""; 196 | }; 197 | /* End PBXGroup section */ 198 | 199 | /* Begin PBXNativeTarget section */ 200 | 73D76737218BA66700BD13B6 /* DEV-Simple */ = { 201 | isa = PBXNativeTarget; 202 | buildConfigurationList = 73D76760218BA66B00BD13B6 /* Build configuration list for PBXNativeTarget "DEV-Simple" */; 203 | buildPhases = ( 204 | 73D76734218BA66700BD13B6 /* Sources */, 205 | 73D76735218BA66700BD13B6 /* Frameworks */, 206 | 73D76736218BA66700BD13B6 /* Resources */, 207 | DC139D912555A4E7009A3F45 /* Embed Frameworks */, 208 | 1BE5876521B1868C00CCF86E /* SwiftLint */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | ); 214 | name = "DEV-Simple"; 215 | packageProductDependencies = ( 216 | CC5ECD73263D83F40048466A /* PushNotifications */, 217 | CC5ECD7A263D85760048466A /* ForemWebView */, 218 | CC5ECD7F263D85C50048466A /* NotificationBannerSwift */, 219 | ); 220 | productName = "DEV-Simple"; 221 | productReference = 73D76738218BA66700BD13B6 /* DEV-Simple.app */; 222 | productType = "com.apple.product-type.application"; 223 | }; 224 | 73D7674B218BA66B00BD13B6 /* DEV-SimpleTests */ = { 225 | isa = PBXNativeTarget; 226 | buildConfigurationList = 73D76763218BA66B00BD13B6 /* Build configuration list for PBXNativeTarget "DEV-SimpleTests" */; 227 | buildPhases = ( 228 | 73D76748218BA66B00BD13B6 /* Sources */, 229 | 73D76749218BA66B00BD13B6 /* Frameworks */, 230 | 73D7674A218BA66B00BD13B6 /* Resources */, 231 | ); 232 | buildRules = ( 233 | ); 234 | dependencies = ( 235 | 73D7674E218BA66B00BD13B6 /* PBXTargetDependency */, 236 | ); 237 | name = "DEV-SimpleTests"; 238 | productName = "DEV-SimpleTests"; 239 | productReference = 73D7674C218BA66B00BD13B6 /* DEV-SimpleTests.xctest */; 240 | productType = "com.apple.product-type.bundle.unit-test"; 241 | }; 242 | 73D76756218BA66B00BD13B6 /* DEV-SimpleUITests */ = { 243 | isa = PBXNativeTarget; 244 | buildConfigurationList = 73D76766218BA66B00BD13B6 /* Build configuration list for PBXNativeTarget "DEV-SimpleUITests" */; 245 | buildPhases = ( 246 | 73D76753218BA66B00BD13B6 /* Sources */, 247 | 73D76754218BA66B00BD13B6 /* Frameworks */, 248 | 73D76755218BA66B00BD13B6 /* Resources */, 249 | ); 250 | buildRules = ( 251 | ); 252 | dependencies = ( 253 | 73D76759218BA66B00BD13B6 /* PBXTargetDependency */, 254 | ); 255 | name = "DEV-SimpleUITests"; 256 | productName = "DEV-SimpleUITests"; 257 | productReference = 73D76757218BA66B00BD13B6 /* DEV-SimpleUITests.xctest */; 258 | productType = "com.apple.product-type.bundle.ui-testing"; 259 | }; 260 | /* End PBXNativeTarget section */ 261 | 262 | /* Begin PBXProject section */ 263 | 73D76730218BA66700BD13B6 /* Project object */ = { 264 | isa = PBXProject; 265 | attributes = { 266 | LastSwiftUpdateCheck = 1000; 267 | LastUpgradeCheck = 1210; 268 | ORGANIZATIONNAME = DEV; 269 | TargetAttributes = { 270 | 73D76737218BA66700BD13B6 = { 271 | CreatedOnToolsVersion = 10.0; 272 | LastSwiftMigration = 1020; 273 | SystemCapabilities = { 274 | com.apple.BackgroundModes = { 275 | enabled = 1; 276 | }; 277 | com.apple.Push = { 278 | enabled = 1; 279 | }; 280 | com.apple.SafariKeychain = { 281 | enabled = 1; 282 | }; 283 | }; 284 | }; 285 | 73D7674B218BA66B00BD13B6 = { 286 | CreatedOnToolsVersion = 10.0; 287 | LastSwiftMigration = 1100; 288 | TestTargetID = 73D76737218BA66700BD13B6; 289 | }; 290 | 73D76756218BA66B00BD13B6 = { 291 | CreatedOnToolsVersion = 10.0; 292 | LastSwiftMigration = 1100; 293 | TestTargetID = 73D76737218BA66700BD13B6; 294 | }; 295 | }; 296 | }; 297 | buildConfigurationList = 73D76733218BA66700BD13B6 /* Build configuration list for PBXProject "DEV-Simple" */; 298 | compatibilityVersion = "Xcode 9.3"; 299 | developmentRegion = en; 300 | hasScannedForEncodings = 0; 301 | knownRegions = ( 302 | en, 303 | Base, 304 | ); 305 | mainGroup = 73D7672F218BA66700BD13B6; 306 | packageReferences = ( 307 | CC5ECD72263D83F40048466A /* XCRemoteSwiftPackageReference "push-notifications-swift" */, 308 | CC5ECD79263D85760048466A /* XCRemoteSwiftPackageReference "ForemWebView-ios" */, 309 | CC5ECD7E263D85C50048466A /* XCRemoteSwiftPackageReference "NotificationBanner" */, 310 | ); 311 | productRefGroup = 73D76739218BA66700BD13B6 /* Products */; 312 | projectDirPath = ""; 313 | projectRoot = ""; 314 | targets = ( 315 | 73D76737218BA66700BD13B6 /* DEV-Simple */, 316 | 73D7674B218BA66B00BD13B6 /* DEV-SimpleTests */, 317 | 73D76756218BA66B00BD13B6 /* DEV-SimpleUITests */, 318 | ); 319 | }; 320 | /* End PBXProject section */ 321 | 322 | /* Begin PBXResourcesBuildPhase section */ 323 | 73D76736218BA66700BD13B6 /* Resources */ = { 324 | isa = PBXResourcesBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | 73D76746218BA66B00BD13B6 /* LaunchScreen.storyboard in Resources */, 328 | 73D76743218BA66B00BD13B6 /* Assets.xcassets in Resources */, 329 | 73D76741218BA66700BD13B6 /* Main.storyboard in Resources */, 330 | ); 331 | runOnlyForDeploymentPostprocessing = 0; 332 | }; 333 | 73D7674A218BA66B00BD13B6 /* Resources */ = { 334 | isa = PBXResourcesBuildPhase; 335 | buildActionMask = 2147483647; 336 | files = ( 337 | CCEA9AFE219B410300AEF5BE /* test.html in Resources */, 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | }; 341 | 73D76755218BA66B00BD13B6 /* Resources */ = { 342 | isa = PBXResourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | /* End PBXResourcesBuildPhase section */ 349 | 350 | /* Begin PBXShellScriptBuildPhase section */ 351 | 1BE5876521B1868C00CCF86E /* SwiftLint */ = { 352 | isa = PBXShellScriptBuildPhase; 353 | buildActionMask = 2147483647; 354 | files = ( 355 | ); 356 | inputFileListPaths = ( 357 | ); 358 | inputPaths = ( 359 | ); 360 | name = SwiftLint; 361 | outputFileListPaths = ( 362 | ); 363 | outputPaths = ( 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | shellPath = /bin/sh; 367 | shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which swiftlint >/dev/null; then\n swiftlint\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n"; 368 | }; 369 | /* End PBXShellScriptBuildPhase section */ 370 | 371 | /* Begin PBXSourcesBuildPhase section */ 372 | 73D76734218BA66700BD13B6 /* Sources */ = { 373 | isa = PBXSourcesBuildPhase; 374 | buildActionMask = 2147483647; 375 | files = ( 376 | 73D7673E218BA66700BD13B6 /* ViewController.swift in Sources */, 377 | 73E8ACC72192165E009CE057 /* BrowserViewController.swift in Sources */, 378 | DC65E65425656AF600EE3446 /* Notification+DEV.swift in Sources */, 379 | 03E3F0432731D3EA0045B350 /* NewsModalView.swift in Sources */, 380 | 73D7673C218BA66700BD13B6 /* AppDelegate.swift in Sources */, 381 | 1B032B1821E409FE00A2108A /* Globals.swift in Sources */, 382 | BD5C906C21B63CCC000D9F79 /* NetworkReachability.swift in Sources */, 383 | BD35609425719BFE00555C25 /* ThemeManager.swift in Sources */, 384 | ); 385 | runOnlyForDeploymentPostprocessing = 0; 386 | }; 387 | 73D76748218BA66B00BD13B6 /* Sources */ = { 388 | isa = PBXSourcesBuildPhase; 389 | buildActionMask = 2147483647; 390 | files = ( 391 | CCEA9AFC219B403100AEF5BE /* ViewControllerTests.swift in Sources */, 392 | 73D76751218BA66B00BD13B6 /* DEV_SimpleTests.swift in Sources */, 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | }; 396 | 73D76753218BA66B00BD13B6 /* Sources */ = { 397 | isa = PBXSourcesBuildPhase; 398 | buildActionMask = 2147483647; 399 | files = ( 400 | 73D7675C218BA66B00BD13B6 /* DEV_SimpleUITests.swift in Sources */, 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | }; 404 | /* End PBXSourcesBuildPhase section */ 405 | 406 | /* Begin PBXTargetDependency section */ 407 | 73D7674E218BA66B00BD13B6 /* PBXTargetDependency */ = { 408 | isa = PBXTargetDependency; 409 | target = 73D76737218BA66700BD13B6 /* DEV-Simple */; 410 | targetProxy = 73D7674D218BA66B00BD13B6 /* PBXContainerItemProxy */; 411 | }; 412 | 73D76759218BA66B00BD13B6 /* PBXTargetDependency */ = { 413 | isa = PBXTargetDependency; 414 | target = 73D76737218BA66700BD13B6 /* DEV-Simple */; 415 | targetProxy = 73D76758218BA66B00BD13B6 /* PBXContainerItemProxy */; 416 | }; 417 | /* End PBXTargetDependency section */ 418 | 419 | /* Begin PBXVariantGroup section */ 420 | 73D7673F218BA66700BD13B6 /* Main.storyboard */ = { 421 | isa = PBXVariantGroup; 422 | children = ( 423 | 73D76740218BA66700BD13B6 /* Base */, 424 | ); 425 | name = Main.storyboard; 426 | sourceTree = ""; 427 | }; 428 | 73D76744218BA66B00BD13B6 /* LaunchScreen.storyboard */ = { 429 | isa = PBXVariantGroup; 430 | children = ( 431 | 73D76745218BA66B00BD13B6 /* Base */, 432 | ); 433 | name = LaunchScreen.storyboard; 434 | sourceTree = ""; 435 | }; 436 | /* End PBXVariantGroup section */ 437 | 438 | /* Begin XCBuildConfiguration section */ 439 | 73D7675E218BA66B00BD13B6 /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | buildSettings = { 442 | ALWAYS_SEARCH_USER_PATHS = NO; 443 | CLANG_ANALYZER_NONNULL = YES; 444 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 445 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 446 | CLANG_CXX_LIBRARY = "libc++"; 447 | CLANG_ENABLE_MODULES = YES; 448 | CLANG_ENABLE_OBJC_ARC = YES; 449 | CLANG_ENABLE_OBJC_WEAK = YES; 450 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 451 | CLANG_WARN_BOOL_CONVERSION = YES; 452 | CLANG_WARN_COMMA = YES; 453 | CLANG_WARN_CONSTANT_CONVERSION = YES; 454 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 455 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 456 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 457 | CLANG_WARN_EMPTY_BODY = YES; 458 | CLANG_WARN_ENUM_CONVERSION = YES; 459 | CLANG_WARN_INFINITE_RECURSION = YES; 460 | CLANG_WARN_INT_CONVERSION = YES; 461 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 462 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 463 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 464 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 465 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 467 | CLANG_WARN_STRICT_PROTOTYPES = YES; 468 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 469 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 470 | CLANG_WARN_UNREACHABLE_CODE = YES; 471 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 472 | CODE_SIGN_IDENTITY = "iPhone Developer"; 473 | COPY_PHASE_STRIP = NO; 474 | DEBUG_INFORMATION_FORMAT = dwarf; 475 | ENABLE_STRICT_OBJC_MSGSEND = YES; 476 | ENABLE_TESTABILITY = YES; 477 | GCC_C_LANGUAGE_STANDARD = gnu11; 478 | GCC_DYNAMIC_NO_PIC = NO; 479 | GCC_NO_COMMON_BLOCKS = YES; 480 | GCC_OPTIMIZATION_LEVEL = 0; 481 | GCC_PREPROCESSOR_DEFINITIONS = ( 482 | "DEBUG=1", 483 | "$(inherited)", 484 | ); 485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 486 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 487 | GCC_WARN_UNDECLARED_SELECTOR = YES; 488 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 489 | GCC_WARN_UNUSED_FUNCTION = YES; 490 | GCC_WARN_UNUSED_VARIABLE = YES; 491 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 492 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 493 | MTL_FAST_MATH = YES; 494 | ONLY_ACTIVE_ARCH = YES; 495 | SDKROOT = iphoneos; 496 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 497 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 498 | }; 499 | name = Debug; 500 | }; 501 | 73D7675F218BA66B00BD13B6 /* Release */ = { 502 | isa = XCBuildConfiguration; 503 | buildSettings = { 504 | ALWAYS_SEARCH_USER_PATHS = NO; 505 | CLANG_ANALYZER_NONNULL = YES; 506 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 507 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 508 | CLANG_CXX_LIBRARY = "libc++"; 509 | CLANG_ENABLE_MODULES = YES; 510 | CLANG_ENABLE_OBJC_ARC = YES; 511 | CLANG_ENABLE_OBJC_WEAK = YES; 512 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 513 | CLANG_WARN_BOOL_CONVERSION = YES; 514 | CLANG_WARN_COMMA = YES; 515 | CLANG_WARN_CONSTANT_CONVERSION = YES; 516 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 517 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 518 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 519 | CLANG_WARN_EMPTY_BODY = YES; 520 | CLANG_WARN_ENUM_CONVERSION = YES; 521 | CLANG_WARN_INFINITE_RECURSION = YES; 522 | CLANG_WARN_INT_CONVERSION = YES; 523 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 524 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 525 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 526 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 527 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 528 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 529 | CLANG_WARN_STRICT_PROTOTYPES = YES; 530 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 531 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 532 | CLANG_WARN_UNREACHABLE_CODE = YES; 533 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 534 | CODE_SIGN_IDENTITY = "iPhone Developer"; 535 | COPY_PHASE_STRIP = NO; 536 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 537 | ENABLE_NS_ASSERTIONS = NO; 538 | ENABLE_STRICT_OBJC_MSGSEND = YES; 539 | GCC_C_LANGUAGE_STANDARD = gnu11; 540 | GCC_NO_COMMON_BLOCKS = YES; 541 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 542 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 543 | GCC_WARN_UNDECLARED_SELECTOR = YES; 544 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 545 | GCC_WARN_UNUSED_FUNCTION = YES; 546 | GCC_WARN_UNUSED_VARIABLE = YES; 547 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 548 | MTL_ENABLE_DEBUG_INFO = NO; 549 | MTL_FAST_MATH = YES; 550 | SDKROOT = iphoneos; 551 | SWIFT_COMPILATION_MODE = wholemodule; 552 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 553 | VALIDATE_PRODUCT = YES; 554 | }; 555 | name = Release; 556 | }; 557 | 73D76761218BA66B00BD13B6 /* Debug */ = { 558 | isa = XCBuildConfiguration; 559 | buildSettings = { 560 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 561 | CODE_SIGN_ENTITLEMENTS = "DEV-Simple/DEV-Simple.entitlements"; 562 | CODE_SIGN_IDENTITY = "Apple Development"; 563 | CODE_SIGN_STYLE = Automatic; 564 | CURRENT_PROJECT_VERSION = 1; 565 | DEVELOPMENT_TEAM = R9SWHSQNV8; 566 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 567 | INFOPLIST_FILE = "DEV-Simple/Info.plist"; 568 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 569 | LD_RUNPATH_SEARCH_PATHS = ( 570 | "$(inherited)", 571 | "@executable_path/Frameworks", 572 | ); 573 | MARKETING_VERSION = 1.5.2; 574 | PRODUCT_BUNDLE_IDENTIFIER = to.dev.ios; 575 | PRODUCT_NAME = "$(TARGET_NAME)"; 576 | PROVISIONING_PROFILE_SPECIFIER = ""; 577 | SWIFT_VERSION = 5.0; 578 | TARGETED_DEVICE_FAMILY = "1,2"; 579 | }; 580 | name = Debug; 581 | }; 582 | 73D76762218BA66B00BD13B6 /* Release */ = { 583 | isa = XCBuildConfiguration; 584 | buildSettings = { 585 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 586 | CODE_SIGN_ENTITLEMENTS = "DEV-Simple/DEV-Simple.entitlements"; 587 | CODE_SIGN_IDENTITY = "Apple Development"; 588 | CODE_SIGN_STYLE = Automatic; 589 | CURRENT_PROJECT_VERSION = 1; 590 | DEVELOPMENT_TEAM = R9SWHSQNV8; 591 | FRAMEWORK_SEARCH_PATHS = "$(inherited)"; 592 | INFOPLIST_FILE = "DEV-Simple/Info.plist"; 593 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 594 | LD_RUNPATH_SEARCH_PATHS = ( 595 | "$(inherited)", 596 | "@executable_path/Frameworks", 597 | ); 598 | MARKETING_VERSION = 1.5.2; 599 | PRODUCT_BUNDLE_IDENTIFIER = to.dev.ios; 600 | PRODUCT_NAME = "$(TARGET_NAME)"; 601 | PROVISIONING_PROFILE_SPECIFIER = ""; 602 | SWIFT_VERSION = 5.0; 603 | TARGETED_DEVICE_FAMILY = "1,2"; 604 | }; 605 | name = Release; 606 | }; 607 | 73D76764218BA66B00BD13B6 /* Debug */ = { 608 | isa = XCBuildConfiguration; 609 | buildSettings = { 610 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 611 | BUNDLE_LOADER = "$(TEST_HOST)"; 612 | CODE_SIGN_STYLE = Automatic; 613 | DEVELOPMENT_TEAM = R9SWHSQNV8; 614 | INFOPLIST_FILE = "DEV-SimpleTests/Info.plist"; 615 | LD_RUNPATH_SEARCH_PATHS = ( 616 | "$(inherited)", 617 | "@executable_path/Frameworks", 618 | "@loader_path/Frameworks", 619 | ); 620 | PRODUCT_BUNDLE_IDENTIFIER = "DEV.DEV-SimpleTests"; 621 | PRODUCT_NAME = "$(TARGET_NAME)"; 622 | SWIFT_VERSION = 5.0; 623 | TARGETED_DEVICE_FAMILY = "1,2"; 624 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DEV-Simple.app/DEV-Simple"; 625 | }; 626 | name = Debug; 627 | }; 628 | 73D76765218BA66B00BD13B6 /* Release */ = { 629 | isa = XCBuildConfiguration; 630 | buildSettings = { 631 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 632 | BUNDLE_LOADER = "$(TEST_HOST)"; 633 | CODE_SIGN_STYLE = Automatic; 634 | DEVELOPMENT_TEAM = R9SWHSQNV8; 635 | INFOPLIST_FILE = "DEV-SimpleTests/Info.plist"; 636 | LD_RUNPATH_SEARCH_PATHS = ( 637 | "$(inherited)", 638 | "@executable_path/Frameworks", 639 | "@loader_path/Frameworks", 640 | ); 641 | PRODUCT_BUNDLE_IDENTIFIER = "DEV.DEV-SimpleTests"; 642 | PRODUCT_NAME = "$(TARGET_NAME)"; 643 | SWIFT_VERSION = 5.0; 644 | TARGETED_DEVICE_FAMILY = "1,2"; 645 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DEV-Simple.app/DEV-Simple"; 646 | }; 647 | name = Release; 648 | }; 649 | 73D76767218BA66B00BD13B6 /* Debug */ = { 650 | isa = XCBuildConfiguration; 651 | buildSettings = { 652 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 653 | CODE_SIGN_STYLE = Automatic; 654 | DEVELOPMENT_TEAM = R9SWHSQNV8; 655 | INFOPLIST_FILE = "DEV-SimpleUITests/Info.plist"; 656 | LD_RUNPATH_SEARCH_PATHS = ( 657 | "$(inherited)", 658 | "@executable_path/Frameworks", 659 | "@loader_path/Frameworks", 660 | ); 661 | PRODUCT_BUNDLE_IDENTIFIER = "DEV.DEV-SimpleUITests"; 662 | PRODUCT_NAME = "$(TARGET_NAME)"; 663 | SWIFT_VERSION = 5.0; 664 | TARGETED_DEVICE_FAMILY = "1,2"; 665 | TEST_TARGET_NAME = "DEV-Simple"; 666 | }; 667 | name = Debug; 668 | }; 669 | 73D76768218BA66B00BD13B6 /* Release */ = { 670 | isa = XCBuildConfiguration; 671 | buildSettings = { 672 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 673 | CODE_SIGN_STYLE = Automatic; 674 | DEVELOPMENT_TEAM = R9SWHSQNV8; 675 | INFOPLIST_FILE = "DEV-SimpleUITests/Info.plist"; 676 | LD_RUNPATH_SEARCH_PATHS = ( 677 | "$(inherited)", 678 | "@executable_path/Frameworks", 679 | "@loader_path/Frameworks", 680 | ); 681 | PRODUCT_BUNDLE_IDENTIFIER = "DEV.DEV-SimpleUITests"; 682 | PRODUCT_NAME = "$(TARGET_NAME)"; 683 | SWIFT_VERSION = 5.0; 684 | TARGETED_DEVICE_FAMILY = "1,2"; 685 | TEST_TARGET_NAME = "DEV-Simple"; 686 | }; 687 | name = Release; 688 | }; 689 | /* End XCBuildConfiguration section */ 690 | 691 | /* Begin XCConfigurationList section */ 692 | 73D76733218BA66700BD13B6 /* Build configuration list for PBXProject "DEV-Simple" */ = { 693 | isa = XCConfigurationList; 694 | buildConfigurations = ( 695 | 73D7675E218BA66B00BD13B6 /* Debug */, 696 | 73D7675F218BA66B00BD13B6 /* Release */, 697 | ); 698 | defaultConfigurationIsVisible = 0; 699 | defaultConfigurationName = Release; 700 | }; 701 | 73D76760218BA66B00BD13B6 /* Build configuration list for PBXNativeTarget "DEV-Simple" */ = { 702 | isa = XCConfigurationList; 703 | buildConfigurations = ( 704 | 73D76761218BA66B00BD13B6 /* Debug */, 705 | 73D76762218BA66B00BD13B6 /* Release */, 706 | ); 707 | defaultConfigurationIsVisible = 0; 708 | defaultConfigurationName = Release; 709 | }; 710 | 73D76763218BA66B00BD13B6 /* Build configuration list for PBXNativeTarget "DEV-SimpleTests" */ = { 711 | isa = XCConfigurationList; 712 | buildConfigurations = ( 713 | 73D76764218BA66B00BD13B6 /* Debug */, 714 | 73D76765218BA66B00BD13B6 /* Release */, 715 | ); 716 | defaultConfigurationIsVisible = 0; 717 | defaultConfigurationName = Release; 718 | }; 719 | 73D76766218BA66B00BD13B6 /* Build configuration list for PBXNativeTarget "DEV-SimpleUITests" */ = { 720 | isa = XCConfigurationList; 721 | buildConfigurations = ( 722 | 73D76767218BA66B00BD13B6 /* Debug */, 723 | 73D76768218BA66B00BD13B6 /* Release */, 724 | ); 725 | defaultConfigurationIsVisible = 0; 726 | defaultConfigurationName = Release; 727 | }; 728 | /* End XCConfigurationList section */ 729 | 730 | /* Begin XCRemoteSwiftPackageReference section */ 731 | CC5ECD72263D83F40048466A /* XCRemoteSwiftPackageReference "push-notifications-swift" */ = { 732 | isa = XCRemoteSwiftPackageReference; 733 | repositoryURL = "https://github.com/pusher/push-notifications-swift"; 734 | requirement = { 735 | kind = upToNextMajorVersion; 736 | minimumVersion = 3.0.4; 737 | }; 738 | }; 739 | CC5ECD79263D85760048466A /* XCRemoteSwiftPackageReference "ForemWebView-ios" */ = { 740 | isa = XCRemoteSwiftPackageReference; 741 | repositoryURL = "https://github.com/forem/ForemWebView-ios.git"; 742 | requirement = { 743 | branch = main; 744 | kind = branch; 745 | }; 746 | }; 747 | CC5ECD7E263D85C50048466A /* XCRemoteSwiftPackageReference "NotificationBanner" */ = { 748 | isa = XCRemoteSwiftPackageReference; 749 | repositoryURL = "https://github.com/Daltron/NotificationBanner.git"; 750 | requirement = { 751 | kind = upToNextMajorVersion; 752 | minimumVersion = 3.0.6; 753 | }; 754 | }; 755 | /* End XCRemoteSwiftPackageReference section */ 756 | 757 | /* Begin XCSwiftPackageProductDependency section */ 758 | CC5ECD73263D83F40048466A /* PushNotifications */ = { 759 | isa = XCSwiftPackageProductDependency; 760 | package = CC5ECD72263D83F40048466A /* XCRemoteSwiftPackageReference "push-notifications-swift" */; 761 | productName = PushNotifications; 762 | }; 763 | CC5ECD7A263D85760048466A /* ForemWebView */ = { 764 | isa = XCSwiftPackageProductDependency; 765 | package = CC5ECD79263D85760048466A /* XCRemoteSwiftPackageReference "ForemWebView-ios" */; 766 | productName = ForemWebView; 767 | }; 768 | CC5ECD7F263D85C50048466A /* NotificationBannerSwift */ = { 769 | isa = XCSwiftPackageProductDependency; 770 | package = CC5ECD7E263D85C50048466A /* XCRemoteSwiftPackageReference "NotificationBanner" */; 771 | productName = NotificationBannerSwift; 772 | }; 773 | /* End XCSwiftPackageProductDependency section */ 774 | }; 775 | rootObject = 73D76730218BA66700BD13B6 /* Project object */; 776 | } 777 | -------------------------------------------------------------------------------- /DEV-Simple.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DEV-Simple.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /DEV-Simple.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved: -------------------------------------------------------------------------------- 1 | { 2 | "object": { 3 | "pins": [ 4 | { 5 | "package": "Alamofire", 6 | "repositoryURL": "https://github.com/Alamofire/Alamofire.git", 7 | "state": { 8 | "branch": null, 9 | "revision": "f96b619bcb2383b43d898402283924b80e2c4bae", 10 | "version": "5.4.3" 11 | } 12 | }, 13 | { 14 | "package": "AlamofireImage", 15 | "repositoryURL": "https://github.com/Alamofire/AlamofireImage.git", 16 | "state": { 17 | "branch": null, 18 | "revision": "98cbb00ce0ec5fc8e52a5b50a6bfc08d3e5aee10", 19 | "version": "4.2.0" 20 | } 21 | }, 22 | { 23 | "package": "ForemWebView", 24 | "repositoryURL": "https://github.com/forem/ForemWebView-ios.git", 25 | "state": { 26 | "branch": "main", 27 | "revision": "5273f1b972390d81115e418827e7ebd158b77a60", 28 | "version": null 29 | } 30 | }, 31 | { 32 | "package": "MarqueeLabel", 33 | "repositoryURL": "https://github.com/cbpowell/MarqueeLabel", 34 | "state": { 35 | "branch": null, 36 | "revision": "d92fe1583dbf43fa3b70229a49fa7da6b36750d4", 37 | "version": "4.0.5" 38 | } 39 | }, 40 | { 41 | "package": "NotificationBannerSwift", 42 | "repositoryURL": "https://github.com/Daltron/NotificationBanner.git", 43 | "state": { 44 | "branch": null, 45 | "revision": "2ce5c49d8ee4865f01a3ce3bbe078664c78c7a3c", 46 | "version": "3.0.6" 47 | } 48 | }, 49 | { 50 | "package": "PryntTrimmerView", 51 | "repositoryURL": "https://github.com/HHK1/PryntTrimmerView", 52 | "state": { 53 | "branch": null, 54 | "revision": "ac1b60a22c7e6a6514de7a66d2f3d5b537c956d5", 55 | "version": "4.0.2" 56 | } 57 | }, 58 | { 59 | "package": "PushNotifications", 60 | "repositoryURL": "https://github.com/pusher/push-notifications-swift", 61 | "state": { 62 | "branch": null, 63 | "revision": "cff2308b83ee27e4cfa25e191e103dfe6d6d18d2", 64 | "version": "3.0.4" 65 | } 66 | }, 67 | { 68 | "package": "SnapKit", 69 | "repositoryURL": "https://github.com/SnapKit/SnapKit", 70 | "state": { 71 | "branch": null, 72 | "revision": "d458564516e5676af9c70b4f4b2a9178294f1bc6", 73 | "version": "5.0.1" 74 | } 75 | }, 76 | { 77 | "package": "Stevia", 78 | "repositoryURL": "https://github.com/freshOS/Stevia", 79 | "state": { 80 | "branch": null, 81 | "revision": "e1e8dc40deab3a863a35a7a0aab10f7304f4b42a", 82 | "version": "5.1.0" 83 | } 84 | }, 85 | { 86 | "package": "YPImagePicker", 87 | "repositoryURL": "https://github.com/Yummypets/YPImagePicker", 88 | "state": { 89 | "branch": null, 90 | "revision": "2cf2d150bb0861f2079bc44b56c17aabf5e5d5aa", 91 | "version": null 92 | } 93 | } 94 | ] 95 | }, 96 | "version": 1 97 | } 98 | -------------------------------------------------------------------------------- /DEV-Simple.xcodeproj/xcshareddata/xcschemes/DEV-Simple-Local.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 58 | 59 | 60 | 61 | 67 | 69 | 75 | 76 | 77 | 78 | 80 | 81 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /DEV-Simple.xcodeproj/xcshareddata/xcschemes/DEV-Simple.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 42 | 48 | 49 | 50 | 52 | 58 | 59 | 60 | 61 | 62 | 72 | 74 | 80 | 81 | 82 | 83 | 89 | 91 | 97 | 98 | 99 | 100 | 102 | 103 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /DEV-Simple/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // DEV-Simple 4 | // 5 | // Created by Ben Halpern on 11/1/18. 6 | // Copyright © 2018 DEV. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import PushNotifications 11 | import AVFoundation 12 | 13 | @UIApplicationMain 14 | class AppDelegate: UIResponder, UIApplicationDelegate { 15 | 16 | var window: UIWindow? 17 | 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions 19 | launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 20 | 21 | setupPushNotifications() 22 | configureAVAudioSession() 23 | setupReachability() 24 | 25 | return true 26 | } 27 | 28 | private func setupPushNotifications() { 29 | PushNotifications.shared.start(instanceId: "cdaf9857-fad0-4bfb-b360-64c1b2693ef3") 30 | PushNotifications.shared.registerForRemoteNotifications() 31 | try? PushNotifications.shared.addDeviceInterest(interest: "broadcast") 32 | } 33 | 34 | private func configureAVAudioSession() { 35 | do { 36 | try AVAudioSession.sharedInstance().setCategory(.playback) 37 | } catch { 38 | print("Failed to set audio session category") 39 | } 40 | } 41 | 42 | private func setupReachability() { 43 | do { 44 | Network.reachability = try Reachability(hostname: "www.google.com") 45 | do { 46 | try Network.reachability?.start() 47 | } catch let error as Network.Error { 48 | print(error) 49 | } catch { 50 | print(error) 51 | } 52 | } catch { 53 | print(error) 54 | } 55 | } 56 | 57 | func applicationWillResignActive(_ application: UIApplication) { 58 | // Sent when the application is about to move from active to inactive state. 59 | //This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) 60 | //or when the user quits the application and it begins the transition to the background state. 61 | // Use this method to pause ongoing tasks, disable timers, 62 | //and invalidate graphics rendering callbacks. Games should use this method to pause the game. 63 | } 64 | 65 | func applicationDidEnterBackground(_ application: UIApplication) { 66 | // Use this method to release shared resources, save user data, invalidate timers, and store enough 67 | //application state information to restore your application to its current state in case it is terminated later. 68 | // If your application supports background execution, 69 | //this method is called instead of applicationWillTerminate: when the user quits. 70 | } 71 | 72 | func applicationWillEnterForeground(_ application: UIApplication) { 73 | // Called as part of the transition from the background to the active state; 74 | //here you can undo many of the changes made on entering the background. 75 | } 76 | 77 | func applicationDidBecomeActive(_ application: UIApplication) { 78 | // Restart any tasks that were paused (or not yet started) while the application was inactive. 79 | //If the application was previously in the background, optionally refresh the user interface. 80 | } 81 | 82 | func applicationWillTerminate(_ application: UIApplication) { 83 | // Called when the application is about to terminate. Save data if appropriate. 84 | //See also applicationDidEnterBackground:. 85 | } 86 | 87 | func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { 88 | PushNotifications.shared.registerDeviceToken(deviceToken) 89 | } 90 | 91 | func application(_ application: UIApplication, 92 | didReceiveRemoteNotification userInfo: [AnyHashable: Any], 93 | fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { 94 | 95 | PushNotifications.shared.handleNotification(userInfo: userInfo) 96 | let strUrl = userInfo["data"] as? NSDictionary 97 | guard let url = strUrl?.value(forKeyPath: "url") as? String else { 98 | return 99 | } 100 | 101 | let state = application.applicationState 102 | if url == "REMOVE_NOTIFICATIONS" { 103 | let center = UNUserNotificationCenter.current() 104 | center.removeAllDeliveredNotifications() 105 | } else if state == .inactive { //Tapped by notification 106 | load(url) 107 | } 108 | 109 | completionHandler(.noData) 110 | } 111 | 112 | func load(_ url: String) { 113 | NotificationCenter.default.post(name: Notification.Name.updateWebView, 114 | object: nil, 115 | userInfo: ["url": url]) 116 | } 117 | 118 | func application( 119 | _ application: UIApplication, 120 | continue userActivity: NSUserActivity, 121 | restorationHandler: @escaping ([UIUserActivityRestoring]? 122 | ) -> Void) -> Bool { 123 | 124 | // Open universal links 125 | guard userActivity.activityType == NSUserActivityTypeBrowsingWeb, 126 | let url = userActivity.webpageURL, 127 | (URLComponents(url: url, resolvingAgainstBaseURL: true) != nil) else { 128 | return false 129 | } 130 | 131 | load(url.absoluteString) 132 | return false 133 | } 134 | } 135 | -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "57x57", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-57x57@1x.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "57x57", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-57x57@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "60x60", 59 | "idiom" : "iphone", 60 | "filename" : "Icon-App-60x60@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "60x60", 65 | "idiom" : "iphone", 66 | "filename" : "Icon-App-60x60@3x.png", 67 | "scale" : "3x" 68 | }, 69 | { 70 | "size" : "20x20", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-20x20@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "20x20", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-20x20@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "29x29", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-29x29@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "29x29", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-29x29@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "40x40", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-40x40@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "40x40", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-40x40@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "50x50", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-Small-50x50@1x.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "50x50", 113 | "idiom" : "ipad", 114 | "filename" : "Icon-Small-50x50@2x.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "72x72", 119 | "idiom" : "ipad", 120 | "filename" : "Icon-App-72x72@1x.png", 121 | "scale" : "1x" 122 | }, 123 | { 124 | "size" : "72x72", 125 | "idiom" : "ipad", 126 | "filename" : "Icon-App-72x72@2x.png", 127 | "scale" : "2x" 128 | }, 129 | { 130 | "size" : "76x76", 131 | "idiom" : "ipad", 132 | "filename" : "Icon-App-76x76@1x.png", 133 | "scale" : "1x" 134 | }, 135 | { 136 | "size" : "76x76", 137 | "idiom" : "ipad", 138 | "filename" : "Icon-App-76x76@2x.png", 139 | "scale" : "2x" 140 | }, 141 | { 142 | "size" : "83.5x83.5", 143 | "idiom" : "ipad", 144 | "filename" : "Icon-App-83.5x83.5@2x.png", 145 | "scale" : "2x" 146 | }, 147 | { 148 | "size" : "1024x1024", 149 | "idiom" : "ios-marketing", 150 | "filename" : "ItunesArtwork@2x.png", 151 | "scale" : "1x" 152 | } 153 | ], 154 | "info" : { 155 | "version" : 1, 156 | "author" : "xcode" 157 | } 158 | } -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/ForemBot.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "ForemBot1x.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "ForemBot2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "ForemBot3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/ForemBot.imageset/ForemBot1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/ForemBot.imageset/ForemBot1x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/ForemBot.imageset/ForemBot2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/ForemBot.imageset/ForemBot2x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/ForemBot.imageset/ForemBot3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/ForemBot.imageset/ForemBot3x.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Logo-1080.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Logo.imageset/Logo-1080.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/Logo.imageset/Logo-1080.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Open.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "upload.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Open.imageset/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/Open.imageset/upload.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Safari.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "safari.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Safari.imageset/safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/Safari.imageset/safari.png -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Silver.imageset/Apple+Silver-2880x1800.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/forem/DEV-ios/e97b522fa3cbf1c8a8d840a431e43773e35af501/DEV-Simple/Assets.xcassets/Silver.imageset/Apple+Silver-2880x1800.jpg -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/Silver.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Apple+Silver-2880x1800.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/arrow.down.app.fill.symbolset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | }, 6 | "symbols" : [ 7 | { 8 | "filename" : "arrow.down.app.fill 2.0.svg", 9 | "idiom" : "universal" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /DEV-Simple/Assets.xcassets/newspaper.symbolset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | }, 6 | "symbols" : [ 7 | { 8 | "filename" : "newspaper.svg", 9 | "idiom" : "universal" 10 | } 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /DEV-Simple/BrowserViewController.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import UIKit 3 | import WebKit 4 | 5 | class BrowserViewController: UIViewController, WKNavigationDelegate { 6 | 7 | @IBOutlet weak var webView: WKWebView! 8 | @IBOutlet weak var activityIndicator: UIActivityIndicatorView! 9 | 10 | var destinationUrl: URL? 11 | 12 | @IBAction func buttonTapped(_ sender: Any) { 13 | self.dismiss(animated: true, completion: nil) 14 | } 15 | 16 | @IBAction func safariButtonTapped(_ sender: Any) { 17 | openInBrowser() 18 | } 19 | 20 | override func viewDidLoad() { 21 | super.viewDidLoad() 22 | activityIndicator.hidesWhenStopped = true 23 | webView.navigationDelegate = self 24 | webView.allowsBackForwardNavigationGestures = true 25 | webView.backForwardList.perform(Selector(("_removeAllItems"))) 26 | webView.load(URLRequest(url: destinationUrl ?? URL(string: "https://github.com")!)) 27 | } 28 | 29 | func openInBrowser() { 30 | if let url = webView.url { 31 | UIApplication.shared.open(url, options: [:]) 32 | } 33 | } 34 | 35 | // MARK: - WKWebView Delegate Functions 36 | func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) { 37 | activityIndicator.startAnimating() 38 | } 39 | 40 | func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { 41 | activityIndicator.stopAnimating() 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /DEV-Simple/DEV-Simple.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | aps-environment 6 | development 7 | com.apple.developer.associated-domains 8 | 9 | applinks:dev.to 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /DEV-Simple/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | DEV 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIcons 12 | 13 | CFBundleIcons~ipad 14 | 15 | CFBundleIdentifier 16 | $(PRODUCT_BUNDLE_IDENTIFIER) 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | $(PRODUCT_NAME) 21 | CFBundlePackageType 22 | APPL 23 | CFBundleShortVersionString 24 | $(MARKETING_VERSION) 25 | CFBundleURLTypes 26 | 27 | 28 | CFBundleTypeRole 29 | Editor 30 | CFBundleURLName 31 | $(PRODUCT_NAME) 32 | CFBundleURLSchemes 33 | 34 | devto 35 | 36 | 37 | 38 | CFBundleVersion 39 | $(CURRENT_PROJECT_VERSION) 40 | LSRequiresIPhoneOS 41 | 42 | NSAppTransportSecurity 43 | 44 | NSAllowsArbitraryLoadsInWebContent 45 | 46 | 47 | NSCameraUsageDescription 48 | Allow DEV to take photos 49 | NSPhotoLibraryUsageDescription 50 | Allow access to attach images and videos to your posts 51 | UIBackgroundModes 52 | 53 | audio 54 | remote-notification 55 | 56 | UILaunchStoryboardName 57 | LaunchScreen 58 | UIMainStoryboardFile 59 | Main 60 | UIRequiredDeviceCapabilities 61 | 62 | armv7 63 | 64 | UISupportedInterfaceOrientations 65 | 66 | UIInterfaceOrientationPortrait 67 | 68 | UISupportedInterfaceOrientations~ipad 69 | 70 | UIInterfaceOrientationPortrait 71 | UIInterfaceOrientationPortraitUpsideDown 72 | UIInterfaceOrientationLandscapeLeft 73 | UIInterfaceOrientationLandscapeRight 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /DEV-Simple/Launch Screen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /DEV-Simple/NewsModalView.swift: -------------------------------------------------------------------------------- 1 | import SwiftUI 2 | import UIKit 3 | 4 | struct NewsModalView: View { 5 | var dismissAction: (() -> Void) 6 | 7 | var body: some View { 8 | VStack { 9 | HStack { 10 | Spacer() 11 | Button(action: { 12 | dismissAction() 13 | }) { 14 | Image(systemName: "xmark.circle.fill") 15 | .foregroundColor(Color.gray) 16 | .opacity(0.75) 17 | .font(.system(size: 25, weight: .bold)) 18 | } 19 | } 20 | .padding(.top, 10.0) 21 | Spacer() 22 | Image("ForemBot") 23 | .interpolation(.high) 24 | .renderingMode(.original) 25 | .resizable() 26 | .aspectRatio(contentMode: .fit) 27 | .clipped() 28 | .mask(RoundedRectangle(cornerRadius: 14, style: .continuous)) 29 | .shadow(radius: 2) 30 | .padding() 31 | Text("Find DEV in the Forem app") 32 | .font(Font.system(.title, design: .default).weight(.heavy)) 33 | .padding(.horizontal) 34 | .multilineTextAlignment(.center) 35 | Text("Get Forem for iOS in the App Store. Your DEV profile info will be carried over so you can pick up where you left off!") 36 | .multilineTextAlignment(.center) 37 | .padding(.bottom, 25) 38 | .padding(.top, 5) 39 | .padding(.horizontal) 40 | Button(action: { 41 | UIApplication.shared.open(URL(string: "https://apps.apple.com/us/app/forem/id1536933197")!) 42 | dismissAction() 43 | }) { 44 | HStack { 45 | Image(systemName: "arrow.down") 46 | Text("Download Forem App") 47 | } 48 | } 49 | .background(Group { 50 | EmptyView() 51 | }, alignment: .center) 52 | .padding() 53 | .background(Color.blue) 54 | .foregroundColor(Color.white) 55 | .cornerRadius(14) 56 | .shadow(radius: 2) 57 | Spacer() 58 | } 59 | .clipped() 60 | .padding(.vertical, 10) 61 | .padding(.horizontal, 10) 62 | } 63 | } 64 | 65 | struct NewsModalView_Previews: PreviewProvider { 66 | static var previews: some View { 67 | NewsModalView(dismissAction: {}) 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /DEV-Simple/Storyboards/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /DEV-Simple/Storyboards/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /DEV-Simple/Utilities/Globals.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Globals.swift 3 | // DEV-Simple 4 | // 5 | // Created by Erick Alberto Gonzales Fajardo on 1/7/19. 6 | // Copyright © 2019 DEV. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | struct DoAction { 12 | static var openExternalURL = "showExternalPage" 13 | } 14 | 15 | struct ThemeColors { 16 | static var statusBarStyleDarkContentRawValue = 3 17 | static var darkBackgroundColor = UIColor(red: 26/255, green: 38/255, blue: 52/255, alpha: 1) 18 | } 19 | 20 | struct AuthUrl { 21 | static var github = "https://github.com/login" 22 | static var twitter = "https://api.twitter.com/oauth" 23 | } 24 | -------------------------------------------------------------------------------- /DEV-Simple/Utilities/NetworkReachability.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NetworkReachability.swift 3 | // DEV-Simple 4 | // 5 | // Created by Daniel Chick on 12/3/18. 6 | // Copyright © 2018 DEV. All rights reserved. 7 | // 8 | // swiftlint:disable identifier_name 9 | 10 | import UIKit 11 | import SystemConfiguration 12 | 13 | class Reachability { 14 | var hostname: String? 15 | var isRunning = false 16 | var isReachableOnWWAN: Bool 17 | var reachability: SCNetworkReachability? 18 | var reachabilityFlags = SCNetworkReachabilityFlags() 19 | let reachabilitySerialQueue = DispatchQueue(label: "ReachabilityQueue") 20 | init?(hostname: String) throws { 21 | guard let reachability = SCNetworkReachabilityCreateWithName(nil, hostname) else { 22 | throw Network.Error.failedToCreateWith(hostname) 23 | } 24 | self.reachability = reachability 25 | self.hostname = hostname 26 | isReachableOnWWAN = true 27 | } 28 | init?() throws { 29 | var zeroAddress = sockaddr_in() 30 | zeroAddress.sin_len = UInt8(MemoryLayout.size) 31 | zeroAddress.sin_family = sa_family_t(AF_INET) 32 | guard let reachability = withUnsafePointer(to: &zeroAddress, { 33 | $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { 34 | SCNetworkReachabilityCreateWithAddress(nil, $0) 35 | }}) else { 36 | throw Network.Error.failedToInitializeWith(zeroAddress) 37 | } 38 | self.reachability = reachability 39 | isReachableOnWWAN = true 40 | } 41 | var status: Network.Status { 42 | return !isConnectedToNetwork ? .unreachable : 43 | isReachableViaWiFi ? .wifi : 44 | isRunningOnDevice ? .wwan : .unreachable 45 | } 46 | var isRunningOnDevice: Bool = { 47 | #if targetEnvironment(simulator) 48 | return false 49 | #else 50 | return true 51 | #endif 52 | }() 53 | deinit { stop() } 54 | } 55 | 56 | extension Reachability { 57 | func start() throws { 58 | guard let reachability = reachability, !isRunning else { return } 59 | var context = SCNetworkReachabilityContext( 60 | version: 0, 61 | info: nil, 62 | retain: nil, 63 | release: nil, 64 | copyDescription: nil) 65 | 66 | context.info = Unmanaged.passUnretained(self).toOpaque() 67 | guard SCNetworkReachabilitySetCallback(reachability, callout, &context) else { stop() 68 | throw Network.Error.failedToSetCallout 69 | } 70 | guard SCNetworkReachabilitySetDispatchQueue(reachability, reachabilitySerialQueue) else { stop() 71 | throw Network.Error.failedToSetDispatchQueue 72 | } 73 | reachabilitySerialQueue.async { self.flagsChanged() } 74 | isRunning = true 75 | } 76 | func stop() { 77 | defer { isRunning = false } 78 | guard let reachability = reachability else { return } 79 | SCNetworkReachabilitySetCallback(reachability, nil, nil) 80 | SCNetworkReachabilitySetDispatchQueue(reachability, nil) 81 | self.reachability = nil 82 | } 83 | var isConnectedToNetwork: Bool { 84 | return isReachable && 85 | !isConnectionRequiredAndTransientConnection && 86 | !(isRunningOnDevice && isWWAN && !isReachableOnWWAN) 87 | } 88 | var isReachableViaWiFi: Bool { 89 | return isReachable && isRunningOnDevice && !isWWAN 90 | } 91 | 92 | /// Flags that indicate the reachability of a network node name or address, 93 | /// including whether a connection is required, 94 | /// and whether some user intervention might be required when establishing a connection. 95 | var flags: SCNetworkReachabilityFlags? { 96 | guard let reachability = reachability else { return nil } 97 | var flags = SCNetworkReachabilityFlags() 98 | return withUnsafeMutablePointer(to: &flags) { 99 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0)) 100 | } ? flags : nil 101 | } 102 | 103 | /// compares the current flags with the previous flags and if changed posts a flagsChanged notification 104 | func flagsChanged() { 105 | guard let flags = flags, flags != reachabilityFlags else { return } 106 | reachabilityFlags = flags 107 | NotificationCenter.default.post(name: .flagsChanged, object: self) 108 | } 109 | 110 | /// The specified node name or address can be reached via a transient connection, such as PPP. 111 | var transientConnection: Bool { return flags?.contains(.transientConnection) == true } 112 | 113 | /// The specified node name or address can be reached using the current network configuration. 114 | var isReachable: Bool { return flags?.contains(.reachable) == true } 115 | 116 | /// The specified node name or address can be reached using the current network configuration, 117 | /// but a connection must first be established. 118 | /// If this flag is set, the kSCNetworkReachabilityFlagsConnectionOnTraffic flag, 119 | /// kSCNetworkReachabilityFlagsConnectionOnDemand flag, 120 | /// or kSCNetworkReachabilityFlagsIsWWAN flag is also typically set to indicate the type of connection required. 121 | /// If the user must manually make the connection, 122 | /// the kSCNetworkReachabilityFlagsInterventionRequired flag is also set. 123 | var connectionRequired: Bool { return flags?.contains(.connectionRequired) == true } 124 | 125 | /// The specified node name or address can be reached using the current network configuration, 126 | /// but a connection must first be established. 127 | /// Any traffic directed to the specified name or address will initiate the connection. 128 | var connectionOnTraffic: Bool { return flags?.contains(.connectionOnTraffic) == true } 129 | 130 | /// The specified node name or address can be reached using the current network configuration, 131 | /// but a connection must first be established. 132 | var interventionRequired: Bool { return flags?.contains(.interventionRequired) == true } 133 | 134 | /// The specified node name or address can be reached using the current network configuration, 135 | /// but a connection must first be established. 136 | /// The connection will be established "On Demand" by the CFSocketStream programming interface 137 | /// (see CFStream Socket Additions for information on this). 138 | /// Other functions will not establish the connection. 139 | var connectionOnDemand: Bool { return flags?.contains(.connectionOnDemand) == true } 140 | 141 | /// The specified node name or address is one that is associated with a network interface on the current system. 142 | var isLocalAddress: Bool { return flags?.contains(.isLocalAddress) == true } 143 | 144 | /// Network traffic to the specified node name or address will not go through a gateway, 145 | /// but is routed directly to one of the interfaces in the system. 146 | var isDirect: Bool { return flags?.contains(.isDirect) == true } 147 | 148 | /// The specified node name or address can be reached via a cellular connection, 149 | /// such as EDGE or GPRS. 150 | var isWWAN: Bool { return flags?.contains(.isWWAN) == true } 151 | 152 | /// The specified node name or address can be reached using the current network 153 | /// configuration, but a connection must first be established. 154 | /// If this flag is set the specified node name or address can be reached via a transient connection, such as PPP. 155 | var isConnectionRequiredAndTransientConnection: Bool { 156 | return (flags?.intersection( 157 | [.connectionRequired, .transientConnection]) == 158 | [.connectionRequired, .transientConnection]) == true 159 | } 160 | } 161 | 162 | func callout(reachability: SCNetworkReachability, flags: SCNetworkReachabilityFlags, info: UnsafeMutableRawPointer?) { 163 | guard let info = info else { return } 164 | DispatchQueue.main.async { 165 | Unmanaged.fromOpaque(info).takeUnretainedValue().flagsChanged() 166 | } 167 | } 168 | 169 | extension Notification.Name { 170 | static let flagsChanged = Notification.Name("flagsChanged") 171 | } 172 | 173 | struct Network { 174 | static var reachability: Reachability? 175 | enum Status: String, CustomStringConvertible { 176 | case unreachable, wifi, wwan 177 | var description: String { return rawValue } 178 | } 179 | enum Error: Swift.Error { 180 | case failedToSetCallout 181 | case failedToSetDispatchQueue 182 | case failedToCreateWith(String) 183 | case failedToInitializeWith(sockaddr_in) 184 | } 185 | } 186 | enum ReachabilityError: Error { 187 | case failedToSetCallout 188 | case failedToSetDispatchQueue 189 | case failedToCreateWith(String) 190 | case failedToInitializeWith(sockaddr_in) 191 | } 192 | enum NetworkStatus: String { 193 | case unreachable, wifi, wwan 194 | } 195 | extension NetworkStatus: CustomStringConvertible { 196 | var description: String { return rawValue } 197 | } 198 | -------------------------------------------------------------------------------- /DEV-Simple/Utilities/Notification+DEV.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Notification+Extensions.swift 3 | // DEV-Simple 4 | // 5 | // Created by Daniel Chick on 10/2/19. 6 | // Copyright © 2019 DEV. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension Notification.Name { 12 | static let updateWebView = Notification.Name("updateWebView") 13 | } 14 | -------------------------------------------------------------------------------- /DEV-Simple/Utilities/ThemeManager.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ThemeManager.swift 3 | // DEV-Simple 4 | // 5 | // Created by Daniel Chick on 11/27/20. 6 | // Copyright © 2020 DEV. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ForemWebView 11 | 12 | class ThemeManager { 13 | private(set) static var useLightIcons = false 14 | 15 | static func applyTheme(to viewController: ViewController) { 16 | guard let webView = viewController.webView else { return } 17 | 18 | let theme = webView.userData?.theme() ?? .base 19 | let config = getThemeColor(for: theme) 20 | 21 | viewController.navigationToolBar.barTintColor = config.barTintColor 22 | viewController.view.backgroundColor = config.backgroundColor 23 | 24 | viewController.navigationToolBar.isTranslucent = !useLightIcons 25 | viewController.safariButton.tintColor = useLightIcons ? UIColor.white : ThemeColors.darkBackgroundColor 26 | viewController.backButton.tintColor = useLightIcons ? UIColor.white : ThemeColors.darkBackgroundColor 27 | viewController.forwardButton.tintColor = useLightIcons ? UIColor.white : ThemeColors.darkBackgroundColor 28 | viewController.refreshButton.tintColor = useLightIcons ? UIColor.white : ThemeColors.darkBackgroundColor 29 | viewController.activityIndicator.color = useLightIcons ? UIColor.white : ThemeColors.darkBackgroundColor 30 | } 31 | 32 | private static func getThemeColor(for theme: ForemWebViewTheme) -> ThemeConfig { 33 | switch theme { 34 | case .night: 35 | useLightIcons = true 36 | return ThemeConfig.night 37 | case .hacker: 38 | useLightIcons = true 39 | return ThemeConfig.hacker 40 | case .pink: 41 | useLightIcons = true 42 | return ThemeConfig.pink 43 | case .minimal: 44 | useLightIcons = false 45 | return ThemeConfig.minimal 46 | default: 47 | useLightIcons = false 48 | return ThemeConfig.base 49 | } 50 | } 51 | } 52 | 53 | private struct ThemeConfig { 54 | let barTintColor: UIColor 55 | let backgroundColor: UIColor 56 | } 57 | 58 | extension ThemeConfig { 59 | private static let devPink = UIColor(red: 250/255, green: 70/255, blue: 129/255, alpha: 1) 60 | 61 | static let night = ThemeConfig(barTintColor: ThemeColors.darkBackgroundColor, 62 | backgroundColor: ThemeColors.darkBackgroundColor) 63 | static let hacker = ThemeConfig(barTintColor: .black, backgroundColor: .black) 64 | static let pink = ThemeConfig(barTintColor: devPink, backgroundColor: devPink) 65 | static let base = ThemeConfig(barTintColor: .white, backgroundColor: .white) 66 | static let minimal = ThemeConfig(barTintColor: .white, backgroundColor: .white) 67 | } 68 | -------------------------------------------------------------------------------- /DEV-Simple/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // DEV-Simple 4 | // 5 | // Created by Ben Halpern on 11/1/18. 6 | // Copyright © 2018 DEV. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AVKit 11 | import SwiftUI 12 | import SnapKit 13 | 14 | import ForemWebView 15 | import PushNotifications 16 | import NotificationBannerSwift 17 | 18 | class ViewController: UIViewController { 19 | 20 | private var observations: [NSKeyValueObservation] = [] 21 | 22 | @IBOutlet weak var webView: ForemWebView! 23 | @IBOutlet weak var backButton: UIBarButtonItem! 24 | @IBOutlet weak var forwardButton: UIBarButtonItem! 25 | @IBOutlet weak var refreshButton: UIBarButtonItem! 26 | @IBOutlet weak var safariButton: UIBarButtonItem! 27 | @IBOutlet weak var activityIndicator: UIActivityIndicatorView! 28 | @IBOutlet weak var navigationToolBar: UIToolbar! 29 | @IBOutlet weak var newsButton: UIBarButtonItem! 30 | 31 | var pushNotificationSubscription = "" 32 | 33 | lazy var newsViewController: UIViewController? = { 34 | let newsModalView = NewsModalView(dismissAction: {self.dismiss( animated: true, completion: nil )}) 35 | let child = UIHostingController(rootView: newsModalView) 36 | return child 37 | }() 38 | 39 | lazy var errorBanner: NotificationBanner = { 40 | let banner = NotificationBanner(title: "Network not reachable", style: .danger) 41 | banner.autoDismiss = false 42 | banner.dismissOnTap = true 43 | return banner 44 | }() 45 | 46 | var devToURL: String = { 47 | if let developmentURL = ProcessInfo.processInfo.environment["DEV_URL"] { 48 | return developmentURL 49 | } 50 | return "https://dev.to" 51 | }() 52 | 53 | override func viewDidLoad() { 54 | super.viewDidLoad() 55 | activityIndicator.hidesWhenStopped = true 56 | backButton.isEnabled = false 57 | forwardButton.isEnabled = false 58 | 59 | webView.foremWebViewDelegate = self 60 | webView.load(devToURL) 61 | 62 | setupObservers() 63 | } 64 | 65 | override func viewWillAppear(_ animated: Bool) { 66 | NotificationCenter.default.addObserver( 67 | self, 68 | selector: #selector(reachabilityChanged), 69 | name: .flagsChanged, 70 | object: Network.reachability) 71 | } 72 | 73 | override func viewDidAppear(_ animated: Bool) { 74 | super.viewDidAppear(animated) 75 | showNewsModalSheet() 76 | } 77 | 78 | // MARK: - Reachability 79 | @objc private func reachabilityChanged(note: Notification) { 80 | guard let reachability = note.object as? Reachability else { return } 81 | switch reachability.status { 82 | case .wifi, .wwan: 83 | if errorBanner.isDisplaying { 84 | errorBanner.dismiss() 85 | } 86 | default: () 87 | } 88 | } 89 | 90 | // MARK: - IBActions 91 | @IBAction func backButtonTapped(_ sender: Any) { 92 | if webView.canGoBack { 93 | webView.goBack() 94 | } 95 | } 96 | 97 | @IBAction func forwardButtonTapped(_ sender: Any) { 98 | if webView.canGoForward { 99 | webView.goForward() 100 | } 101 | } 102 | 103 | @IBAction func refreshButtonTapped(_ sender: Any) { 104 | webView.reload() 105 | } 106 | 107 | @IBAction func safariButtonTapped(_ sender: Any) { 108 | openInBrowser() 109 | } 110 | 111 | @IBAction func newsButtonTapped(_ sender: Any) { 112 | showNewsModalSheet() 113 | } 114 | 115 | @objc func updateWebView(_ notification: NSNotification) { 116 | guard let url = notification.userInfo?["url"] as? String else { return } 117 | webView.load(url) 118 | } 119 | 120 | func openURL(_ url: URL) { 121 | if UIApplication.shared.canOpenURL(url) { 122 | UIApplication.shared.open(url, options: [:], completionHandler: nil) 123 | } 124 | } 125 | 126 | // MARK: - External Safari call 127 | func openInBrowser() { 128 | if let url = webView.url { 129 | UIApplication.shared.open(url, options: [:]) 130 | } 131 | } 132 | 133 | // MARK: - News Modal 134 | func showNewsModalSheet() { 135 | guard let newsModal = newsViewController else { return } 136 | newsModal.modalPresentationStyle = .pageSheet 137 | self.present(newsModal, animated: true) 138 | } 139 | 140 | // MARK: - Auth 141 | func isAuthLink(_ url: URL) -> Bool { 142 | return url.absoluteString.hasPrefix(AuthUrl.github) || url.absoluteString.hasPrefix(AuthUrl.twitter) 143 | } 144 | 145 | // MARK: - Theme configs 146 | 147 | private func ensureShellState() { 148 | ensurePushNotificationsRegistration() 149 | 150 | backButton.isEnabled = webView.canGoBack 151 | forwardButton.isEnabled = webView.canGoForward 152 | 153 | ThemeManager.applyTheme(to: self) 154 | setNeedsStatusBarAppearanceUpdate() 155 | } 156 | 157 | // MARK: - Notifications Functions 158 | 159 | func ensurePushNotificationsRegistration() { 160 | if let userID = webView.userData?.userID, pushNotificationSubscription.isEmpty { 161 | pushNotificationSubscription = "user-notifications-\(userID)" 162 | do { 163 | try PushNotifications.shared.addDeviceInterest(interest: pushNotificationSubscription) 164 | } catch { 165 | // Clear out the subscription because it failed so it can try again next time 166 | pushNotificationSubscription = "" 167 | } 168 | } else if webView.userData?.userID == nil && !pushNotificationSubscription.isEmpty { 169 | // This means we had already subscribed to an interest for the logged-in user but 170 | // since `webView.userData` is now nil the user has just logged out. 171 | do { 172 | try PushNotifications.shared.removeDeviceInterest(interest: pushNotificationSubscription) 173 | pushNotificationSubscription = "" 174 | } catch { 175 | print("Failed to remove the interest") 176 | } 177 | } 178 | } 179 | 180 | // MARK: - Navigation 181 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 182 | if segue.identifier == DoAction.openExternalURL, 183 | let externalPage = segue.destination as? BrowserViewController { 184 | 185 | externalPage.destinationUrl = sender as? URL 186 | } 187 | } 188 | 189 | override var preferredStatusBarStyle: UIStatusBarStyle { 190 | if !ThemeManager.useLightIcons && traitCollection.userInterfaceStyle == .dark { 191 | return UIStatusBarStyle.init(rawValue: ThemeColors.statusBarStyleDarkContentRawValue)! 192 | } 193 | return ThemeManager.useLightIcons ? .lightContent : .default 194 | } 195 | 196 | private func setupObservers() { 197 | let notificationName = Notification.Name.updateWebView 198 | NotificationCenter.default.addObserver(self, 199 | selector: #selector(updateWebView(_:)), 200 | name: notificationName, 201 | object: nil) 202 | 203 | observations = [ 204 | webView.observe(\ForemWebView.userData) { [weak self] (_, _) in self?.ensureShellState() }, 205 | webView.observe(\ForemWebView.canGoBack) { [weak self] (_, _) in self?.ensureShellState() }, 206 | webView.observe(\ForemWebView.canGoForward) { [weak self] (_, _) in self?.ensureShellState() }, 207 | webView.observe(\ForemWebView.url) { [weak self] (_, _) in self?.ensureShellState() } 208 | ] 209 | } 210 | } 211 | 212 | extension ViewController: ForemWebViewDelegate { 213 | 214 | func didFailNavigation() { 215 | // Protocol requirement not yet implemented 216 | } 217 | 218 | func didLogin(userData: ForemUserData) { 219 | // NoProtocol requirement not yet implemented 220 | } 221 | 222 | func didLogout(userData: ForemUserData) { 223 | // Protocol requirement not yet implemented 224 | } 225 | 226 | func willStartNativeVideo(playerController: AVPlayerViewController) { 227 | if playerController.presentingViewController == nil { 228 | present(playerController, animated: true) { 229 | playerController.player?.play() 230 | } 231 | } 232 | } 233 | 234 | func requestedExternalSite(url: URL) { 235 | performSegue(withIdentifier: DoAction.openExternalURL, sender: url) 236 | } 237 | 238 | func requestedMailto(url: URL) { 239 | openURL(url) 240 | } 241 | 242 | func didStartNavigation() { 243 | let reachability = Network.reachability 244 | guard let isNetworkReachable = reachability?.isReachable, isNetworkReachable else { 245 | errorBanner.show() 246 | return 247 | } 248 | activityIndicator.isHidden = false 249 | activityIndicator.startAnimating() 250 | } 251 | 252 | func didFinishNavigation() { 253 | activityIndicator.isHidden = true 254 | activityIndicator.stopAnimating() 255 | } 256 | } 257 | -------------------------------------------------------------------------------- /DEV-SimpleTests/DEV_SimpleTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DEV_SimpleTests.swift 3 | // DEV-SimpleTests 4 | // 5 | // Created by Ben Halpern on 11/1/18. 6 | // Copyright © 2018 DEV. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import DEV_Simple 11 | 12 | class DEV_SimpleTests: XCTestCase { 13 | 14 | override func setUp() { 15 | // Put setup code here. This method is called before the invocation of each test method in the class. 16 | } 17 | 18 | override func tearDown() { 19 | // Put teardown code here. This method is called after the invocation of each test method in the class. 20 | } 21 | 22 | func testExample() { 23 | // This is an example of a functional test case. 24 | // Use XCTAssert and related functions to verify your tests produce the correct results. 25 | } 26 | 27 | func testPerformanceExample() { 28 | // This is an example of a performance test case. 29 | self.measure { 30 | // Put the code you want to measure the time of here. 31 | } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /DEV-SimpleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /DEV-SimpleTests/ViewControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewControllerTests.swift 3 | // DEV-SimpleTests 4 | // 5 | // Created by Ceri-anne Jackson on 13/11/2018. 6 | // Copyright © 2018 DEV. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | @testable import DEV_Simple 12 | 13 | class ViewControllerTests: XCTestCase { 14 | 15 | var viewController: ViewController! 16 | 17 | override func setUp() { 18 | let mainStoryboard = UIStoryboard(name: "Main", bundle: nil) 19 | viewController = mainStoryboard.instantiateInitialViewController() as? ViewController 20 | super.setUp() 21 | } 22 | 23 | func testCustomUserAgent() { 24 | _ = viewController.view 25 | 26 | let promise = expectation(description: "User Agent expectation") 27 | DispatchQueue.main.asyncAfter(deadline: .now() + 3) { 28 | let usesForemWebViewUserAgent = self.viewController.webView.customUserAgent?.contains("ForemWebView") 29 | XCTAssertTrue(usesForemWebViewUserAgent ?? false) 30 | promise.fulfill() 31 | } 32 | wait(for: [promise], timeout: 10) 33 | } 34 | 35 | func testDevtoBaseUrl() { 36 | XCTAssertEqual(self.viewController.devToURL, "https://dev.to") 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /DEV-SimpleTests/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Test HTML

4 | 5 | 6 | -------------------------------------------------------------------------------- /DEV-SimpleUITests/DEV_SimpleUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DEV_SimpleUITests.swift 3 | // DEV-SimpleUITests 4 | // 5 | // Created by Ben Halpern on 11/1/18. 6 | // Copyright © 2018 DEV. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class DEV_SimpleUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | // Put setup code here. This method is called before the invocation of each test method in the class. 15 | 16 | // In UI tests it is usually best to stop immediately when a failure occurs. 17 | continueAfterFailure = false 18 | 19 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 20 | XCUIApplication().launch() 21 | 22 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 23 | } 24 | 25 | override func tearDown() { 26 | // Put teardown code here. This method is called after the invocation of each test method in the class. 27 | } 28 | 29 | func testExample() { 30 | // Use recording to get started writing UI tests. 31 | // Use XCTAssert and related functions to verify your tests produce the correct results. 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /DEV-SimpleUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSAppTransportSecurity 6 | 7 | NSAllowsArbitraryLoads 8 | 9 | 10 | CFBundleDevelopmentRegion 11 | $(DEVELOPMENT_LANGUAGE) 12 | CFBundleExecutable 13 | $(EXECUTABLE_NAME) 14 | CFBundleIdentifier 15 | $(PRODUCT_BUNDLE_IDENTIFIER) 16 | CFBundleInfoDictionaryVersion 17 | 6.0 18 | CFBundleName 19 | $(PRODUCT_NAME) 20 | CFBundlePackageType 21 | BNDL 22 | CFBundleShortVersionString 23 | 1.0 24 | CFBundleVersion 25 | 1 26 | 27 | 28 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "fastlane" 4 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | CFPropertyList (3.0.2) 5 | addressable (2.7.0) 6 | public_suffix (>= 2.0.2, < 5.0) 7 | atomos (0.1.3) 8 | aws-eventstream (1.1.0) 9 | aws-partitions (1.402.0) 10 | aws-sdk-core (3.110.0) 11 | aws-eventstream (~> 1, >= 1.0.2) 12 | aws-partitions (~> 1, >= 1.239.0) 13 | aws-sigv4 (~> 1.1) 14 | jmespath (~> 1.0) 15 | aws-sdk-kms (1.39.0) 16 | aws-sdk-core (~> 3, >= 3.109.0) 17 | aws-sigv4 (~> 1.1) 18 | aws-sdk-s3 (1.86.0) 19 | aws-sdk-core (~> 3, >= 3.109.0) 20 | aws-sdk-kms (~> 1) 21 | aws-sigv4 (~> 1.1) 22 | aws-sigv4 (1.2.2) 23 | aws-eventstream (~> 1, >= 1.0.2) 24 | babosa (1.0.4) 25 | claide (1.0.3) 26 | colored (1.2) 27 | colored2 (3.1.2) 28 | commander-fastlane (4.4.6) 29 | highline (~> 1.7.2) 30 | declarative (0.0.20) 31 | declarative-option (0.1.0) 32 | digest-crc (0.6.2) 33 | rake (~> 12.0) 34 | domain_name (0.5.20190701) 35 | unf (>= 0.0.5, < 1.0.0) 36 | dotenv (2.7.6) 37 | emoji_regex (3.2.1) 38 | excon (0.78.1) 39 | faraday (1.1.0) 40 | multipart-post (>= 1.2, < 3) 41 | ruby2_keywords 42 | faraday-cookie_jar (0.0.7) 43 | faraday (>= 0.8.0) 44 | http-cookie (~> 1.0.0) 45 | faraday_middleware (1.0.0) 46 | faraday (~> 1.0) 47 | fastimage (2.2.0) 48 | fastlane (2.169.0) 49 | CFPropertyList (>= 2.3, < 4.0.0) 50 | addressable (>= 2.3, < 3.0.0) 51 | aws-sdk-s3 (~> 1.0) 52 | babosa (>= 1.0.3, < 2.0.0) 53 | bundler (>= 1.12.0, < 3.0.0) 54 | colored 55 | commander-fastlane (>= 4.4.6, < 5.0.0) 56 | dotenv (>= 2.1.1, < 3.0.0) 57 | emoji_regex (>= 0.1, < 4.0) 58 | excon (>= 0.71.0, < 1.0.0) 59 | faraday (~> 1.0) 60 | faraday-cookie_jar (~> 0.0.6) 61 | faraday_middleware (~> 1.0) 62 | fastimage (>= 2.1.0, < 3.0.0) 63 | gh_inspector (>= 1.1.2, < 2.0.0) 64 | google-api-client (>= 0.37.0, < 0.39.0) 65 | google-cloud-storage (>= 1.15.0, < 2.0.0) 66 | highline (>= 1.7.2, < 2.0.0) 67 | json (< 3.0.0) 68 | jwt (>= 2.1.0, < 3) 69 | mini_magick (>= 4.9.4, < 5.0.0) 70 | multipart-post (~> 2.0.0) 71 | plist (>= 3.1.0, < 4.0.0) 72 | rubyzip (>= 2.0.0, < 3.0.0) 73 | security (= 0.1.3) 74 | simctl (~> 1.6.3) 75 | slack-notifier (>= 2.0.0, < 3.0.0) 76 | terminal-notifier (>= 2.0.0, < 3.0.0) 77 | terminal-table (>= 1.4.5, < 2.0.0) 78 | tty-screen (>= 0.6.3, < 1.0.0) 79 | tty-spinner (>= 0.8.0, < 1.0.0) 80 | word_wrap (~> 1.0.0) 81 | xcodeproj (>= 1.13.0, < 2.0.0) 82 | xcpretty (~> 0.3.0) 83 | xcpretty-travis-formatter (>= 0.0.3) 84 | gh_inspector (1.1.3) 85 | google-api-client (0.38.0) 86 | addressable (~> 2.5, >= 2.5.1) 87 | googleauth (~> 0.9) 88 | httpclient (>= 2.8.1, < 3.0) 89 | mini_mime (~> 1.0) 90 | representable (~> 3.0) 91 | retriable (>= 2.0, < 4.0) 92 | signet (~> 0.12) 93 | google-cloud-core (1.5.0) 94 | google-cloud-env (~> 1.0) 95 | google-cloud-errors (~> 1.0) 96 | google-cloud-env (1.4.0) 97 | faraday (>= 0.17.3, < 2.0) 98 | google-cloud-errors (1.0.1) 99 | google-cloud-storage (1.29.1) 100 | addressable (~> 2.5) 101 | digest-crc (~> 0.4) 102 | google-api-client (~> 0.33) 103 | google-cloud-core (~> 1.2) 104 | googleauth (~> 0.9) 105 | mini_mime (~> 1.0) 106 | googleauth (0.14.0) 107 | faraday (>= 0.17.3, < 2.0) 108 | jwt (>= 1.4, < 3.0) 109 | memoist (~> 0.16) 110 | multi_json (~> 1.11) 111 | os (>= 0.9, < 2.0) 112 | signet (~> 0.14) 113 | highline (1.7.10) 114 | http-cookie (1.0.3) 115 | domain_name (~> 0.5) 116 | httpclient (2.8.3) 117 | jmespath (1.4.0) 118 | json (2.3.1) 119 | jwt (2.2.2) 120 | memoist (0.16.2) 121 | mini_magick (4.11.0) 122 | mini_mime (1.0.2) 123 | multi_json (1.15.0) 124 | multipart-post (2.0.0) 125 | nanaimo (0.3.0) 126 | naturally (2.2.0) 127 | os (1.1.1) 128 | plist (3.5.0) 129 | public_suffix (4.0.6) 130 | rake (12.3.3) 131 | representable (3.0.4) 132 | declarative (< 0.1.0) 133 | declarative-option (< 0.2.0) 134 | uber (< 0.2.0) 135 | retriable (3.1.2) 136 | rouge (2.0.7) 137 | ruby2_keywords (0.0.2) 138 | rubyzip (2.3.0) 139 | security (0.1.3) 140 | signet (0.14.0) 141 | addressable (~> 2.3) 142 | faraday (>= 0.17.3, < 2.0) 143 | jwt (>= 1.5, < 3.0) 144 | multi_json (~> 1.10) 145 | simctl (1.6.8) 146 | CFPropertyList 147 | naturally 148 | slack-notifier (2.3.2) 149 | terminal-notifier (2.0.0) 150 | terminal-table (1.8.0) 151 | unicode-display_width (~> 1.1, >= 1.1.1) 152 | tty-cursor (0.7.1) 153 | tty-screen (0.8.1) 154 | tty-spinner (0.9.3) 155 | tty-cursor (~> 0.7) 156 | uber (0.1.0) 157 | unf (0.1.4) 158 | unf_ext 159 | unf_ext (0.0.7.7) 160 | unicode-display_width (1.7.0) 161 | word_wrap (1.0.0) 162 | xcodeproj (1.19.0) 163 | CFPropertyList (>= 2.3.3, < 4.0) 164 | atomos (~> 0.1.3) 165 | claide (>= 1.0.2, < 2.0) 166 | colored2 (~> 3.1) 167 | nanaimo (~> 0.3.0) 168 | xcpretty (0.3.0) 169 | rouge (~> 2.0.7) 170 | xcpretty-travis-formatter (1.0.0) 171 | xcpretty (~> 0.2, >= 0.0.7) 172 | 173 | PLATFORMS 174 | ruby 175 | 176 | DEPENDENCIES 177 | fastlane 178 | 179 | BUNDLED WITH 180 | 2.1.4 181 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.com/thepracticaldev/DEV-ios.svg?branch=master)](https://travis-ci.com/thepracticaldev/DEV-ios) 2 | [![GitHub License](http://img.shields.io/badge/License-GPL%20v3-blue.svg?style=flat)](https://github.com/thepracticaldev/DEV-ios/blob/master/LICENSE) 3 | [![Language](https://img.shields.io/badge/Language-Swift_5-f48041.svg?style=flat)](https://developer.apple.com/swift) 4 | [![Maintainability](https://api.codeclimate.com/v1/badges/b162322067740725ad02/maintainability)](https://codeclimate.com/github/thepracticaldev/DEV-ios/maintainability) 5 | [![Test Coverage](https://api.codeclimate.com/v1/badges/b162322067740725ad02/test_coverage)](https://codeclimate.com/github/thepracticaldev/DEV-ios/test_coverage) 6 | 7 | # DEV iOS 💖 8 | 9 | This is the repo for the [dev.to](https://dev.to) iOS app. 10 | 11 | # Status: 12 | 13 | Released first version, more info: https://twitter.com/bendhalpern/status/1061323718058786822 14 | 15 | # Design ethos 16 | 17 | We will grow to include more native code over time, but for now we are taking the approach of _native shell/web views_. This approach lost favor early in iOS days, but I believe it is a very valid approach these days. It is inspired by how Basecamp does things. Our tech stack is a bit different, but the ideas are the same. 18 | 19 | https://m.signalvnoise.com/basecamp-3-for-ios-hybrid-architecture-afc071589c25 20 | 21 | https://signalvnoise.com/posts/3743-hybrid-sweet-spot-native-navigation-web-content 22 | 23 | https://signalvnoise.com/posts/3766-hybrid-how-we-took-basecamp-multi-platform-with-a-tiny-team 24 | 25 | https://www.youtube.com/watch?v=SWEts0rlezA 26 | 27 | By leveraging `wkwebviews` as much as possible, I think we can make this all pretty awesome and sync up with our web dev work pretty smoothly. And where it makes sense, we can re-implement certain things fully native, or build entirely native features. Life's a journey, not a destination. 28 | 29 | # Contributing 30 | 1. Fork and clone the project. 31 | 2. Build and run the project in XCode. 32 | 3. To enforce code style we're using [SwiftLint](https://github.com/realm/SwiftLint) which is loosely based on [GitHub's Swift Style Guide](https://github.com/github/swift-style-guide). [CodeClimate](https://codeclimate.com) is enabled for this repository, so your pull request build will fail if there are linting errors! 33 | 1. To install, `brew install swiftlint`. 34 | 2. If you are using Xcode, add a new "Run Script Phase" (Xcode project > Build Phases > add New Run Script Phase): 35 | ```bash 36 | if which swiftlint >/dev/null; then 37 | swiftlint 38 | else 39 | echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint" 40 | fi 41 | ``` 42 | This will run on build and show linting errors in Xcode. If you are using a different IDE there are alternative install methods in the [SwiftLint](https://github.com/realm/SwiftLint) docs. 43 | 3. Alternatively you can run `$ swiftlint` in the root directory. 44 | 45 | 46 | Feedback and Pull Requests are welcome! As this is a new and constantly evolving project, please be sure to include unit tests with changes. 47 | 48 | # Thanks for your help!!! 49 | -------------------------------------------------------------------------------- /fastlane/Appfile: -------------------------------------------------------------------------------- 1 | # app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app 2 | # apple_id("[[APPLE_ID]]") # Your Apple email address 3 | 4 | 5 | # For more information about the Appfile, see: 6 | # https://docs.fastlane.tools/advanced/#appfile 7 | -------------------------------------------------------------------------------- /fastlane/Fastfile: -------------------------------------------------------------------------------- 1 | # This file contains the fastlane.tools configuration 2 | # You can find the documentation at https://docs.fastlane.tools 3 | # 4 | # For a list of all available actions, check out 5 | # 6 | # https://docs.fastlane.tools/actions 7 | # 8 | # For a list of all available plugins, check out 9 | # 10 | # https://docs.fastlane.tools/plugins/available-plugins 11 | # 12 | 13 | # Uncomment the line if you want fastlane to automatically update itself 14 | update_fastlane 15 | 16 | default_platform(:ios) 17 | 18 | platform :ios do 19 | desc "TestFlight upload" 20 | lane :beta do 21 | increment_build_number 22 | match(type: "appstore", readonly: true, app_identifier: "to.dev.ios") 23 | gym(scheme: "forem-ios", configuration: "Release", clean: true) 24 | upload_to_testflight(skip_waiting_for_build_processing: true) 25 | end 26 | 27 | desc "Runs all the tests" 28 | lane :test do 29 | run_tests( 30 | scheme: "DEV-Simple", 31 | clean: true, 32 | devices: ["iPhone 11 Pro Max"], 33 | code_coverage: true 34 | ) 35 | end 36 | end 37 | -------------------------------------------------------------------------------- /fastlane/README.md: -------------------------------------------------------------------------------- 1 | fastlane documentation 2 | ================ 3 | # Installation 4 | 5 | Make sure you have the latest version of the Xcode command line tools installed: 6 | 7 | ``` 8 | xcode-select --install 9 | ``` 10 | 11 | Install _fastlane_ using 12 | ``` 13 | [sudo] gem install fastlane -NV 14 | ``` 15 | or alternatively using `brew install fastlane` 16 | 17 | # Available Actions 18 | ## iOS 19 | ### ios beta 20 | ``` 21 | fastlane ios beta 22 | ``` 23 | TestFlight upload 24 | ### ios test 25 | ``` 26 | fastlane ios test 27 | ``` 28 | Runs all the tests 29 | 30 | ---- 31 | 32 | This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. 33 | More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). 34 | The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). 35 | --------------------------------------------------------------------------------