├── .github ├── issue_template.md ├── pull_request_template.md └── stale.yml ├── .gitignore ├── Instabug.json ├── Instabug.podspec ├── LICENSE.md ├── README.md └── Sample ├── Instabug Demo.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── aliamin.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── aliamin.xcuserdatad │ └── xcschemes │ │ ├── Instabug Demo.xcscheme │ │ └── xcschememanagement.plist │ └── hesham.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── Instabug Demo.xcscheme │ └── xcschememanagement.plist ├── Instabug Demo.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── Instabug Demo ├── 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-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ ├── Icon-App-83.5x83.5@2x.png │ │ └── iTunesArtwork@2x.png │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── SettingsTableViewController.swift ├── Support │ ├── UIAlertAction+DefaultAction.swift │ └── UIViewController+DefaultAlertController.swift └── ViewController.swift └── Podfile /.github/issue_template.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | ### Steps to Reproduce the Problem 10 | 11 | ### Expected Behavior 12 | 13 | ### Actual Behavior 14 | 15 | ### Instabug integration code 16 | *Make sure to remove your app token.* 17 | 18 | ### SDK Version 19 | 20 | ### iOS Version 21 | 22 | ### Device Model 23 | 24 | ### [Optional] Project That Reproduces the Issue 25 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## Description of the change 2 | > Description here 3 | ## Checklists 4 | ### Code review 5 | - [ ] This pull request has a descriptive title and information useful to a reviewer. 6 | - [ ] Changes have been reviewed by at least one other engineer -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Configuration for probot-stale - https://github.com/probot/stale 2 | 3 | # Number of days of inactivity before an Issue or Pull Request becomes stale 4 | daysUntilStale: 7 5 | 6 | # Number of days of inactivity before an Issue or Pull Request with the stale label is closed. 7 | # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. 8 | daysUntilClose: 7 9 | 10 | # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) 11 | onlyLabels: [] 12 | 13 | # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable 14 | exemptLabels: 15 | - "Feature Request" 16 | - "WIP" 17 | - "Bug" 18 | 19 | # Label to use when marking as stale 20 | staleLabel: "Inactive" 21 | 22 | # Comment to post when marking as stale. Set to `false` to disable 23 | markComment: > 24 | This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you 25 | for your contributions. 26 | 27 | # Comment to post when closing a stale Issue or Pull Request. 28 | closeComment: > 29 | This issue has been automatically closed due to inactivity. 30 | 31 | # Limit the number of actions per hour, from 1-30. Default is 30 32 | limitPerRun: 30 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Build generated 2 | build/ 3 | DerivedData/ 4 | 5 | ## Various settings 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | 16 | ## Other 17 | *.moved-aside 18 | *.xcuserstate 19 | 20 | Podfile.lock 21 | Pods/ 22 | -------------------------------------------------------------------------------- /Instabug.json: -------------------------------------------------------------------------------- 1 | { 2 | "11.0.3" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.0.3\/archive.zip", 3 | "9.1.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1.1\/Instabug.zip", 4 | "8.0.17" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.17\/Instabug.zip", 5 | "8.0.19" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.19\/Instabug.zip", 6 | "8.0.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.1\/Instabug.zip", 7 | "10.7.3" : "https:\/\/ios-releases.instabug.com\/release\/10.7.3\/archive.zip", 8 | "12.0.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.0.0\/Instabug-XCFramework.zip", 9 | "8.6.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.6.2\/Instabug.zip", 10 | "8.5.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.5.2\/Instabug.zip", 11 | "11.0.2" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.0.2\/archive.zip", 12 | "8.0.12" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.12\/Instabug.zip", 13 | "11.13.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.13.1\/Instabug-XCFramework.zip", 14 | "12.2.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.2.0\/Instabug-XCFramework.zip", 15 | "7.3.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.3\/Instabug.zip", 16 | "7.12" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12\/Instabug.zip", 17 | "8.0.16" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.16\/Instabug.zip", 18 | "12.9.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.9.2\/Instabug-XCFramework.zip", 19 | "13.2.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.2.0\/Instabug-XCFramework.zip", 20 | "8.0.15" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.15\/Instabug.zip", 21 | "7.12.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12.5\/Instabug.zip", 22 | "7.3.10" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.10\/Instabug.zip", 23 | "9.0.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.3\/Instabug.zip", 24 | "9.0.12" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.12\/Instabug.zip", 25 | "7.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.7\/Instabug.zip", 26 | "10.9.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.9.0\/archive.zip", 27 | "7.3.9" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.9\/Instabug.zip", 28 | "8.0.18" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.18\/Instabug.zip", 29 | "7.2.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.1\/Instabug.zip", 30 | "7.3.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.7\/Instabug.zip", 31 | "7.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.4\/Instabug.zip", 32 | "7.14" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.14\/Instabug.zip", 33 | "10.11.4" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.4\/archive.zip", 34 | "11.2.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.2.0\/archive.zip", 35 | "8.0.10" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.10\/Instabug.zip", 36 | "10.4.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.4.0\/Instabug.zip", 37 | "8.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.7\/Instabug.zip", 38 | "11.9.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.9.0\/Instabug-XCFramework.zip", 39 | "11.13.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.13.3\/Instabug-XCFramework.zip", 40 | "13.1.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.1.0\/Instabug-XCFramework.zip", 41 | "11.10.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.10.0\/Instabug-XCFramework.zip", 42 | "8.3.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.3.1\/Instabug.zip", 43 | "10.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.1\/Instabug.zip", 44 | "10.13.1" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.13.1\/archive.zip", 45 | "10.7.5" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.7.5\/archive.zip", 46 | "7.3.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.6\/Instabug.zip", 47 | "11.0.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.0.0\/archive.zip", 48 | "10.11.3" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.3\/archive.zip", 49 | "10.9.3" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.9.3\/archive.zip", 50 | "10.11.2" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.2\/archive.zip", 51 | "10.7.2" : "https:\/\/ios-releases.instabug.com\/release\/10.7.2\/archive.zip", 52 | "7.3.11" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.11\/Instabug.zip", 53 | "7.9.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.9.2\/Instabug.zip", 54 | "8.7.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.7.1\/Instabug.zip", 55 | "7.3.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.2\/Instabug.zip", 56 | "10.11.8" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.8\/archive.zip", 57 | "10.8.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.8.0\/archive.zip", 58 | "7.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.1\/Instabug.zip", 59 | "7.2.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.4\/Instabug.zip", 60 | "10.4.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.4.4\/Instabug.zip", 61 | "11.4.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.4.0\/archive.zip", 62 | "10.11.6" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.6\/archive.zip", 63 | "8.0.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.4\/Instabug.zip", 64 | "9.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0\/Instabug.zip", 65 | "7.10.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.10.1\/Instabug.zip", 66 | "13.0.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.0.3\/Instabug-XCFramework.zip", 67 | "10.7.4" : "https:\/\/ios-releases.instabug.com\/release\/10.7.4\/archive.zip", 68 | "10.5.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.5.1\/Instabug.zip", 69 | "7.2.9" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.9\/Instabug.zip", 70 | "10.11.9" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.9\/archive.zip", 71 | "8.0.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.3\/Instabug.zip", 72 | "10.9.1" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.9.1\/archive.zip", 73 | "10.10.1" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.10.1\/archive.zip", 74 | "8.0.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.2\/Instabug.zip", 75 | "10.4.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.4.1\/Instabug.zip", 76 | "12.3.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.3.0\/Instabug-XCFramework.zip", 77 | "7.10" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.10\/Instabug.zip", 78 | "7.6.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.6.1\/Instabug.zip", 79 | "8.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.6\/Instabug.zip", 80 | "10.1.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.1.1\/Instabug.zip", 81 | "7.3.8" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.8\/Instabug.zip", 82 | "13.0.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.0.5\/Instabug-XCFramework.zip", 83 | "8.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0\/Instabug.zip", 84 | "7.2.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.5\/Instabug.zip", 85 | "14.1.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/14.1.0\/Instabug-XCFramework.zip", 86 | "10.1.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.1.2\/Instabug.zip", 87 | "11.10.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.10.1\/Instabug-XCFramework.zip", 88 | "13.4.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.4.0\/Instabug-XCFramework.zip", 89 | "9.0.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.7\/Instabug.zip", 90 | "14.3.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/14.3.0\/Instabug-XCFramework.zip", 91 | "9.0.11" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.11\/Instabug.zip", 92 | "11.0.1" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.0.1\/archive.zip", 93 | "10.5.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.5.2\/Instabug.zip", 94 | "10.7.1" : "https:\/\/ios-releases.instabug.com\/release\/10.7.1\/archive.zip", 95 | "8.2.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.2.3\/Instabug.zip", 96 | "7.13" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.13\/Instabug.zip", 97 | "7.2.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.7\/Instabug.zip", 98 | "12.4.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.4.0\/Instabug-XCFramework.zip", 99 | "11.1.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.1.0\/archive.zip", 100 | "11.10.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.10.2\/Instabug-XCFramework.zip", 101 | "7.7.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.7.1\/Instabug.zip", 102 | "7.2.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.6\/Instabug.zip", 103 | "8.2.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.2.2\/Instabug.zip", 104 | "7.2.8" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.8\/Instabug.zip", 105 | "7.12.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12.4\/Instabug.zip", 106 | "12.1.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.1.0\/Instabug-XCFramework.zip", 107 | "12.5.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.5.0\/Instabug-XCFramework.zip", 108 | "8.0.20" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.20\/Instabug.zip", 109 | "9.0.13" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.13\/Instabug.zip", 110 | "9.1.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1.4\/Instabug.zip", 111 | "9.1.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1.7\/Instabug.zip", 112 | "9.0.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.5\/Instabug.zip", 113 | "7.3.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.5\/Instabug.zip", 114 | "8.7.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.7.2\/Instabug.zip", 115 | "9.0.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.4\/Instabug.zip", 116 | "11.4.1" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.4.1\/archive.zip", 117 | "7.12.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12.1\/Instabug.zip", 118 | "14.0.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/14.0.0\/Instabug-XCFramework.zip", 119 | "7.12.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12.6\/Instabug.zip", 120 | "11.3.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.3.0\/archive.zip", 121 | "8.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.3\/Instabug.zip", 122 | "8.0.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.7\/Instabug.zip", 123 | "13.3.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.3.0\/Instabug-XCFramework.zip", 124 | "10.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.0\/Instabug.zip", 125 | "12.9.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.9.0\/Instabug-XCFramework.zip", 126 | "7.12.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12.2\/Instabug.zip", 127 | "10.0.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.0.2\/Instabug.zip", 128 | "13.4.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.4.1\/Instabug-XCFramework.zip", 129 | "7.8.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.8.4\/Instabug.zip", 130 | "8.0.8" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.8\/Instabug.zip", 131 | "7.3.14" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.14\/Instabug.zip", 132 | "8.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.5\/Instabug.zip", 133 | "9.0.9" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.9\/Instabug.zip", 134 | "9.1.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1.6\/Instabug.zip", 135 | "9.1.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1.2\/Instabug.zip", 136 | "7.3.12" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.12\/Instabug.zip", 137 | "7.3.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.4\/Instabug.zip", 138 | "15.1.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/15.1.0\/Instabug-XCFramework.zip", 139 | "7.8" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.8\/Instabug.zip", 140 | "10.5.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.5.0\/Instabug.zip", 141 | "8.0.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.6\/Instabug.zip", 142 | "13.4.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.4.2\/Instabug-XCFramework.zip", 143 | "10.11.7" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.7\/archive.zip", 144 | "7.14.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.14.4\/Instabug.zip", 145 | "9.0.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.2\/Instabug.zip", 146 | "7.8.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.8.2\/Instabug.zip", 147 | "9.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1\/Instabug.zip", 148 | "13.0.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.0.0\/Instabug-XCFramework.zip", 149 | "10.0.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.0.1\/Instabug.zip", 150 | "7.3.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.1\/Instabug.zip", 151 | "15.0.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/15.0.1\/Instabug-XCFramework.zip", 152 | "13.4.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.4.3\/Instabug-XCFramework.zip", 153 | "13.1.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/13.1.1\/Instabug-XCFramework.zip", 154 | "7.9.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.9.1\/Instabug.zip", 155 | "7.14.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.14.1\/Instabug.zip", 156 | "7.11.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.11.1\/Instabug.zip", 157 | "10.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.2\/Instabug.zip", 158 | "11.12.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.12.0\/Instabug-XCFramework.zip", 159 | "8.5.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.5.1\/Instabug.zip", 160 | "7.14.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.14.5\/Instabug.zip", 161 | "9.1.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1.3\/Instabug.zip", 162 | "8.4" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.4\/Instabug.zip", 163 | "9.1.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.1.5\/Instabug.zip", 164 | "7.4.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.4.1\/Instabug.zip", 165 | "8.6.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.6.3\/Instabug.zip", 166 | "10.9.2" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.9.2\/archive.zip", 167 | "15.1.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/15.1.1\/Instabug-XCFramework.zip", 168 | "9.0.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.1\/Instabug.zip", 169 | "11.5.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.5.0\/archive.zip", 170 | "10.4.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.4.3\/Instabug.zip", 171 | "8.7.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.7.3\/Instabug.zip", 172 | "10.10.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.10.0\/archive.zip", 173 | "11.14.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.14.0\/Instabug-XCFramework.zip", 174 | "7.11" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.11\/Instabug.zip", 175 | "11.6.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.6.0\/archive.zip", 176 | "8.2.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.2.1\/Instabug.zip", 177 | "10.11.1" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.1\/archive.zip", 178 | "7.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2\/Instabug.zip", 179 | "7.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.6\/Instabug.zip", 180 | "11.7.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/11.7.0\/archive.zip", 181 | "7.14.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.14.2\/Instabug.zip", 182 | "8.0.14" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.14\/Instabug.zip", 183 | "10.4.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.4.2\/Instabug.zip", 184 | "15.0.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/15.0.0\/Instabug-XCFramework.zip", 185 | "10.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.3\/Instabug.zip", 186 | "8.6.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.6.1\/Instabug.zip", 187 | "7.2.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.3\/Instabug.zip", 188 | "8.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.1\/Instabug.zip", 189 | "10.11.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.0\/archive.zip", 190 | "10.11.5" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.11.5\/archive.zip", 191 | "11.9.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/11.9.1\/Instabug-XCFramework.zip", 192 | "12.7.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.7.0\/Instabug-XCFramework.zip", 193 | "9.0.6" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.6\/Instabug.zip", 194 | "7.11.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.11.2\/Instabug.zip", 195 | "7.14.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.14.3\/Instabug.zip", 196 | "9.0.8" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.8\/Instabug.zip", 197 | "7.8.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.8.3\/Instabug.zip", 198 | "7.12.7" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12.7\/Instabug.zip", 199 | "8.0.11" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.11\/Instabug.zip", 200 | "7.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3\/Instabug.zip", 201 | "10.0.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.0.3\/Instabug.zip", 202 | "7.2.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.2.2\/Instabug.zip", 203 | "8.4.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.4.1\/Instabug.zip", 204 | "10.7.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/10.7.0\/Instabug.zip", 205 | "8.2" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.2\/Instabug.zip", 206 | "7.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.5\/Instabug.zip", 207 | "14.2.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/14.2.0\/Instabug-XCFramework.zip", 208 | "7.8.1" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.8.1\/Instabug.zip", 209 | "9.0.10" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/9.0.10\/Instabug.zip", 210 | "7.9" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.9\/Instabug.zip", 211 | "8.0.5" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.5\/Instabug.zip", 212 | "10.13.0" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.13.0\/archive.zip", 213 | "8.0.13" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.13\/Instabug.zip", 214 | "8.0.9" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/8.0.9\/Instabug.zip", 215 | "7.12.3" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.12.3\/Instabug.zip", 216 | "10.8.1" : "https:\/\/ios-releases.instabug.com\/release\/Instabug\/10.8.1\/archive.zip", 217 | "12.6.0" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/12.6.0\/Instabug-XCFramework.zip", 218 | "7.3.13" : "https:\/\/github.com\/Instabug\/Instabug-iOS\/releases\/download\/7.3.13\/Instabug.zip" 219 | } -------------------------------------------------------------------------------- /Instabug.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "Instabug" 3 | s.version = "15.1.1" 4 | s.summary = "Bug reporting for mobile apps. Learn more at http://instabug.com" 5 | s.homepage = "http://instabug.com" 6 | s.license = { :type => 'Commercial', :file => 'LICENSE.md' } 7 | s.author = { "Instabug" => "contactus@instabug.com" } 8 | s.ios.deployment_target = '13.0' 9 | s.tvos.deployment_target = '13.0' 10 | s.source = { :http => 'https://github.com/Instabug/Instabug-iOS/releases/download/15.1.1/Instabug-XCFramework.zip' } 11 | s.ios.source_files = 'InstabugSDK.xcframework/ios-arm64/InstabugSDK.framework/Headers/*.{h}' 12 | s.tvos.source_files = 'InstabugSDK.xcframework/tvos-arm64/InstabugSDK.framework/Headers/*.{h}' 13 | s.vendored_frameworks = 'InstabugSDK.xcframework' 14 | s.requires_arc = true 15 | s.library = 'z' 16 | s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/Instabug/"' } 17 | end -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (C) 2014 Instabug Permission is hereby granted to use this framework as is, modification are not allowed. 2 | All rights reserved. 3 | 4 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 5 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 6 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 7 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 8 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 9 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 10 | THE SOFTWARE. 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Instabug iOS SDK 2 | ![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Instabug.svg) 3 | ![Twitter](https://img.shields.io/badge/twitter-@Instabug-blue.svg) 4 | 5 | Instabug is an in-app feedback and bug reporting tool for mobile apps. With just a simple shake, your users or beta testers can [report bugs](https://instabug.com/bug-reporting) or send in-app feedback and the SDK will capture an environment snapshot of your user's device including all console logs, [server-side network requests](https://instabug.com/network-logging) and bug reproduction steps compiling all these details in one organised dashboard to help you debug and fix bugs faster. 6 | 7 | Instabug also provides you with a [reliable crash reporter](https://instabug.com/crash-reporting) that automatically captures a detailed report of the running environment, the different threads’ states, [the steps to reproduce the crash](https://instabug.com/user-steps), and the network request logs. All the data is captured automatically with no need for breadcrumbs, and you can always [reply back to your users](https://instabug.com/in-app-chat) and they will receive your messages within the app. 8 | 9 | For more info, visit [Instabug.com](https://www.instabug.com). 10 | 11 | ## Installation 12 | 13 | ### CocoaPods 14 | 15 | To integrate Instabug into your Xcode project using [CocoaPods](https://cocoapods.org), add it to your `Podfile`: 16 | 17 | ```ruby 18 | pod 'Instabug' 19 | ``` 20 | 21 | Then, run the following command: 22 | 23 | ```bash 24 | $ pod install 25 | ``` 26 | 27 | ### Carthage 28 | 29 | To integrate Instabug into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), add it to your `Cartfile`: 30 | 31 | ``` 32 | binary "https://raw.githubusercontent.com/Instabug/Instabug-iOS/master/Instabug.json" 33 | ``` 34 | 35 | Then, run the following command: 36 | 37 | ```bash 38 | $ carthage update 39 | ``` 40 | 41 | Then drag Instabug.framework into your Xcode project. 42 | 43 | ### Swift Package Manager 44 | 45 | To integrate Instabug into your Xcode project using SPM, please refer to https://github.com/Instabug/Instabug-SP 46 | 47 | ### Manually 48 | 49 | Follow these steps to integrate the Instabug SDK into your iOS project: 50 | 51 | 1. **Download the Latest Instabug SDK Release:** 52 | - [Go to Instabug SDK latest release](https://github.com/Instabug/Instabug-iOS/releases/latest) 53 | - Click on `Instabug-XCFramework.zip` to download the file. 54 | 55 | 2. **Extract the Zip File:** 56 | - Unzip the downloaded file to reveal the `Instabug.xcframework`. 57 | 58 | 3. **Add the Framework to Your Project:** 59 | - Open your project in Xcode. 60 | - Navigate to your project's **General** tab. 61 | - Scroll down to the **Frameworks, Libraries, and Embedded Content** section. 62 | - Click the `+` button, then select **Add Files**. 63 | - Choose the `Instabug.xcframework` from the extracted folder, then click **Open**. 64 | 65 | 4. **Set Embed Option:** 66 | - In the **Embed** column next to `Instabug.xcframework`, select `Embed Without Signing`. 67 | 68 | ## Usage 69 | 70 | 1. Import Instabug framework header in your app delegate 71 | 72 | ```swift 73 | // Swift 74 | import Instabug 75 | ``` 76 | 77 | ```objective-c 78 | // Objective-C 79 | #import 80 | ``` 81 | 82 | 2. Add the following to your app delegate's application:didFinishLaunchingWithOptions: method. 83 | 84 | ```swift 85 | // Swift 86 | Instabug.start(withToken: <#app token#>, invocationEvents: .shake) 87 | ``` 88 | ```objective-c 89 | // Objective-C 90 | [Instabug startWithToken:<#app token#> invocationEvents:IBGInvocationEventShake]; 91 | ``` 92 | Make sure to replace `app_token` with your application token. Find it [here](https://instabug.com/app/sdk/). 93 | 94 | ## Notes 95 | Instabug needs access to the microphone and photo library to be able to let users add audio and video attachments. Starting from iOS 10, apps that don’t provide a usage description for those 2 permissions would be rejected when submitted to the App Store. 96 | 97 | For your app not to be rejected, you’ll need to add the following 2 keys to your app’s info.plist file with text explaining to the user why those permissions are needed: 98 | 99 | * `NSMicrophoneUsageDescription` 100 | * `NSPhotoLibraryUsageDescription` 101 | 102 | If your app doesn’t already access the microphone or photo library, we recommend using a usage description like: 103 | 104 | * "`` needs access to the microphone to be able to attach voice notes." 105 | * "`` needs access to your photo library for you to be able to attach images." 106 | 107 | **The permission alert for accessing the microphone/photo library will NOT appear unless users attempt to attach a voice note/photo while using Instabug.** 108 | 109 | ## More 110 | 111 | You can also check out our [API Reference](https://docs.instabug.com/docs/ios-overview) for more detailed information about our SDK. 112 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 54B0118C1D901660002AF597 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54B0118B1D901660002AF597 /* AppDelegate.swift */; }; 11 | 54B0118F1D901660002AF597 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54B0118E1D901660002AF597 /* ViewController.swift */; }; 12 | 54B011921D901660002AF597 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 54B011901D901660002AF597 /* Main.storyboard */; }; 13 | 54B011941D901660002AF597 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 54B011931D901660002AF597 /* Assets.xcassets */; }; 14 | 54B011971D901660002AF597 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 54B011951D901660002AF597 /* LaunchScreen.storyboard */; }; 15 | 54B011A81D9018A4002AF597 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B011A71D9018A4002AF597 /* AVFoundation.framework */; }; 16 | 54B011AA1D9018AE002AF597 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B011A91D9018AE002AF597 /* CoreTelephony.framework */; }; 17 | 54B011AC1D9018B5002AF597 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B011AB1D9018B5002AF597 /* CoreMotion.framework */; }; 18 | 54B011AE1D9018BD002AF597 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B011AD1D9018BD002AF597 /* SystemConfiguration.framework */; }; 19 | 54B011B01D9018C3002AF597 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B011AF1D9018C3002AF597 /* CoreGraphics.framework */; }; 20 | 54B011B21D9018CB002AF597 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B011B11D9018CB002AF597 /* UIKit.framework */; }; 21 | 54B011BC1D902CA9002AF597 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 54B011BB1D902CA9002AF597 /* CoreMedia.framework */; }; 22 | 54B011C11D9110F5002AF597 /* UIViewController+DefaultAlertController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54B011C01D9110F5002AF597 /* UIViewController+DefaultAlertController.swift */; }; 23 | 54B011C41D911199002AF597 /* UIAlertAction+DefaultAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54B011C31D911199002AF597 /* UIAlertAction+DefaultAction.swift */; }; 24 | 71EB748D20EB9B0300C3918F /* SettingsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71EB748C20EB9B0300C3918F /* SettingsTableViewController.swift */; }; 25 | DF7521262B991D851FC8327E /* Pods_Instabug_Demo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A8BA50C54961C153E2212AD9 /* Pods_Instabug_Demo.framework */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | 54B011841D901660002AF597 /* Instabug Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Instabug Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 30 | 54B0118B1D901660002AF597 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 31 | 54B0118E1D901660002AF597 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 32 | 54B011911D901660002AF597 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 33 | 54B011931D901660002AF597 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 34 | 54B011961D901660002AF597 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 35 | 54B011981D901660002AF597 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 54B011A71D9018A4002AF597 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 37 | 54B011A91D9018AE002AF597 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; 38 | 54B011AB1D9018B5002AF597 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; }; 39 | 54B011AD1D9018BD002AF597 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 40 | 54B011AF1D9018C3002AF597 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 41 | 54B011B11D9018CB002AF597 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 42 | 54B011BB1D902CA9002AF597 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; }; 43 | 54B011C01D9110F5002AF597 /* UIViewController+DefaultAlertController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIViewController+DefaultAlertController.swift"; sourceTree = ""; }; 44 | 54B011C31D911199002AF597 /* UIAlertAction+DefaultAction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIAlertAction+DefaultAction.swift"; sourceTree = ""; }; 45 | 71A1D48C20FF7DF70082B09F /* Instabug.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Instabug.framework; path = "../../../Downloads/Instabug/Instabug-SDK/Instabug.framework"; sourceTree = ""; }; 46 | 71A1D49E20FF88040082B09F /* Instabug.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Instabug.framework; path = ../../Instabug.framework; sourceTree = ""; }; 47 | 71EB748C20EB9B0300C3918F /* SettingsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsTableViewController.swift; sourceTree = ""; }; 48 | 9CF172BA0D62F8CCA2DA6EC2 /* Pods-Instabug Demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Instabug Demo.debug.xcconfig"; path = "Target Support Files/Pods-Instabug Demo/Pods-Instabug Demo.debug.xcconfig"; sourceTree = ""; }; 49 | A8BA50C54961C153E2212AD9 /* Pods_Instabug_Demo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Instabug_Demo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | BEB34BCB094B980708CC594C /* Pods-Instabug Demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Instabug Demo.release.xcconfig"; path = "Target Support Files/Pods-Instabug Demo/Pods-Instabug Demo.release.xcconfig"; sourceTree = ""; }; 51 | /* End PBXFileReference section */ 52 | 53 | /* Begin PBXFrameworksBuildPhase section */ 54 | 54B011811D901660002AF597 /* Frameworks */ = { 55 | isa = PBXFrameworksBuildPhase; 56 | buildActionMask = 2147483647; 57 | files = ( 58 | 54B011BC1D902CA9002AF597 /* CoreMedia.framework in Frameworks */, 59 | 54B011B21D9018CB002AF597 /* UIKit.framework in Frameworks */, 60 | 54B011B01D9018C3002AF597 /* CoreGraphics.framework in Frameworks */, 61 | 54B011AE1D9018BD002AF597 /* SystemConfiguration.framework in Frameworks */, 62 | 54B011AC1D9018B5002AF597 /* CoreMotion.framework in Frameworks */, 63 | 54B011AA1D9018AE002AF597 /* CoreTelephony.framework in Frameworks */, 64 | 54B011A81D9018A4002AF597 /* AVFoundation.framework in Frameworks */, 65 | DF7521262B991D851FC8327E /* Pods_Instabug_Demo.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 541FA2741DC888600037AA01 /* Instabug */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 71A1D49E20FF88040082B09F /* Instabug.framework */, 76 | ); 77 | name = Instabug; 78 | sourceTree = ""; 79 | }; 80 | 54B0117B1D901660002AF597 = { 81 | isa = PBXGroup; 82 | children = ( 83 | 54B011861D901660002AF597 /* Instabug Demo */, 84 | 54B011851D901660002AF597 /* Products */, 85 | 54B011A61D9018A4002AF597 /* Frameworks */, 86 | C6633F015D1ABC239B08DFBE /* Pods */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 54B011851D901660002AF597 /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 54B011841D901660002AF597 /* Instabug Demo.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 54B011861D901660002AF597 /* Instabug Demo */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 541FA2741DC888600037AA01 /* Instabug */, 102 | 54B011BE1D9110BD002AF597 /* Support */, 103 | 54B0118B1D901660002AF597 /* AppDelegate.swift */, 104 | 54B0118E1D901660002AF597 /* ViewController.swift */, 105 | 71EB748C20EB9B0300C3918F /* SettingsTableViewController.swift */, 106 | 54B011901D901660002AF597 /* Main.storyboard */, 107 | 54B011931D901660002AF597 /* Assets.xcassets */, 108 | 54B011951D901660002AF597 /* LaunchScreen.storyboard */, 109 | 54B011981D901660002AF597 /* Info.plist */, 110 | 54B011871D901660002AF597 /* Supporting Files */, 111 | ); 112 | path = "Instabug Demo"; 113 | sourceTree = ""; 114 | }; 115 | 54B011871D901660002AF597 /* Supporting Files */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | 54B011A61D9018A4002AF597 /* Frameworks */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 71A1D48C20FF7DF70082B09F /* Instabug.framework */, 126 | 54B011BB1D902CA9002AF597 /* CoreMedia.framework */, 127 | 54B011B11D9018CB002AF597 /* UIKit.framework */, 128 | 54B011AF1D9018C3002AF597 /* CoreGraphics.framework */, 129 | 54B011AD1D9018BD002AF597 /* SystemConfiguration.framework */, 130 | 54B011AB1D9018B5002AF597 /* CoreMotion.framework */, 131 | 54B011A91D9018AE002AF597 /* CoreTelephony.framework */, 132 | 54B011A71D9018A4002AF597 /* AVFoundation.framework */, 133 | A8BA50C54961C153E2212AD9 /* Pods_Instabug_Demo.framework */, 134 | ); 135 | name = Frameworks; 136 | sourceTree = ""; 137 | }; 138 | 54B011BE1D9110BD002AF597 /* Support */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 54B011C01D9110F5002AF597 /* UIViewController+DefaultAlertController.swift */, 142 | 54B011C31D911199002AF597 /* UIAlertAction+DefaultAction.swift */, 143 | ); 144 | path = Support; 145 | sourceTree = ""; 146 | }; 147 | C6633F015D1ABC239B08DFBE /* Pods */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 9CF172BA0D62F8CCA2DA6EC2 /* Pods-Instabug Demo.debug.xcconfig */, 151 | BEB34BCB094B980708CC594C /* Pods-Instabug Demo.release.xcconfig */, 152 | ); 153 | path = Pods; 154 | sourceTree = ""; 155 | }; 156 | /* End PBXGroup section */ 157 | 158 | /* Begin PBXNativeTarget section */ 159 | 54B011831D901660002AF597 /* Instabug Demo */ = { 160 | isa = PBXNativeTarget; 161 | buildConfigurationList = 54B0119B1D901660002AF597 /* Build configuration list for PBXNativeTarget "Instabug Demo" */; 162 | buildPhases = ( 163 | DC9D39627264807213C5BD60 /* [CP] Check Pods Manifest.lock */, 164 | 54B011801D901660002AF597 /* Sources */, 165 | 54B011811D901660002AF597 /* Frameworks */, 166 | 54B011821D901660002AF597 /* Resources */, 167 | A6D52481D73FA7AD8AC1EE89 /* [CP] Embed Pods Frameworks */, 168 | ); 169 | buildRules = ( 170 | ); 171 | dependencies = ( 172 | ); 173 | name = "Instabug Demo"; 174 | productName = "Instabug Demo"; 175 | productReference = 54B011841D901660002AF597 /* Instabug Demo.app */; 176 | productType = "com.apple.product-type.application"; 177 | }; 178 | /* End PBXNativeTarget section */ 179 | 180 | /* Begin PBXProject section */ 181 | 54B0117C1D901660002AF597 /* Project object */ = { 182 | isa = PBXProject; 183 | attributes = { 184 | LastUpgradeCheck = 1200; 185 | ORGANIZATIONNAME = Instabug; 186 | TargetAttributes = { 187 | 54B011831D901660002AF597 = { 188 | CreatedOnToolsVersion = 8.0; 189 | LastSwiftMigration = 1200; 190 | ProvisioningStyle = Automatic; 191 | }; 192 | }; 193 | }; 194 | buildConfigurationList = 54B0117F1D901660002AF597 /* Build configuration list for PBXProject "Instabug Demo" */; 195 | compatibilityVersion = "Xcode 3.2"; 196 | developmentRegion = English; 197 | hasScannedForEncodings = 0; 198 | knownRegions = ( 199 | English, 200 | en, 201 | Base, 202 | ); 203 | mainGroup = 54B0117B1D901660002AF597; 204 | productRefGroup = 54B011851D901660002AF597 /* Products */; 205 | projectDirPath = ""; 206 | projectRoot = ""; 207 | targets = ( 208 | 54B011831D901660002AF597 /* Instabug Demo */, 209 | ); 210 | }; 211 | /* End PBXProject section */ 212 | 213 | /* Begin PBXResourcesBuildPhase section */ 214 | 54B011821D901660002AF597 /* Resources */ = { 215 | isa = PBXResourcesBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | 54B011971D901660002AF597 /* LaunchScreen.storyboard in Resources */, 219 | 54B011941D901660002AF597 /* Assets.xcassets in Resources */, 220 | 54B011921D901660002AF597 /* Main.storyboard in Resources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | /* End PBXResourcesBuildPhase section */ 225 | 226 | /* Begin PBXShellScriptBuildPhase section */ 227 | A6D52481D73FA7AD8AC1EE89 /* [CP] Embed Pods Frameworks */ = { 228 | isa = PBXShellScriptBuildPhase; 229 | buildActionMask = 2147483647; 230 | files = ( 231 | ); 232 | inputPaths = ( 233 | "${PODS_ROOT}/Target Support Files/Pods-Instabug Demo/Pods-Instabug Demo-frameworks.sh", 234 | "${PODS_XCFRAMEWORKS_BUILD_DIR}/Instabug/Instabug.framework/Instabug", 235 | ); 236 | name = "[CP] Embed Pods Frameworks"; 237 | outputPaths = ( 238 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework", 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | shellPath = /bin/sh; 242 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Instabug Demo/Pods-Instabug Demo-frameworks.sh\"\n"; 243 | showEnvVarsInLog = 0; 244 | }; 245 | DC9D39627264807213C5BD60 /* [CP] Check Pods Manifest.lock */ = { 246 | isa = PBXShellScriptBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | ); 250 | inputFileListPaths = ( 251 | ); 252 | inputPaths = ( 253 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 254 | "${PODS_ROOT}/Manifest.lock", 255 | ); 256 | name = "[CP] Check Pods Manifest.lock"; 257 | outputFileListPaths = ( 258 | ); 259 | outputPaths = ( 260 | "$(DERIVED_FILE_DIR)/Pods-Instabug Demo-checkManifestLockResult.txt", 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | shellPath = /bin/sh; 264 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 265 | showEnvVarsInLog = 0; 266 | }; 267 | /* End PBXShellScriptBuildPhase section */ 268 | 269 | /* Begin PBXSourcesBuildPhase section */ 270 | 54B011801D901660002AF597 /* Sources */ = { 271 | isa = PBXSourcesBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | 54B011C41D911199002AF597 /* UIAlertAction+DefaultAction.swift in Sources */, 275 | 71EB748D20EB9B0300C3918F /* SettingsTableViewController.swift in Sources */, 276 | 54B0118F1D901660002AF597 /* ViewController.swift in Sources */, 277 | 54B011C11D9110F5002AF597 /* UIViewController+DefaultAlertController.swift in Sources */, 278 | 54B0118C1D901660002AF597 /* AppDelegate.swift in Sources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | /* End PBXSourcesBuildPhase section */ 283 | 284 | /* Begin PBXVariantGroup section */ 285 | 54B011901D901660002AF597 /* Main.storyboard */ = { 286 | isa = PBXVariantGroup; 287 | children = ( 288 | 54B011911D901660002AF597 /* Base */, 289 | ); 290 | name = Main.storyboard; 291 | sourceTree = ""; 292 | }; 293 | 54B011951D901660002AF597 /* LaunchScreen.storyboard */ = { 294 | isa = PBXVariantGroup; 295 | children = ( 296 | 54B011961D901660002AF597 /* Base */, 297 | ); 298 | name = LaunchScreen.storyboard; 299 | sourceTree = ""; 300 | }; 301 | /* End PBXVariantGroup section */ 302 | 303 | /* Begin XCBuildConfiguration section */ 304 | 54B011991D901660002AF597 /* Debug */ = { 305 | isa = XCBuildConfiguration; 306 | buildSettings = { 307 | ALWAYS_SEARCH_USER_PATHS = NO; 308 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 311 | CLANG_CXX_LIBRARY = "libc++"; 312 | CLANG_ENABLE_MODULES = YES; 313 | CLANG_ENABLE_OBJC_ARC = YES; 314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_COMMA = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 320 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 321 | CLANG_WARN_EMPTY_BODY = YES; 322 | CLANG_WARN_ENUM_CONVERSION = YES; 323 | CLANG_WARN_INFINITE_RECURSION = YES; 324 | CLANG_WARN_INT_CONVERSION = YES; 325 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 326 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 327 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 328 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 329 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 330 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 331 | CLANG_WARN_STRICT_PROTOTYPES = YES; 332 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 333 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 334 | CLANG_WARN_UNREACHABLE_CODE = YES; 335 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 336 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 337 | COPY_PHASE_STRIP = NO; 338 | DEBUG_INFORMATION_FORMAT = dwarf; 339 | ENABLE_STRICT_OBJC_MSGSEND = YES; 340 | ENABLE_TESTABILITY = YES; 341 | GCC_C_LANGUAGE_STANDARD = gnu99; 342 | GCC_DYNAMIC_NO_PIC = NO; 343 | GCC_NO_COMMON_BLOCKS = YES; 344 | GCC_OPTIMIZATION_LEVEL = 0; 345 | GCC_PREPROCESSOR_DEFINITIONS = ( 346 | "DEBUG=1", 347 | "$(inherited)", 348 | ); 349 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 350 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 351 | GCC_WARN_UNDECLARED_SELECTOR = YES; 352 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 353 | GCC_WARN_UNUSED_FUNCTION = YES; 354 | GCC_WARN_UNUSED_VARIABLE = YES; 355 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 356 | MTL_ENABLE_DEBUG_INFO = YES; 357 | ONLY_ACTIVE_ARCH = YES; 358 | SDKROOT = iphoneos; 359 | SWIFT_VERSION = 4.2; 360 | TARGETED_DEVICE_FAMILY = "1,2"; 361 | }; 362 | name = Debug; 363 | }; 364 | 54B0119A1D901660002AF597 /* Release */ = { 365 | isa = XCBuildConfiguration; 366 | buildSettings = { 367 | ALWAYS_SEARCH_USER_PATHS = NO; 368 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 381 | CLANG_WARN_EMPTY_BODY = YES; 382 | CLANG_WARN_ENUM_CONVERSION = YES; 383 | CLANG_WARN_INFINITE_RECURSION = YES; 384 | CLANG_WARN_INT_CONVERSION = YES; 385 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 386 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 387 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 388 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 389 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 390 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 391 | CLANG_WARN_STRICT_PROTOTYPES = YES; 392 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 393 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 394 | CLANG_WARN_UNREACHABLE_CODE = YES; 395 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 396 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 397 | COPY_PHASE_STRIP = NO; 398 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 399 | ENABLE_NS_ASSERTIONS = NO; 400 | ENABLE_STRICT_OBJC_MSGSEND = YES; 401 | GCC_C_LANGUAGE_STANDARD = gnu99; 402 | GCC_NO_COMMON_BLOCKS = YES; 403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 404 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 405 | GCC_WARN_UNDECLARED_SELECTOR = YES; 406 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 407 | GCC_WARN_UNUSED_FUNCTION = YES; 408 | GCC_WARN_UNUSED_VARIABLE = YES; 409 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 410 | MTL_ENABLE_DEBUG_INFO = NO; 411 | SDKROOT = iphoneos; 412 | SWIFT_COMPILATION_MODE = wholemodule; 413 | SWIFT_VERSION = 4.2; 414 | TARGETED_DEVICE_FAMILY = "1,2"; 415 | VALIDATE_PRODUCT = YES; 416 | }; 417 | name = Release; 418 | }; 419 | 54B0119C1D901660002AF597 /* Debug */ = { 420 | isa = XCBuildConfiguration; 421 | baseConfigurationReference = 9CF172BA0D62F8CCA2DA6EC2 /* Pods-Instabug Demo.debug.xcconfig */; 422 | buildSettings = { 423 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 424 | DEVELOPMENT_TEAM = ""; 425 | FRAMEWORK_SEARCH_PATHS = ( 426 | "$(inherited)", 427 | "$(SRCROOT)/../", 428 | "$(PROJECT_DIR)/Instabug\\ Demo", 429 | "$(PROJECT_DIR)/Instabug\\ Demo", 430 | "$(PROJECT_DIR)", 431 | ); 432 | INFOPLIST_FILE = "Instabug Demo/Info.plist"; 433 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 434 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 435 | PRODUCT_BUNDLE_IDENTIFIER = "com.instabug.demo.Instabug-Demo"; 436 | PRODUCT_NAME = "$(TARGET_NAME)"; 437 | SWIFT_VERSION = 5.0; 438 | }; 439 | name = Debug; 440 | }; 441 | 54B0119D1D901660002AF597 /* Release */ = { 442 | isa = XCBuildConfiguration; 443 | baseConfigurationReference = BEB34BCB094B980708CC594C /* Pods-Instabug Demo.release.xcconfig */; 444 | buildSettings = { 445 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 446 | DEVELOPMENT_TEAM = ""; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(SRCROOT)/../", 450 | "$(PROJECT_DIR)/Instabug\\ Demo", 451 | "$(PROJECT_DIR)/Instabug\\ Demo", 452 | "$(PROJECT_DIR)", 453 | ); 454 | INFOPLIST_FILE = "Instabug Demo/Info.plist"; 455 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | PRODUCT_BUNDLE_IDENTIFIER = "com.instabug.demo.Instabug-Demo"; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_VERSION = 5.0; 460 | }; 461 | name = Release; 462 | }; 463 | /* End XCBuildConfiguration section */ 464 | 465 | /* Begin XCConfigurationList section */ 466 | 54B0117F1D901660002AF597 /* Build configuration list for PBXProject "Instabug Demo" */ = { 467 | isa = XCConfigurationList; 468 | buildConfigurations = ( 469 | 54B011991D901660002AF597 /* Debug */, 470 | 54B0119A1D901660002AF597 /* Release */, 471 | ); 472 | defaultConfigurationIsVisible = 0; 473 | defaultConfigurationName = Release; 474 | }; 475 | 54B0119B1D901660002AF597 /* Build configuration list for PBXNativeTarget "Instabug Demo" */ = { 476 | isa = XCConfigurationList; 477 | buildConfigurations = ( 478 | 54B0119C1D901660002AF597 /* Debug */, 479 | 54B0119D1D901660002AF597 /* Release */, 480 | ); 481 | defaultConfigurationIsVisible = 0; 482 | defaultConfigurationName = Release; 483 | }; 484 | /* End XCConfigurationList section */ 485 | }; 486 | rootObject = 54B0117C1D901660002AF597 /* Project object */; 487 | } 488 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/project.xcworkspace/xcuserdata/aliamin.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo.xcodeproj/project.xcworkspace/xcuserdata/aliamin.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/xcuserdata/aliamin.xcuserdatad/xcschemes/Instabug Demo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/xcuserdata/aliamin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Instabug Demo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 54B011831D901660002AF597 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/xcuserdata/hesham.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/xcuserdata/hesham.xcuserdatad/xcschemes/Instabug Demo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcodeproj/xcuserdata/hesham.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Instabug Demo.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 54B011831D901660002AF597 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Sample/Instabug Demo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // AppDelegate.swift 2 | // Instabug Demo 3 | // 4 | // Copyright © 2016 Instabug. All rights reserved. 5 | // 6 | import Instabug 7 | 8 | @UIApplicationMain 9 | class AppDelegate: UIResponder, UIApplicationDelegate { 10 | 11 | var window: UIWindow? 12 | let appToken = <#Your token here#> 13 | 14 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { 15 | Instabug.start(withToken: appToken, invocationEvents: .floatingButton) 16 | return true 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/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" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "ItunesArtwork@2x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Instabug/Instabug-iOS/db0ac5e58000fd030eb820db2ea54390416c2c1d/Sample/Instabug Demo/Assets.xcassets/AppIcon.appiconset/iTunesArtwork@2x.png -------------------------------------------------------------------------------- /Sample/Instabug Demo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Sample/Instabug Demo/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 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/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 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | NSMicrophoneUsageDescription 28 | Used for video recording 29 | NSPhotoLibraryUsageDescription 30 | Used for attaching images from gallery 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/SettingsTableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SettingsTableViewController.swift 3 | // Instabug Demo 4 | // 5 | // Created by Aly Yakan on 7/3/18. 6 | // Copyright © 2018 Instabug. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Instabug 11 | 12 | class SettingsTableViewController: UITableViewController { 13 | private var items = [String]() 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | items = ["Change Invocation Event", "Change Theme", "Set Primary Color"] 18 | } 19 | 20 | // MARK: - Table view data source 21 | 22 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 23 | return items.count 24 | } 25 | 26 | 27 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 28 | let cell: UITableViewCell? = tableView.dequeueReusableCell(withIdentifier: "SettingsTableViewCell", for: indexPath) 29 | cell?.textLabel?.text = items[indexPath.row] 30 | cell?.textLabel?.font = UIFont.systemFont(ofSize: 15, weight: .light) 31 | if let aCell = cell { 32 | return aCell 33 | } 34 | return UITableViewCell() 35 | } 36 | 37 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 38 | if indexPath.row == 0 { 39 | showInvocationEventsActionSheet() 40 | } else if indexPath.row == 1 { 41 | showThemesActionSheet() 42 | } else if indexPath.row == 2 { 43 | showPrimaryColorSelectorActionSheet() 44 | } 45 | } 46 | 47 | // MARK: - Helpers 48 | 49 | func showInvocationEventsActionSheet() { 50 | 51 | let shakeAction = UIAlertAction.ibg_action(withTitle: "Shake", handler: { action in 52 | BugReporting.invocationEvents = [.shake] 53 | }) 54 | 55 | let swipeAction = UIAlertAction.ibg_action(withTitle: "Swipe", handler: { action in 56 | BugReporting.invocationEvents = [.twoFingersSwipeLeft] 57 | }) 58 | 59 | let screenshotAction = UIAlertAction.ibg_action(withTitle: "Screenshot", handler: { action in 60 | BugReporting.invocationEvents = [.screenshot] 61 | }) 62 | 63 | let floatingButtonAction = UIAlertAction.ibg_action(withTitle: "Floating button", handler: { action in 64 | BugReporting.invocationEvents = [.floatingButton] 65 | }) 66 | 67 | ibg_showAlert(withTitle: "Invocation Event", 68 | message: "Select an invocation event", 69 | actions: [shakeAction, swipeAction, screenshotAction, floatingButtonAction]) 70 | } 71 | 72 | func showThemesActionSheet() { 73 | let lightAction = UIAlertAction.ibg_action(withTitle: "Light", handler: { action in 74 | Instabug.setColorTheme(.light) 75 | }) 76 | 77 | let darkAction = UIAlertAction.ibg_action(withTitle: "Dark", handler: { action in 78 | Instabug.setColorTheme(.dark) 79 | }) 80 | 81 | ibg_showAlert(withTitle: "Theme", message: "Select a theme", actions: [lightAction, darkAction]) 82 | } 83 | 84 | func showPrimaryColorSelectorActionSheet() { 85 | let redColor = UIColor(red: 250.0 / 255.0, green: 38.0 / 255.0, blue: 22.0 / 255.0, alpha: 1.0) 86 | let greenColor = UIColor(red: 27.0 / 255.0, green: 128.0 / 255.0, blue: 18.0 / 255.0, alpha: 1.0) 87 | let blueColor = UIColor(red: 51.0 / 255.0, green: 87.0 / 255.0, blue: 245.0 / 255.0, alpha: 1.0) 88 | let redAction = UIAlertAction.ibg_action(withTitle: "Red", handler: { action in 89 | Instabug.tintColor = redColor 90 | }) 91 | let greenAction = UIAlertAction.ibg_action(withTitle: "Green", handler: { action in 92 | Instabug.tintColor = greenColor 93 | }) 94 | let blueAction = UIAlertAction.ibg_action(withTitle: "Blue", handler: { action in 95 | Instabug.tintColor = blueColor 96 | }) 97 | ibg_showAlert(withTitle: "Select Primary Color", 98 | message: "Select a color to set as the primary color of the SDK", 99 | actions: [redAction, greenAction, blueAction]) 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/Support/UIAlertAction+DefaultAction.swift: -------------------------------------------------------------------------------- 1 | // UIAlertAction+DefaultAction.m 2 | // Instabug Demo 3 | // 4 | // Copyright © 2016 Instabug. All rights reserved. 5 | // 6 | 7 | import UIKit 8 | 9 | extension UIAlertAction { 10 | static func ibg_action(withTitle title: String?, 11 | handler: @escaping (_ action: UIAlertAction?) -> Void) -> UIAlertAction { 12 | let action = UIAlertAction(title: title, style: .default, handler: handler) 13 | return action 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/Support/UIViewController+DefaultAlertController.swift: -------------------------------------------------------------------------------- 1 | // UIViewController+DefaultAlertController.m 2 | // Instabug Demo 3 | // 4 | // Copyright © 2016 Instabug. All rights reserved. 5 | // 6 | 7 | import UIKit 8 | 9 | extension UIViewController { 10 | func ibg_showAlert(withTitle title: String?, message: String?, actions: [UIAlertAction]?) { 11 | let alertController = UIAlertController(title: title, message: message, preferredStyle: .actionSheet) 12 | for action: UIAlertAction? in actions ?? [UIAlertAction?]() { 13 | if let anAction = action { 14 | alertController.addAction(anAction) 15 | } 16 | } 17 | let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) 18 | alertController.addAction(cancelAction) 19 | present(alertController, animated: true) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Sample/Instabug Demo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // The converted code is limited to 4 KB. 2 | // Upgrade your plan to remove this limitation. 3 | // 4 | // Converted to Swift 4 by Swiftify v4.1.6751 - https://objectivec2swift.com/ 5 | // 6 | // ViewController.m 7 | // Instabug Demo 8 | // 9 | // Copyright © 2016 Instabug. All rights reserved. 10 | // 11 | import Instabug 12 | 13 | class ViewController: UITableViewController { 14 | private var items = [String]() 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | items = ["Show Instabug", "Show intro message", "Crash me", "Show NPS Survey", "Show Multiple Question Survey", "Show Feature Requests", "Settings"] 19 | executeHelloWorldRequest() 20 | } 21 | 22 | // MARK: - UITableViewDataSource 23 | 24 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 25 | return items.count 26 | } 27 | 28 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 29 | let cell: UITableViewCell? = tableView.dequeueReusableCell(withIdentifier: "TableViewCellIdentifier", for: indexPath) 30 | cell?.textLabel?.text = items[indexPath.row] 31 | cell?.textLabel?.font = UIFont.systemFont(ofSize: 15, weight: .light) 32 | if indexPath.row == 6 { 33 | cell?.accessoryType = .disclosureIndicator 34 | } 35 | if let aCell = cell { 36 | return aCell 37 | } 38 | return UITableViewCell() 39 | } 40 | 41 | // MARK: - UITableViewDelegate 42 | 43 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 44 | if indexPath.row == 0 { 45 | Instabug.show() 46 | } else if indexPath.row == 1 { 47 | Instabug.showWelcomeMessage(with: .beta) 48 | } else if indexPath.row == 2 { 49 | crashMe() 50 | } else if indexPath.row == 3 { 51 | Surveys.showSurvey(withToken: "WTMvHW4ZQwQjsVCY9gsIgA") 52 | } else if indexPath.row == 4 { 53 | Surveys.showSurvey(withToken: "FeOS11wGXcuYgIukm4kFXw") 54 | } else if indexPath.row == 5 { 55 | FeatureRequests.show() 56 | } else if indexPath.row == 6 { 57 | performSegue(withIdentifier: "showSettings", sender: self) 58 | } 59 | tableView.deselectRow(at: indexPath, animated: true) 60 | } 61 | 62 | // MARK: - Controller Methods 63 | 64 | func executeHelloWorldRequest() { 65 | let urlSession = URLSession(configuration: .default) 66 | guard let url = URL(string: "https://echo-api.3scale.net/helloworld") else { 67 | print("Invalid URL") 68 | return 69 | } 70 | let dataTask = urlSession.dataTask(with: url) { (data, response, error) in 71 | guard let resp = response else { print("Response is nil"); return; } 72 | print("Response: \(resp)") 73 | } 74 | dataTask.resume() 75 | } 76 | 77 | func crashMe() { 78 | let _ = [Any]()[100] 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /Sample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'Instabug Demo' do 5 | # Comment the next line if you don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for Instabug Demo 9 | pod 'Instabug', :podspec => '../Instabug.podspec' 10 | 11 | end 12 | --------------------------------------------------------------------------------