Skip to content

Commit

Permalink
Merge pull request #65 from protect-earth/al/rollbar
Browse files Browse the repository at this point in the history
Basic Rollbar integration
  • Loading branch information
philsturgeon committed Jul 6, 2022
2 parents 72418d6 + 8a35178 commit 30db2aa
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
TEST_AIRTABLE_API_KEY: ${{ secrets.TEST_AIRTABLE_API_KEY }}
TEST_AIRTABLE_BASE_ID: ${{ secrets.TEST_AIRTABLE_BASE_ID }}
TEST_AIRTABLE_TABLE_NAME_PREFIX: ${{ secrets.TEST_AIRTABLE_TABLE_NAME_PREFIX }}
ROLLBAR_AUTH_TOKEN: ${{ secrets.ROLLBAR_AUTH_TOKEN }}
run: pouch
- name: Set build number
run: agvtool new-version $GITHUB_RUN_NUMBER
Expand Down
1 change: 1 addition & 0 deletions .pouch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ secrets:
- TEST_AIRTABLE_API_KEY
- TEST_AIRTABLE_BASE_ID
- TEST_AIRTABLE_TABLE_NAME_PREFIX
- ROLLBAR_AUTH_TOKEN
outputs:
- ./Tree Tracker/Secrets.swift
33 changes: 33 additions & 0 deletions Tree Tracker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@
85DC214625E0FCBF003F0721 /* GRDBImageCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85DC214525E0FCBF003F0721 /* GRDBImageCache.swift */; };
85E0E05E25B33F8C009D8FC0 /* TappableButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85E0E05D25B33F8C009D8FC0 /* TappableButton.swift */; };
85E0E06225B35744009D8FC0 /* UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85E0E06125B35744009D8FC0 /* UIView.swift */; };
9D01D562285CD2E50009F753 /* RollbarCommon in Frameworks */ = {isa = PBXBuildFile; productRef = 9D01D561285CD2E50009F753 /* RollbarCommon */; };
9D01D564285CD2E50009F753 /* RollbarNotifier in Frameworks */ = {isa = PBXBuildFile; productRef = 9D01D563285CD2E50009F753 /* RollbarNotifier */; };
9D01D566285CD2E50009F753 /* RollbarSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 9D01D565285CD2E50009F753 /* RollbarSwift */; };
9D5CDBD727BBC080007D4F0A /* ExportOptions.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9D5CDBD627BBC080007D4F0A /* ExportOptions.plist */; };
9D5D5E28284B630D00F3AD3E /* SpeciesService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D5D5E27284B630D00F3AD3E /* SpeciesService.swift */; };
9D5D5E2A284B635900F3AD3E /* AirtableSpeciesService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D5D5E29284B635900F3AD3E /* AirtableSpeciesService.swift */; };
Expand Down Expand Up @@ -281,7 +284,10 @@
85A0EF7F25A226D9003CE744 /* GRDB in Frameworks */,
85B83A0D25B87C0D0008E167 /* BSImagePicker in Frameworks */,
9DCC548C28073F0A00CF67AA /* Resolver in Frameworks */,
9D01D566285CD2E50009F753 /* RollbarSwift in Frameworks */,
9D01D564285CD2E50009F753 /* RollbarNotifier in Frameworks */,
85A0EF8325A2271C003CE744 /* Alamofire in Frameworks */,
9D01D562285CD2E50009F753 /* RollbarCommon in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -649,6 +655,9 @@
85A0EF8225A2271C003CE744 /* Alamofire */,
85B83A0C25B87C0D0008E167 /* BSImagePicker */,
9DCC548B28073F0A00CF67AA /* Resolver */,
9D01D561285CD2E50009F753 /* RollbarCommon */,
9D01D563285CD2E50009F753 /* RollbarNotifier */,
9D01D565285CD2E50009F753 /* RollbarSwift */,
);
productName = "Tree Tracker";
productReference = 853ABD522596144900144B0D /* Tree Tracker.app */;
Expand Down Expand Up @@ -688,6 +697,7 @@
85A0EF8125A2271C003CE744 /* XCRemoteSwiftPackageReference "Alamofire" */,
85B83A0B25B87C0D0008E167 /* XCRemoteSwiftPackageReference "BSImagePicker" */,
9DCC548A28073F0A00CF67AA /* XCRemoteSwiftPackageReference "Resolver" */,
9D01D560285CD2E50009F753 /* XCRemoteSwiftPackageReference "rollbar-apple" */,
);
productRefGroup = 853ABD532596144900144B0D /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -1146,6 +1156,14 @@
minimumVersion = 3.3.1;
};
};
9D01D560285CD2E50009F753 /* XCRemoteSwiftPackageReference "rollbar-apple" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/rollbar/rollbar-apple.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.0.0;
};
};
9DCC548A28073F0A00CF67AA /* XCRemoteSwiftPackageReference "Resolver" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/hmlongco/Resolver.git";
Expand All @@ -1172,6 +1190,21 @@
package = 85B83A0B25B87C0D0008E167 /* XCRemoteSwiftPackageReference "BSImagePicker" */;
productName = BSImagePicker;
};
9D01D561285CD2E50009F753 /* RollbarCommon */ = {
isa = XCSwiftPackageProductDependency;
package = 9D01D560285CD2E50009F753 /* XCRemoteSwiftPackageReference "rollbar-apple" */;
productName = RollbarCommon;
};
9D01D563285CD2E50009F753 /* RollbarNotifier */ = {
isa = XCSwiftPackageProductDependency;
package = 9D01D560285CD2E50009F753 /* XCRemoteSwiftPackageReference "rollbar-apple" */;
productName = RollbarNotifier;
};
9D01D565285CD2E50009F753 /* RollbarSwift */ = {
isa = XCSwiftPackageProductDependency;
package = 9D01D560285CD2E50009F753 /* XCRemoteSwiftPackageReference "rollbar-apple" */;
productName = RollbarSwift;
};
9D5CDBD427BBB7D2007D4F0A /* Alamofire */ = {
isa = XCSwiftPackageProductDependency;
package = 85A0EF8125A2271C003CE744 /* XCRemoteSwiftPackageReference "Alamofire" */;
Expand Down
8 changes: 8 additions & 0 deletions Tree Tracker/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import UIKit
import RollbarNotifier

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let config = RollbarConfig()
config.destination.accessToken = Secrets.rollbarAuthToken
config.destination.environment = "local"

Rollbar.initWithConfiguration(config)
Rollbar.infoMessage("App startup")

window = UIWindow()
window?.rootViewController = MainFlowViewController()
window?.makeKeyAndVisible()
Expand Down

0 comments on commit 30db2aa

Please sign in to comment.