├── .gitignore ├── .ruby-version ├── Podfile ├── Podfile.lock ├── README.md ├── SECURITY.md ├── azure-pipelines.yml ├── sampleapp-ios-swift.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── sampleapp-ios-swift.xcscheme ├── sampleapp-ios-swift.xcworkspace └── contents.xcworkspacedata ├── sampleapp-ios-swift ├── AnalyticsViewController.swift ├── AppDelegate.swift ├── Assets.xcassets │ ├── Analytics.imageset │ │ ├── Analytics.png │ │ ├── Analytics@2x.png │ │ ├── Analytics@3x.png │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── Appicon120-1.png │ │ ├── Appicon120.png │ │ ├── Appicon180.png │ │ ├── Appicon40.png │ │ ├── Appicon58.png │ │ ├── Appicon60.png │ │ ├── Appicon80.png │ │ ├── Appicon87.png │ │ └── Contents.json │ ├── Build.imageset │ │ ├── Build.png │ │ ├── Build@2x.png │ │ ├── Build@3x.png │ │ └── Contents.json │ ├── Contents.json │ ├── Crashes.imageset │ │ ├── Contents.json │ │ ├── Crashes.png │ │ ├── Crashes@2x.png │ │ └── Crashes@3x.png │ ├── Distribute.imageset │ │ ├── Contents.json │ │ ├── Distribute.png │ │ ├── Distribute@2x.png │ │ └── Distribute@3x.png │ ├── MCLogo.imageset │ │ ├── Contents.json │ │ ├── MCLogo.png │ │ ├── MCLogo@2x.png │ │ └── MCLogo@3x.png │ ├── Push.imageset │ │ ├── Contents.json │ │ ├── Push.png │ │ ├── Push@2x.png │ │ └── Push@3x.png │ ├── SplashPageLogo.imageset │ │ ├── Contents.json │ │ ├── SplashPageLogo.png │ │ ├── SplashPageLogo@2x.png │ │ └── SplashPageLogo@3x.png │ └── Test.imageset │ │ ├── Contents.json │ │ ├── Test.png │ │ ├── Test@2x.png │ │ └── Test@3x.png ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── CrashViewController.swift ├── Info.plist ├── RootViewController.swift └── sampleapp-ios-swift.entitlements └── sampleapp-ios-swiftUITests ├── Info.plist └── sampleapp_ios_swiftUITests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # Mac 3 | # 4 | .DS_Store 5 | 6 | ## Build generated 7 | build/ 8 | DerivedData/ 9 | Pods/ 10 | Carthage/Build 11 | 12 | ## Various settings 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata/ 22 | 23 | ## Other 24 | *.moved-aside 25 | *.xccheckout 26 | *.xcscmblueprint 27 | 28 | ## Obj-C/Swift specific 29 | *.hmap 30 | *.ipa 31 | *.dSYM.zip 32 | *.dSYM 33 | 34 | ## Playgrounds 35 | timeline.xctimeline 36 | playground.xcworkspace 37 | 38 | fastlane/report.xml 39 | fastlane/Preview.html 40 | fastlane/screenshots 41 | fastlane/test_output 42 | 43 | .DS_Store -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.6.2 2 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | target 'sampleapp-ios-swift' do 2 | use_frameworks! 3 | 4 | pod 'AppCenter' 5 | pod 'AppCenter/Analytics' 6 | pod 'AppCenter/Crashes' 7 | 8 | target 'sampleapp-ios-swiftUITests' do 9 | inherit! :search_paths 10 | # Pods for testing 11 | pod 'VSMobileCenterExtensions' 12 | end 13 | 14 | end 15 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AppCenter (4.2.0): 3 | - AppCenter/Analytics (= 4.2.0) 4 | - AppCenter/Crashes (= 4.2.0) 5 | - AppCenter/Analytics (4.2.0): 6 | - AppCenter/Core 7 | - AppCenter/Core (4.2.0) 8 | - AppCenter/Crashes (4.2.0): 9 | - AppCenter/Core 10 | - VSMobileCenterExtensions (0.9.1) 11 | 12 | DEPENDENCIES: 13 | - AppCenter 14 | - AppCenter/Analytics 15 | - AppCenter/Crashes 16 | - VSMobileCenterExtensions 17 | 18 | SPEC REPOS: 19 | trunk: 20 | - AppCenter 21 | - VSMobileCenterExtensions 22 | 23 | SPEC CHECKSUMS: 24 | AppCenter: 87ef6eefd8ade4df59e88951288587429f3dd2a5 25 | VSMobileCenterExtensions: 5f8b4b284f6817c1d58e860bf7ad0945f1244733 26 | 27 | PODFILE CHECKSUM: afd045c8011878a0b57ece97bc75b3ddd27a3cb0 28 | 29 | COCOAPODS: 1.10.1 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # App Center Sample App for iOS 2 | 3 | The iOS application in this repository and its corresponding tutorials will help you quickly and easily onboard to Visual Studio App Center. 4 | 5 | ## About this repository 6 | 7 | The App Center SDK modules are already integrated within the application. Simply follow the tutorials to learn how to use each service. 8 | 9 | ### Build status (master branch) 10 | 11 | | Build Service | Status | 12 | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | 13 | | App Center | [![Build status](https://build.appcenter.ms/v0.1/apps/45f31a4b-96a1-4c49-9c26-b2726e00a33d/branches/master/badge)](https://appcenter.ms) | 14 | | Azure Pipelines | [![Build Status](https://dev.azure.com/msmobilecenter/Mobile-Center/_apis/build/status/sampleapp/microsoft.appcenter-sampleapp-ios-swift?branchName=master)](https://dev.azure.com/msmobilecenter/Mobile-Center/_build/latest?definitionId=3726&branchName=master) | 15 | 16 | ## Build the sample app 17 | 18 | After forking the repository, you'll need to install CocoaPods to build the app. 19 | 20 | ```sh 21 | sudo gem install cocoapods 22 | ``` 23 | 24 | Next, install the dependencies. 25 | 26 | ```sh 27 | pod install 28 | ``` 29 | 30 | Open the .xcworkspace. The app can now build and run. You can learn to use the sample app with App Center with the tutorials below. 31 | 32 | ## Codesigning 33 | 34 | _Codesigning is optional, but recommended._ 35 | 36 | Codesigning will allow you to deploy this sample app to your device. The **Build** and **Distribute** tutorials recommend that you codesign. 37 | 38 | When creating a new App ID for this sample app, be sure to check the ** 39 | Notifications** service under the **App Services** section. 40 | 41 | To sign the app in Xcode: 42 | 43 | 1. Open **.xcworkspace** from the sample app's folder. 44 | 2. Go to **General** within the .xcworkspace file. 45 | 3. Under **Identity**, edit the **Bundle Identifier** to match the app ID. 46 | 4. Import and select the provisioning profile under **Signing (Debug)** and **Signing (Release)**. 47 | 48 | ## Tutorial links 49 | 50 | Begin with the [Getting Started](https://docs.microsoft.com/en-us/mobile-center/quickstarts/ios/getting-started) tutorial. After you've completed that, you can do the rest in the order below, or choose a specific tutorial to follow. 51 | 52 | ## Contents 53 | 54 | | Tutorial | Description | 55 | | --------------------------------------------------------------------------------------------- | ------------------------------------------ | 56 | | [Getting Started](https://docs.microsoft.com/en-us/appcenter/quickstarts/ios/getting-started) | Set up the app | 57 | | [Build](https://docs.microsoft.com/en-us/appcenter/quickstarts/ios/build) | Build the app | 58 | | [Test](https://docs.microsoft.com/en-us/appcenter/quickstarts/ios/test) | Run automated UI tests on real devices | 59 | | [Distribute](https://docs.microsoft.com/en-us/appcenter/quickstarts/ios/distribute) | Distribute application to a group of users | 60 | | [Crashes](https://docs.microsoft.com/en-us/appcenter/quickstarts/ios/crashes) | Monitor application crashes | 61 | | [Analytics](https://docs.microsoft.com/en-us/appcenter/quickstarts/ios/analytics) | View user analytics | 62 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Security 4 | 5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). 6 | 7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below. 8 | 9 | ## Reporting Security Issues 10 | 11 | **Please do not report security vulnerabilities through public GitHub issues.** 12 | 13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report). 14 | 15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey). 16 | 17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc). 18 | 19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: 20 | 21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) 22 | * Full paths of source file(s) related to the manifestation of the issue 23 | * The location of the affected source code (tag/branch/commit or direct URL) 24 | * Any special configuration required to reproduce the issue 25 | * Step-by-step instructions to reproduce the issue 26 | * Proof-of-concept or exploit code (if possible) 27 | * Impact of the issue, including how an attacker might exploit the issue 28 | 29 | This information will help us triage your report more quickly. 30 | 31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs. 32 | 33 | ## Preferred Languages 34 | 35 | We prefer all communications to be in English. 36 | 37 | ## Policy 38 | 39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd). 40 | 41 | 42 | -------------------------------------------------------------------------------- /azure-pipelines.yml: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # Build, test, and archive an Xcode workspace on macOS. 3 | # Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more: 4 | # https://docs.microsoft.com/azure/devops/pipelines/languages/xcode 5 | 6 | trigger: 7 | - master 8 | 9 | pool: 10 | vmImage: 'macos-latest' 11 | 12 | steps: 13 | - task: CocoaPods@0 14 | inputs: 15 | forceRepoUpdate: true 16 | 17 | - task: Xcode@5 18 | inputs: 19 | actions: 'clean build' 20 | configuration: 'Release' 21 | sdk: 'iphoneos' 22 | xcWorkspacePath: '*.xcworkspace' 23 | scheme: 'sampleapp-ios-swift' 24 | packageApp: false 25 | publishJUnitResults: true -------------------------------------------------------------------------------- /sampleapp-ios-swift.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 264044071F06D794002657EC /* RootViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 264044061F06D794002657EC /* RootViewController.swift */; }; 11 | 265586F11EF88770001914FC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 265586F01EF88770001914FC /* AppDelegate.swift */; }; 12 | 265586F81EF88770001914FC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 265586F61EF88770001914FC /* Main.storyboard */; }; 13 | 265586FA1EF88770001914FC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 265586F91EF88770001914FC /* Assets.xcassets */; }; 14 | 265586FD1EF88770001914FC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 265586FB1EF88770001914FC /* LaunchScreen.storyboard */; }; 15 | 267EDE4A1EFC7C5700AA5444 /* CrashViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 267EDE491EFC7C5700AA5444 /* CrashViewController.swift */; }; 16 | 267EDE4C1EFC8AF600AA5444 /* AnalyticsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 267EDE4B1EFC8AF600AA5444 /* AnalyticsViewController.swift */; }; 17 | AA614A022FD2C7075CB78555 /* Pods_sampleapp_ios_swift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CF7847DECF91A1AD126D8F4 /* Pods_sampleapp_ios_swift.framework */; }; 18 | C678D56557DD58162955D862 /* Pods_sampleapp_ios_swiftUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DB089F8C1DC5C5869A4EC277 /* Pods_sampleapp_ios_swiftUITests.framework */; }; 19 | F02E65BE1F1454DC00F657C9 /* sampleapp_ios_swiftUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F02E65BD1F1454DC00F657C9 /* sampleapp_ios_swiftUITests.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | F02E65C01F1454DC00F657C9 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 265586E51EF88770001914FC /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 265586EC1EF88770001914FC; 28 | remoteInfo = "demoapp-ios-swift"; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 07D8DC3DFAD6FFDFFD74D804 /* Pods-sampleapp-ios-swiftUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-sampleapp-ios-swiftUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-sampleapp-ios-swiftUITests/Pods-sampleapp-ios-swiftUITests.release.xcconfig"; sourceTree = ""; }; 34 | 1FF790B40477C2F03557AC20 /* Pods-sampleapp-ios-swift.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-sampleapp-ios-swift.release.xcconfig"; path = "Pods/Target Support Files/Pods-sampleapp-ios-swift/Pods-sampleapp-ios-swift.release.xcconfig"; sourceTree = ""; }; 35 | 264044061F06D794002657EC /* RootViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RootViewController.swift; sourceTree = ""; }; 36 | 265586ED1EF88770001914FC /* sampleapp-ios-swift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "sampleapp-ios-swift.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 265586F01EF88770001914FC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 265586F71EF88770001914FC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 39 | 265586F91EF88770001914FC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 40 | 265586FC1EF88770001914FC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 41 | 265586FE1EF88770001914FC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 267EDE491EFC7C5700AA5444 /* CrashViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CrashViewController.swift; sourceTree = ""; }; 43 | 267EDE4B1EFC8AF600AA5444 /* AnalyticsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnalyticsViewController.swift; sourceTree = ""; }; 44 | 4CF7847DECF91A1AD126D8F4 /* Pods_sampleapp_ios_swift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_sampleapp_ios_swift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 4F01A594D9B5CE89868FAD07 /* Pods-sampleapp-ios-swift.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-sampleapp-ios-swift.debug.xcconfig"; path = "Pods/Target Support Files/Pods-sampleapp-ios-swift/Pods-sampleapp-ios-swift.debug.xcconfig"; sourceTree = ""; }; 46 | 552E9B1CAA5E604F5301907D /* Pods-sampleapp-ios-swiftUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-sampleapp-ios-swiftUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-sampleapp-ios-swiftUITests/Pods-sampleapp-ios-swiftUITests.debug.xcconfig"; sourceTree = ""; }; 47 | DB089F8C1DC5C5869A4EC277 /* Pods_sampleapp_ios_swiftUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_sampleapp_ios_swiftUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | F02E65BB1F1454DC00F657C9 /* sampleapp-ios-swiftUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "sampleapp-ios-swiftUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | F02E65BD1F1454DC00F657C9 /* sampleapp_ios_swiftUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = sampleapp_ios_swiftUITests.swift; sourceTree = ""; }; 50 | F02E65BF1F1454DC00F657C9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | F0DDF9751F157DCF00530C9B /* sampleapp-ios-swift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "sampleapp-ios-swift.entitlements"; sourceTree = ""; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | 002CD8CE89A0929952E0EDA0 /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | AA614A022FD2C7075CB78555 /* Pods_sampleapp_ios_swift.framework in Frameworks */, 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | F02E65B81F1454DC00F657C9 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | C678D56557DD58162955D862 /* Pods_sampleapp_ios_swiftUITests.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 265586E41EF88770001914FC = { 75 | isa = PBXGroup; 76 | children = ( 77 | 265586EF1EF88770001914FC /* sampleapp-ios-swift */, 78 | F02E65BC1F1454DC00F657C9 /* sampleapp-ios-swiftUITests */, 79 | 265586EE1EF88770001914FC /* Products */, 80 | A0A1D218C944D82D2185DFD5 /* Pods */, 81 | C24EBEBD1933807FEF9C2645 /* Frameworks */, 82 | ); 83 | sourceTree = ""; 84 | }; 85 | 265586EE1EF88770001914FC /* Products */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 265586ED1EF88770001914FC /* sampleapp-ios-swift.app */, 89 | F02E65BB1F1454DC00F657C9 /* sampleapp-ios-swiftUITests.xctest */, 90 | ); 91 | name = Products; 92 | sourceTree = ""; 93 | }; 94 | 265586EF1EF88770001914FC /* sampleapp-ios-swift */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | F0DDF9751F157DCF00530C9B /* sampleapp-ios-swift.entitlements */, 98 | 265586FE1EF88770001914FC /* Info.plist */, 99 | 265586F01EF88770001914FC /* AppDelegate.swift */, 100 | 264044061F06D794002657EC /* RootViewController.swift */, 101 | 267EDE491EFC7C5700AA5444 /* CrashViewController.swift */, 102 | 267EDE4B1EFC8AF600AA5444 /* AnalyticsViewController.swift */, 103 | 265586F91EF88770001914FC /* Assets.xcassets */, 104 | 265586FB1EF88770001914FC /* LaunchScreen.storyboard */, 105 | 265586F61EF88770001914FC /* Main.storyboard */, 106 | ); 107 | path = "sampleapp-ios-swift"; 108 | sourceTree = ""; 109 | }; 110 | A0A1D218C944D82D2185DFD5 /* Pods */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 4F01A594D9B5CE89868FAD07 /* Pods-sampleapp-ios-swift.debug.xcconfig */, 114 | 1FF790B40477C2F03557AC20 /* Pods-sampleapp-ios-swift.release.xcconfig */, 115 | 552E9B1CAA5E604F5301907D /* Pods-sampleapp-ios-swiftUITests.debug.xcconfig */, 116 | 07D8DC3DFAD6FFDFFD74D804 /* Pods-sampleapp-ios-swiftUITests.release.xcconfig */, 117 | ); 118 | name = Pods; 119 | sourceTree = ""; 120 | }; 121 | C24EBEBD1933807FEF9C2645 /* Frameworks */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 4CF7847DECF91A1AD126D8F4 /* Pods_sampleapp_ios_swift.framework */, 125 | DB089F8C1DC5C5869A4EC277 /* Pods_sampleapp_ios_swiftUITests.framework */, 126 | ); 127 | name = Frameworks; 128 | sourceTree = ""; 129 | }; 130 | F02E65BC1F1454DC00F657C9 /* sampleapp-ios-swiftUITests */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | F02E65BD1F1454DC00F657C9 /* sampleapp_ios_swiftUITests.swift */, 134 | F02E65BF1F1454DC00F657C9 /* Info.plist */, 135 | ); 136 | path = "sampleapp-ios-swiftUITests"; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | 265586EC1EF88770001914FC /* sampleapp-ios-swift */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 265587171EF88771001914FC /* Build configuration list for PBXNativeTarget "sampleapp-ios-swift" */; 145 | buildPhases = ( 146 | 3210B9CCBD2EE7EF151D287B /* [CP] Check Pods Manifest.lock */, 147 | 265586E91EF88770001914FC /* Sources */, 148 | 265586EB1EF88770001914FC /* Resources */, 149 | 002CD8CE89A0929952E0EDA0 /* Frameworks */, 150 | D72532EBC60040C5DBE8CDAE /* [CP] Copy Pods Resources */, 151 | ); 152 | buildRules = ( 153 | ); 154 | dependencies = ( 155 | ); 156 | name = "sampleapp-ios-swift"; 157 | productName = "demoapp-ios-swift"; 158 | productReference = 265586ED1EF88770001914FC /* sampleapp-ios-swift.app */; 159 | productType = "com.apple.product-type.application"; 160 | }; 161 | F02E65BA1F1454DC00F657C9 /* sampleapp-ios-swiftUITests */ = { 162 | isa = PBXNativeTarget; 163 | buildConfigurationList = F02E65C21F1454DC00F657C9 /* Build configuration list for PBXNativeTarget "sampleapp-ios-swiftUITests" */; 164 | buildPhases = ( 165 | 4F02B79723C827312A4BA842 /* [CP] Check Pods Manifest.lock */, 166 | F02E65B71F1454DC00F657C9 /* Sources */, 167 | F02E65B81F1454DC00F657C9 /* Frameworks */, 168 | F02E65B91F1454DC00F657C9 /* Resources */, 169 | 8A26701896ACD7C0BFC9DD29 /* [CP] Embed Pods Frameworks */, 170 | ); 171 | buildRules = ( 172 | ); 173 | dependencies = ( 174 | F02E65C11F1454DC00F657C9 /* PBXTargetDependency */, 175 | ); 176 | name = "sampleapp-ios-swiftUITests"; 177 | productName = "demoapp-ios-swiftUITests"; 178 | productReference = F02E65BB1F1454DC00F657C9 /* sampleapp-ios-swiftUITests.xctest */; 179 | productType = "com.apple.product-type.bundle.ui-testing"; 180 | }; 181 | /* End PBXNativeTarget section */ 182 | 183 | /* Begin PBXProject section */ 184 | 265586E51EF88770001914FC /* Project object */ = { 185 | isa = PBXProject; 186 | attributes = { 187 | LastSwiftUpdateCheck = 0830; 188 | LastUpgradeCheck = 1100; 189 | ORGANIZATIONNAME = Tina; 190 | TargetAttributes = { 191 | 265586EC1EF88770001914FC = { 192 | CreatedOnToolsVersion = 8.3.2; 193 | LastSwiftMigration = 1100; 194 | ProvisioningStyle = Manual; 195 | SystemCapabilities = { 196 | com.apple.Push = { 197 | enabled = 0; 198 | }; 199 | }; 200 | }; 201 | F02E65BA1F1454DC00F657C9 = { 202 | CreatedOnToolsVersion = 8.3.3; 203 | LastSwiftMigration = 1100; 204 | ProvisioningStyle = Automatic; 205 | TestTargetID = 265586EC1EF88770001914FC; 206 | }; 207 | }; 208 | }; 209 | buildConfigurationList = 265586E81EF88770001914FC /* Build configuration list for PBXProject "sampleapp-ios-swift" */; 210 | compatibilityVersion = "Xcode 3.2"; 211 | developmentRegion = en; 212 | hasScannedForEncodings = 0; 213 | knownRegions = ( 214 | en, 215 | Base, 216 | ); 217 | mainGroup = 265586E41EF88770001914FC; 218 | productRefGroup = 265586EE1EF88770001914FC /* Products */; 219 | projectDirPath = ""; 220 | projectRoot = ""; 221 | targets = ( 222 | 265586EC1EF88770001914FC /* sampleapp-ios-swift */, 223 | F02E65BA1F1454DC00F657C9 /* sampleapp-ios-swiftUITests */, 224 | ); 225 | }; 226 | /* End PBXProject section */ 227 | 228 | /* Begin PBXResourcesBuildPhase section */ 229 | 265586EB1EF88770001914FC /* Resources */ = { 230 | isa = PBXResourcesBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | 265586FD1EF88770001914FC /* LaunchScreen.storyboard in Resources */, 234 | 265586FA1EF88770001914FC /* Assets.xcassets in Resources */, 235 | 265586F81EF88770001914FC /* Main.storyboard in Resources */, 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | F02E65B91F1454DC00F657C9 /* Resources */ = { 240 | isa = PBXResourcesBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | }; 246 | /* End PBXResourcesBuildPhase section */ 247 | 248 | /* Begin PBXShellScriptBuildPhase section */ 249 | 3210B9CCBD2EE7EF151D287B /* [CP] Check Pods Manifest.lock */ = { 250 | isa = PBXShellScriptBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | ); 254 | inputPaths = ( 255 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 256 | "${PODS_ROOT}/Manifest.lock", 257 | ); 258 | name = "[CP] Check Pods Manifest.lock"; 259 | outputPaths = ( 260 | "$(DERIVED_FILE_DIR)/Pods-sampleapp-ios-swift-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 | 4F02B79723C827312A4BA842 /* [CP] Check Pods Manifest.lock */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 274 | "${PODS_ROOT}/Manifest.lock", 275 | ); 276 | name = "[CP] Check Pods Manifest.lock"; 277 | outputPaths = ( 278 | "$(DERIVED_FILE_DIR)/Pods-sampleapp-ios-swiftUITests-checkManifestLockResult.txt", 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | shellPath = /bin/sh; 282 | 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"; 283 | showEnvVarsInLog = 0; 284 | }; 285 | 8A26701896ACD7C0BFC9DD29 /* [CP] Embed Pods Frameworks */ = { 286 | isa = PBXShellScriptBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | ); 290 | inputPaths = ( 291 | "${PODS_ROOT}/Target Support Files/Pods-sampleapp-ios-swiftUITests/Pods-sampleapp-ios-swiftUITests-frameworks.sh", 292 | "${BUILT_PRODUCTS_DIR}/VSMobileCenterExtensions/VSMobileCenterExtensions.framework", 293 | ); 294 | name = "[CP] Embed Pods Frameworks"; 295 | outputPaths = ( 296 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/VSMobileCenterExtensions.framework", 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | shellPath = /bin/sh; 300 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-sampleapp-ios-swiftUITests/Pods-sampleapp-ios-swiftUITests-frameworks.sh\"\n"; 301 | showEnvVarsInLog = 0; 302 | }; 303 | D72532EBC60040C5DBE8CDAE /* [CP] Copy Pods Resources */ = { 304 | isa = PBXShellScriptBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | inputPaths = ( 309 | "${PODS_ROOT}/Target Support Files/Pods-sampleapp-ios-swift/Pods-sampleapp-ios-swift-resources.sh", 310 | "${PODS_CONFIGURATION_BUILD_DIR}/AppCenter/AppCenterDistributeResources.bundle", 311 | ); 312 | name = "[CP] Copy Pods Resources"; 313 | outputPaths = ( 314 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AppCenterDistributeResources.bundle", 315 | ); 316 | runOnlyForDeploymentPostprocessing = 0; 317 | shellPath = /bin/sh; 318 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-sampleapp-ios-swift/Pods-sampleapp-ios-swift-resources.sh\"\n"; 319 | showEnvVarsInLog = 0; 320 | }; 321 | /* End PBXShellScriptBuildPhase section */ 322 | 323 | /* Begin PBXSourcesBuildPhase section */ 324 | 265586E91EF88770001914FC /* Sources */ = { 325 | isa = PBXSourcesBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | 264044071F06D794002657EC /* RootViewController.swift in Sources */, 329 | 265586F11EF88770001914FC /* AppDelegate.swift in Sources */, 330 | 267EDE4A1EFC7C5700AA5444 /* CrashViewController.swift in Sources */, 331 | 267EDE4C1EFC8AF600AA5444 /* AnalyticsViewController.swift in Sources */, 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | }; 335 | F02E65B71F1454DC00F657C9 /* Sources */ = { 336 | isa = PBXSourcesBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | F02E65BE1F1454DC00F657C9 /* sampleapp_ios_swiftUITests.swift in Sources */, 340 | ); 341 | runOnlyForDeploymentPostprocessing = 0; 342 | }; 343 | /* End PBXSourcesBuildPhase section */ 344 | 345 | /* Begin PBXTargetDependency section */ 346 | F02E65C11F1454DC00F657C9 /* PBXTargetDependency */ = { 347 | isa = PBXTargetDependency; 348 | target = 265586EC1EF88770001914FC /* sampleapp-ios-swift */; 349 | targetProxy = F02E65C01F1454DC00F657C9 /* PBXContainerItemProxy */; 350 | }; 351 | /* End PBXTargetDependency section */ 352 | 353 | /* Begin PBXVariantGroup section */ 354 | 265586F61EF88770001914FC /* Main.storyboard */ = { 355 | isa = PBXVariantGroup; 356 | children = ( 357 | 265586F71EF88770001914FC /* Base */, 358 | ); 359 | name = Main.storyboard; 360 | sourceTree = ""; 361 | }; 362 | 265586FB1EF88770001914FC /* LaunchScreen.storyboard */ = { 363 | isa = PBXVariantGroup; 364 | children = ( 365 | 265586FC1EF88770001914FC /* Base */, 366 | ); 367 | name = LaunchScreen.storyboard; 368 | sourceTree = ""; 369 | }; 370 | /* End PBXVariantGroup section */ 371 | 372 | /* Begin XCBuildConfiguration section */ 373 | 265587151EF88771001914FC /* Debug */ = { 374 | isa = XCBuildConfiguration; 375 | buildSettings = { 376 | ALWAYS_SEARCH_USER_PATHS = NO; 377 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 378 | CLANG_ANALYZER_NONNULL = YES; 379 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 380 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 381 | CLANG_CXX_LIBRARY = "libc++"; 382 | CLANG_ENABLE_MODULES = YES; 383 | CLANG_ENABLE_OBJC_ARC = YES; 384 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 385 | CLANG_WARN_BOOL_CONVERSION = YES; 386 | CLANG_WARN_COMMA = YES; 387 | CLANG_WARN_CONSTANT_CONVERSION = YES; 388 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 389 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 390 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 391 | CLANG_WARN_EMPTY_BODY = YES; 392 | CLANG_WARN_ENUM_CONVERSION = YES; 393 | CLANG_WARN_INFINITE_RECURSION = YES; 394 | CLANG_WARN_INT_CONVERSION = YES; 395 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = dwarf; 407 | ENABLE_BITCODE = NO; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | ENABLE_TESTABILITY = YES; 410 | GCC_C_LANGUAGE_STANDARD = gnu99; 411 | GCC_DYNAMIC_NO_PIC = NO; 412 | GCC_NO_COMMON_BLOCKS = YES; 413 | GCC_OPTIMIZATION_LEVEL = 0; 414 | GCC_PREPROCESSOR_DEFINITIONS = ( 415 | "DEBUG=1", 416 | "$(inherited)", 417 | ); 418 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 419 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 420 | GCC_WARN_UNDECLARED_SELECTOR = YES; 421 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 422 | GCC_WARN_UNUSED_FUNCTION = YES; 423 | GCC_WARN_UNUSED_VARIABLE = YES; 424 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 425 | MTL_ENABLE_DEBUG_INFO = YES; 426 | ONLY_ACTIVE_ARCH = YES; 427 | SDKROOT = iphoneos; 428 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 429 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 430 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 431 | TARGETED_DEVICE_FAMILY = "1,2"; 432 | }; 433 | name = Debug; 434 | }; 435 | 265587161EF88771001914FC /* Release */ = { 436 | isa = XCBuildConfiguration; 437 | buildSettings = { 438 | ALWAYS_SEARCH_USER_PATHS = NO; 439 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 440 | CLANG_ANALYZER_NONNULL = YES; 441 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 442 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 443 | CLANG_CXX_LIBRARY = "libc++"; 444 | CLANG_ENABLE_MODULES = YES; 445 | CLANG_ENABLE_OBJC_ARC = YES; 446 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 447 | CLANG_WARN_BOOL_CONVERSION = YES; 448 | CLANG_WARN_COMMA = YES; 449 | CLANG_WARN_CONSTANT_CONVERSION = YES; 450 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 451 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 452 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 453 | CLANG_WARN_EMPTY_BODY = YES; 454 | CLANG_WARN_ENUM_CONVERSION = YES; 455 | CLANG_WARN_INFINITE_RECURSION = YES; 456 | CLANG_WARN_INT_CONVERSION = YES; 457 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 459 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 460 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 467 | COPY_PHASE_STRIP = NO; 468 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 469 | ENABLE_BITCODE = NO; 470 | ENABLE_NS_ASSERTIONS = NO; 471 | ENABLE_STRICT_OBJC_MSGSEND = YES; 472 | GCC_C_LANGUAGE_STANDARD = gnu99; 473 | GCC_NO_COMMON_BLOCKS = YES; 474 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 475 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 476 | GCC_WARN_UNDECLARED_SELECTOR = YES; 477 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 478 | GCC_WARN_UNUSED_FUNCTION = YES; 479 | GCC_WARN_UNUSED_VARIABLE = YES; 480 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 481 | MTL_ENABLE_DEBUG_INFO = NO; 482 | SDKROOT = iphoneos; 483 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 484 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 485 | TARGETED_DEVICE_FAMILY = "1,2"; 486 | VALIDATE_PRODUCT = YES; 487 | }; 488 | name = Release; 489 | }; 490 | 265587181EF88771001914FC /* Debug */ = { 491 | isa = XCBuildConfiguration; 492 | baseConfigurationReference = 4F01A594D9B5CE89868FAD07 /* Pods-sampleapp-ios-swift.debug.xcconfig */; 493 | buildSettings = { 494 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 495 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 496 | DEVELOPMENT_TEAM = ""; 497 | INFOPLIST_FILE = "$(SRCROOT)/sampleapp-ios-swift/Info.plist"; 498 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 499 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.appcenter.sampleapp.swift; 500 | PRODUCT_NAME = "$(TARGET_NAME)"; 501 | PROVISIONING_PROFILE = ""; 502 | PROVISIONING_PROFILE_SPECIFIER = ""; 503 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 504 | SWIFT_VERSION = 5.0; 505 | TARGETED_DEVICE_FAMILY = 1; 506 | }; 507 | name = Debug; 508 | }; 509 | 265587191EF88771001914FC /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 1FF790B40477C2F03557AC20 /* Pods-sampleapp-ios-swift.release.xcconfig */; 512 | buildSettings = { 513 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 514 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 515 | DEVELOPMENT_TEAM = ""; 516 | INFOPLIST_FILE = "$(SRCROOT)/sampleapp-ios-swift/Info.plist"; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 518 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.appcenter.sampleapp.swift; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | PROVISIONING_PROFILE_SPECIFIER = ""; 521 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 522 | SWIFT_VERSION = 5.0; 523 | TARGETED_DEVICE_FAMILY = 1; 524 | }; 525 | name = Release; 526 | }; 527 | F02E65C31F1454DC00F657C9 /* Debug */ = { 528 | isa = XCBuildConfiguration; 529 | baseConfigurationReference = 552E9B1CAA5E604F5301907D /* Pods-sampleapp-ios-swiftUITests.debug.xcconfig */; 530 | buildSettings = { 531 | INFOPLIST_FILE = "sampleapp-ios-swiftUITests/Info.plist"; 532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 533 | PRODUCT_BUNDLE_IDENTIFIER = "sampleapp-ios-swiftUITests"; 534 | PRODUCT_NAME = "$(TARGET_NAME)"; 535 | PROVISIONING_PROFILE = ""; 536 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 537 | SWIFT_VERSION = 5.0; 538 | TEST_TARGET_NAME = "sampleapp-ios-swift"; 539 | }; 540 | name = Debug; 541 | }; 542 | F02E65C41F1454DC00F657C9 /* Release */ = { 543 | isa = XCBuildConfiguration; 544 | baseConfigurationReference = 07D8DC3DFAD6FFDFFD74D804 /* Pods-sampleapp-ios-swiftUITests.release.xcconfig */; 545 | buildSettings = { 546 | INFOPLIST_FILE = "sampleapp-ios-swiftUITests/Info.plist"; 547 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 548 | PRODUCT_BUNDLE_IDENTIFIER = "sampleapp-ios-swiftUITests"; 549 | PRODUCT_NAME = "$(TARGET_NAME)"; 550 | PROVISIONING_PROFILE = ""; 551 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 552 | SWIFT_VERSION = 5.0; 553 | TEST_TARGET_NAME = "sampleapp-ios-swift"; 554 | }; 555 | name = Release; 556 | }; 557 | /* End XCBuildConfiguration section */ 558 | 559 | /* Begin XCConfigurationList section */ 560 | 265586E81EF88770001914FC /* Build configuration list for PBXProject "sampleapp-ios-swift" */ = { 561 | isa = XCConfigurationList; 562 | buildConfigurations = ( 563 | 265587151EF88771001914FC /* Debug */, 564 | 265587161EF88771001914FC /* Release */, 565 | ); 566 | defaultConfigurationIsVisible = 0; 567 | defaultConfigurationName = Release; 568 | }; 569 | 265587171EF88771001914FC /* Build configuration list for PBXNativeTarget "sampleapp-ios-swift" */ = { 570 | isa = XCConfigurationList; 571 | buildConfigurations = ( 572 | 265587181EF88771001914FC /* Debug */, 573 | 265587191EF88771001914FC /* Release */, 574 | ); 575 | defaultConfigurationIsVisible = 0; 576 | defaultConfigurationName = Release; 577 | }; 578 | F02E65C21F1454DC00F657C9 /* Build configuration list for PBXNativeTarget "sampleapp-ios-swiftUITests" */ = { 579 | isa = XCConfigurationList; 580 | buildConfigurations = ( 581 | F02E65C31F1454DC00F657C9 /* Debug */, 582 | F02E65C41F1454DC00F657C9 /* Release */, 583 | ); 584 | defaultConfigurationIsVisible = 0; 585 | defaultConfigurationName = Release; 586 | }; 587 | /* End XCConfigurationList section */ 588 | }; 589 | rootObject = 265586E51EF88770001914FC /* Project object */; 590 | } 591 | -------------------------------------------------------------------------------- /sampleapp-ios-swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /sampleapp-ios-swift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /sampleapp-ios-swift.xcodeproj/xcshareddata/xcschemes/sampleapp-ios-swift.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 42 | 48 | 49 | 50 | 51 | 52 | 62 | 64 | 70 | 71 | 72 | 73 | 79 | 81 | 87 | 88 | 89 | 90 | 92 | 93 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /sampleapp-ios-swift.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /sampleapp-ios-swift/AnalyticsViewController.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | import AppCenterAnalytics 4 | 5 | class AnalyticsViewController: UIViewController { 6 | 7 | @IBOutlet weak var customEventButton: UIButton! 8 | @IBOutlet weak var customColorButton: UIButton! 9 | 10 | override func viewDidLoad() { 11 | super.viewDidLoad() 12 | // Do any additional setup after loading the view, typically from a nib. 13 | customColorButton.layer.cornerRadius = 10.0 14 | customEventButton.layer.cornerRadius = 10.0 15 | 16 | navigationController?.navigationBar.barTintColor = .black 17 | navigationController?.navigationBar.isTranslucent = false 18 | } 19 | 20 | @IBAction func analyticsButtonTapped(_ sender: UIButton) { 21 | switch sender { 22 | case customEventButton: 23 | Analytics.trackEvent("Sample event") 24 | print("send a custom event") 25 | presentCustomEventAlert() 26 | 27 | case customColorButton: 28 | print("send a custom event with color property") 29 | presentColorPropertyAlert() 30 | 31 | default: 32 | break 33 | } 34 | } 35 | 36 | // - MARK: Alert Functions 37 | 38 | func presentCustomEventAlert() { 39 | let alert = UIAlertController(title: "Event sent", 40 | message: "", 41 | preferredStyle: .alert) 42 | 43 | // OK Button 44 | alert.addAction(UIAlertAction(title: "OK", 45 | style: .default, 46 | handler: { _ in alert.dismiss(animated: true) 47 | })) 48 | present(alert, animated: true) 49 | } 50 | 51 | func presentColorPropertyAlert() { 52 | let alert = UIAlertController(title: "Choose a color", 53 | message: "", 54 | preferredStyle: .alert) 55 | alert.view.tintColor = UIColor.black 56 | 57 | // Yellow button 58 | alert.addAction(UIAlertAction(title: "💛 Yellow", 59 | style: .default, 60 | handler: { _ in alert.dismiss(animated: true) 61 | Analytics.trackEvent("Color event", withProperties: ["Color": "Yellow"]) 62 | })) 63 | 64 | // Blue button 65 | alert.addAction(UIAlertAction(title: "💙 Blue", 66 | style: .default, 67 | handler: { _ in alert.dismiss(animated: true) 68 | Analytics.trackEvent("Color event", withProperties: ["Color": "Blue"]) 69 | })) 70 | 71 | // Red button 72 | alert.addAction(UIAlertAction(title: "❤️ Red", 73 | style: .default, 74 | handler: { _ in alert.dismiss(animated: true) 75 | Analytics.trackEvent("Color event", withProperties: ["Color": "Red"]) 76 | })) 77 | 78 | present(alert, animated: true) 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /sampleapp-ios-swift/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | import AppCenter 4 | import AppCenterAnalytics 5 | import AppCenterCrashes 6 | 7 | @UIApplicationMain 8 | class AppDelegate: UIResponder, UIApplicationDelegate { 9 | 10 | var window: UIWindow? 11 | 12 | func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 13 | // Override point for customization after application launch. 14 | 15 | // Enabled App Center SDK verbose logs 16 | AppCenter.logLevel = .verbose 17 | 18 | AppCenter.start(withAppSecret: "", services: [ 19 | Analytics.self, 20 | Crashes.self, 21 | ]) 22 | 23 | return true 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Analytics.imageset/Analytics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Analytics.imageset/Analytics.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Analytics.imageset/Analytics@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Analytics.imageset/Analytics@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Analytics.imageset/Analytics@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Analytics.imageset/Analytics@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Analytics.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Analytics.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Analytics@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Analytics@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon120-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon120-1.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon120.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon180.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon40.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon58.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon60.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon80.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Appicon87.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Appicon40.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Appicon60.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Appicon58.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Appicon87.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "Appicon80.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Appicon120-1.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "Appicon120.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Appicon180.png", 49 | "scale" : "3x" 50 | }, 51 | { 52 | "idiom" : "ipad", 53 | "size" : "20x20", 54 | "scale" : "1x" 55 | }, 56 | { 57 | "idiom" : "ipad", 58 | "size" : "20x20", 59 | "scale" : "2x" 60 | }, 61 | { 62 | "idiom" : "ipad", 63 | "size" : "29x29", 64 | "scale" : "1x" 65 | }, 66 | { 67 | "idiom" : "ipad", 68 | "size" : "29x29", 69 | "scale" : "2x" 70 | }, 71 | { 72 | "idiom" : "ipad", 73 | "size" : "40x40", 74 | "scale" : "1x" 75 | }, 76 | { 77 | "idiom" : "ipad", 78 | "size" : "40x40", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "idiom" : "ipad", 83 | "size" : "76x76", 84 | "scale" : "1x" 85 | }, 86 | { 87 | "idiom" : "ipad", 88 | "size" : "76x76", 89 | "scale" : "2x" 90 | }, 91 | { 92 | "idiom" : "ipad", 93 | "size" : "83.5x83.5", 94 | "scale" : "2x" 95 | }, 96 | { 97 | "idiom" : "ios-marketing", 98 | "size" : "1024x1024", 99 | "scale" : "1x" 100 | } 101 | ], 102 | "info" : { 103 | "version" : 1, 104 | "author" : "xcode" 105 | } 106 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Build.imageset/Build.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Build.imageset/Build.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Build.imageset/Build@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Build.imageset/Build@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Build.imageset/Build@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Build.imageset/Build@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Build.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Build.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Build@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Build@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Crashes.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Crashes.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Crashes@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Crashes@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Crashes.imageset/Crashes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Crashes.imageset/Crashes.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Crashes.imageset/Crashes@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Crashes.imageset/Crashes@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Crashes.imageset/Crashes@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Crashes.imageset/Crashes@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Distribute.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Distribute.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Distribute@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Distribute@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Distribute.imageset/Distribute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Distribute.imageset/Distribute.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Distribute.imageset/Distribute@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Distribute.imageset/Distribute@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Distribute.imageset/Distribute@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Distribute.imageset/Distribute@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/MCLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "MCLogo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "MCLogo@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "MCLogo@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/MCLogo.imageset/MCLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/MCLogo.imageset/MCLogo.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/MCLogo.imageset/MCLogo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/MCLogo.imageset/MCLogo@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/MCLogo.imageset/MCLogo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/MCLogo.imageset/MCLogo@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Push.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Push.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Push@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Push@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Push.imageset/Push.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Push.imageset/Push.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Push.imageset/Push@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Push.imageset/Push@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Push.imageset/Push@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Push.imageset/Push@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/SplashPageLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "SplashPageLogo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "SplashPageLogo@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "SplashPageLogo@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/SplashPageLogo.imageset/SplashPageLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/SplashPageLogo.imageset/SplashPageLogo.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/SplashPageLogo.imageset/SplashPageLogo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/SplashPageLogo.imageset/SplashPageLogo@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/SplashPageLogo.imageset/SplashPageLogo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/SplashPageLogo.imageset/SplashPageLogo@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Test.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Test.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Test@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Test@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Test.imageset/Test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Test.imageset/Test.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Test.imageset/Test@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Test.imageset/Test@2x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/Assets.xcassets/Test.imageset/Test@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/appcenter-sampleapp-ios-swift/a992ff01cfb10326ba840b216ca02c32708fd49d/sampleapp-ios-swift/Assets.xcassets/Test.imageset/Test@3x.png -------------------------------------------------------------------------------- /sampleapp-ios-swift/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 | -------------------------------------------------------------------------------- /sampleapp-ios-swift/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 | Create an installable app package automatically with every push to your repository. Supports Git repos on GitHub, GitLab, Bitbucket and Azure DevOps. 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 | 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 | Run your tests on more than 400 unique device configurations. Tests can be written for iOS and Android apps with Xamarin, UITest, Appium, Espresso (Android), and XCUITest (iOS). 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 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 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | Engage your users by sending them targeted messages to specific sets of users at exactly the right time. Create segments of users based on device and custom properties. 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | Visual Studio App Center is mission control for apps. It brings together multiple services, commonly used for mobile developers, into a single, integrated product. 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | Collect crashes from all devices, prioritize them based on the number of users seeing the crash, and get the full stack traces to help you fix them. 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 418 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | Get information about the number of daily, weekly and monthly users, session duration, the top devices and more. Use events to collect rich behavioral analytics data. 501 | 502 | 503 | 504 | 505 | 519 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | -------------------------------------------------------------------------------- /sampleapp-ios-swift/CrashViewController.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | import AppCenter 4 | import AppCenterCrashes 5 | 6 | class CrashViewController: UIViewController { 7 | 8 | @IBOutlet weak var setUserIdButton: UIButton! 9 | 10 | @IBOutlet weak var fatalErrorButton: UIButton! 11 | 12 | override func viewDidLoad() { 13 | super.viewDidLoad() 14 | // Do any additional setup after loading the view, typically from a nib. 15 | fatalErrorButton.layer.cornerRadius = 10.0 16 | 17 | navigationController?.navigationBar.barTintColor = UIColor.black 18 | navigationController?.navigationBar.isTranslucent = false 19 | } 20 | 21 | @IBAction func userIdButtonTapped(_: UIButton) { 22 | // Set a user id 23 | AppCenter.userId = " 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | AC Sample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UIStatusBarTintParameters 34 | 35 | UINavigationBar 36 | 37 | Style 38 | UIBarStyleDefault 39 | Translucent 40 | 41 | 42 | 43 | UISupportedInterfaceOrientations 44 | 45 | UIInterfaceOrientationPortrait 46 | 47 | UISupportedInterfaceOrientations~ipad 48 | 49 | UIInterfaceOrientationPortrait 50 | UIInterfaceOrientationPortraitUpsideDown 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /sampleapp-ios-swift/RootViewController.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | 4 | class RootViewController: UIPageViewController, UIPageViewControllerDelegate, UIPageViewControllerDataSource { 5 | 6 | // give a list of service 7 | var services: [String] = [] 8 | 9 | override func viewDidLoad() { 10 | super.viewDidLoad() 11 | 12 | // Here, we manually add our services to the Data Model 13 | services = [ 14 | "welcomeViewController", 15 | "buildViewController", 16 | "analyticsViewController", 17 | "crashViewController", 18 | "testViewController", 19 | "distributeViewController", 20 | "pushViewController", 21 | ] 22 | 23 | delegate = self 24 | dataSource = self 25 | 26 | // set the starting viewController, in this case it is welcomeViewController 27 | let startingViewController = (storyboard?.instantiateViewController(withIdentifier: "welcomeViewController"))! 28 | setViewControllers([startingViewController], 29 | direction: .forward, 30 | animated: true, 31 | completion: nil) 32 | } 33 | 34 | // MARK: - UIPageViewController navigation functions 35 | override func viewDidLayoutSubviews() { 36 | super.viewDidLayoutSubviews() 37 | 38 | if let scrollView = view.subviews.filter({ $0 is UIScrollView }).first, 39 | let pageControl = view.subviews.filter({ $0 is UIPageControl }).first { 40 | scrollView.frame = view.bounds 41 | view.bringSubviewToFront(pageControl) 42 | } 43 | } 44 | 45 | // MARK: - UIPageViewController protocol functions 46 | 47 | func pageViewController(_: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? { 48 | let index = services.firstIndex(of: viewController.restorationIdentifier!) 49 | if (index == 0) || (index == NSNotFound) { 50 | return nil 51 | } else { 52 | return storyboard?.instantiateViewController(withIdentifier: services[index! - 1]) 53 | } 54 | } 55 | 56 | func pageViewController(_: UIPageViewController, 57 | viewControllerAfter viewController: UIViewController) -> UIViewController? { 58 | let index = services.firstIndex(of: viewController.restorationIdentifier!)! 59 | if index < services.count - 1 { 60 | return storyboard?.instantiateViewController(withIdentifier: services[index + 1]) 61 | } else { 62 | return nil 63 | } 64 | } 65 | 66 | func presentationCount(for _: UIPageViewController) -> Int { 67 | return services.count 68 | } 69 | 70 | func presentationIndex(for _: UIPageViewController) -> Int { 71 | return 0 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /sampleapp-ios-swift/sampleapp-ios-swift.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sampleapp-ios-swiftUITests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /sampleapp-ios-swiftUITests/sampleapp_ios_swiftUITests.swift: -------------------------------------------------------------------------------- 1 | 2 | import XCTest 3 | 4 | class sampleapp_ios_swiftUITests: XCTestCase { 5 | let app = XCUIApplication() 6 | override func setUp() { 7 | super.setUp() 8 | // In UI tests it is usually best to stop immediately when a failure occurs. 9 | continueAfterFailure = false 10 | app.launch() 11 | } 12 | 13 | override func tearDown() { 14 | // Put teardown code here. This method is called after the invocation of each test method in the class. 15 | super.tearDown() 16 | } 17 | 18 | func testSwipeUntilCrashesPage() { 19 | // Assert that the crash button exists 20 | let window = app.windows.element(boundBy: 0) 21 | let fatalErrorButtonQuery = app.buttons.matching(identifier: "fatalErrorButton") 22 | XCTAssert(window.frame.contains(fatalErrorButtonQuery.accessibilityFrame)) 23 | } 24 | } 25 | --------------------------------------------------------------------------------