Skip to content

Commit

Permalink
Added App Center
Browse files Browse the repository at this point in the history
  • Loading branch information
below committed Jul 29, 2022
1 parent 927e5d1 commit b2866b4
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 1 deletion.
90 changes: 90 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
47 changes: 47 additions & 0 deletions GeofenceTester.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
CBE711EF2868EE36008F51C4 /* RegionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBE711EE2868EE36008F51C4 /* RegionViewController.swift */; };
CBE711F1286915A8008F51C4 /* EventRecord.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBE711F0286915A8008F51C4 /* EventRecord.swift */; };
CBE711F3286920FD008F51C4 /* EventsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBE711F2286920FD008F51C4 /* EventsTableViewController.swift */; };
CBE71231286C7E00008F51C4 /* AppCenterAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = CBE71230286C7E00008F51C4 /* AppCenterAnalytics */; };
CBE71233286C7E00008F51C4 /* AppCenterCrashes in Frameworks */ = {isa = PBXBuildFile; productRef = CBE71232286C7E00008F51C4 /* AppCenterCrashes */; };
CBE71235286C7E00008F51C4 /* AppCenterDistribute in Frameworks */ = {isa = PBXBuildFile; productRef = CBE71234286C7E00008F51C4 /* AppCenterDistribute */; };
CBE71237286C7E7A008F51C4 /* Keys.swift in Sources */ = {isa = PBXBuildFile; fileRef = CBE71236286C7E7A008F51C4 /* Keys.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -32,13 +36,17 @@
CBE711EE2868EE36008F51C4 /* RegionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RegionViewController.swift; sourceTree = "<group>"; };
CBE711F0286915A8008F51C4 /* EventRecord.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventRecord.swift; sourceTree = "<group>"; };
CBE711F2286920FD008F51C4 /* EventsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventsTableViewController.swift; sourceTree = "<group>"; };
CBE71236286C7E7A008F51C4 /* Keys.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Keys.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
CB655F5F28534E2600EBCABA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
CBE71231286C7E00008F51C4 /* AppCenterAnalytics in Frameworks */,
CBE71233286C7E00008F51C4 /* AppCenterCrashes in Frameworks */,
CBE71235286C7E00008F51C4 /* AppCenterDistribute in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -65,6 +73,7 @@
isa = PBXGroup;
children = (
CB655F6528534E2600EBCABA /* AppDelegate.swift */,
CBE71236286C7E7A008F51C4 /* Keys.swift */,
CB655F6728534E2600EBCABA /* SceneDelegate.swift */,
CB655F7D2856A43B00EBCABA /* RegionsListViewController.swift */,
CBE711EE2868EE36008F51C4 /* RegionViewController.swift */,
Expand Down Expand Up @@ -95,6 +104,11 @@
dependencies = (
);
name = GeofenceTester;
packageProductDependencies = (
CBE71230286C7E00008F51C4 /* AppCenterAnalytics */,
CBE71232286C7E00008F51C4 /* AppCenterCrashes */,
CBE71234286C7E00008F51C4 /* AppCenterDistribute */,
);
productName = GeofenceTester;
productReference = CB655F6228534E2600EBCABA /* GeofenceTester.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -123,6 +137,9 @@
Base,
);
mainGroup = CB655F5928534E2600EBCABA;
packageReferences = (
CBE7122F286C7E00008F51C4 /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */,
);
productRefGroup = CB655F6328534E2600EBCABA /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -151,6 +168,7 @@
buildActionMask = 2147483647;
files = (
CBE711F1286915A8008F51C4 /* EventRecord.swift in Sources */,
CBE71237286C7E7A008F51C4 /* Keys.swift in Sources */,
CB655F6628534E2600EBCABA /* AppDelegate.swift in Sources */,
CBE711EF2868EE36008F51C4 /* RegionViewController.swift in Sources */,
CB655F6828534E2600EBCABA /* SceneDelegate.swift in Sources */,
Expand Down Expand Up @@ -380,6 +398,35 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
CBE7122F286C7E00008F51C4 /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/microsoft/appcenter-sdk-apple.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.4.2;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
CBE71230286C7E00008F51C4 /* AppCenterAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = CBE7122F286C7E00008F51C4 /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */;
productName = AppCenterAnalytics;
};
CBE71232286C7E00008F51C4 /* AppCenterCrashes */ = {
isa = XCSwiftPackageProductDependency;
package = CBE7122F286C7E00008F51C4 /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */;
productName = AppCenterCrashes;
};
CBE71234286C7E00008F51C4 /* AppCenterDistribute */ = {
isa = XCSwiftPackageProductDependency;
package = CBE7122F286C7E00008F51C4 /* XCRemoteSwiftPackageReference "appcenter-sdk-apple" */;
productName = AppCenterDistribute;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = CB655F5A28534E2600EBCABA /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "appcenter-sdk-apple",
"kind" : "remoteSourceControl",
"location" : "https://github.com/microsoft/appcenter-sdk-apple.git",
"state" : {
"revision" : "8354a50fe01a7e54e196d3b5493b5ab53dd5866a",
"version" : "4.4.2"
}
},
{
"identity" : "plcrashreporter",
"kind" : "remoteSourceControl",
"location" : "https://github.com/microsoft/PLCrashReporter.git",
"state" : {
"revision" : "6b27393cad517c067dceea85fadf050e70c4ceaa",
"version" : "1.10.1"
}
}
],
"version" : 2
}
10 changes: 9 additions & 1 deletion GeofenceTester/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@
//

import UIKit
import AppCenter
import AppCenterAnalytics
import AppCenterCrashes

@main
class AppDelegate: UIResponder, UIApplicationDelegate {



func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.

AppCenter.start(withAppSecret: AppCenterKey,
services:[
Analytics.self,
Crashes.self
])
return true
}

Expand Down
8 changes: 8 additions & 0 deletions GeofenceTester/Keys.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//
// Keys.swift
// GeofenceTester
//
// Created by Alexander von Below on 29.06.22.
//

let AppCenterKey = "{Your app secret here}"

0 comments on commit b2866b4

Please sign in to comment.