-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example integrating Rollbar to an App via Cocoapods
- Loading branch information
Showing
11 changed files
with
549 additions
and
0 deletions.
There are no files selected for viewing
414 changes: 414 additions & 0 deletions
414
Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...egration/CocoapodsApp/CocoapodsApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
Examples/Integration/CocoapodsApp/CocoapodsApp.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
.../Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...es/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
Examples/Integration/CocoapodsApp/CocoapodsApp/CocoapodsApp.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import SwiftUI | ||
import RollbarNotifier | ||
|
||
@main | ||
struct CocoapodsApp: App { | ||
init() { | ||
let config = RollbarConfig.mutableConfig(withAccessToken: "ACCESSTOKEN") | ||
config.developerOptions.suppressSdkInfoLogging = false | ||
|
||
Rollbar.initWithConfiguration(config) | ||
} | ||
|
||
var body: some Scene { | ||
WindowGroup { | ||
ContentView() | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
Examples/Integration/CocoapodsApp/CocoapodsApp/ContentView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import SwiftUI | ||
import RollbarNotifier | ||
|
||
struct ContentView: View { | ||
var body: some View { | ||
VStack { | ||
Image(systemName: "globe") | ||
.imageScale(.large) | ||
.foregroundColor(.accentColor) | ||
Text("Hello, world!") | ||
} | ||
.padding() | ||
.onAppear { | ||
Rollbar.infoMessage("ContentView Appeared") | ||
} | ||
} | ||
} | ||
|
||
struct ContentView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
ContentView() | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...tegration/CocoapodsApp/CocoapodsApp/Preview Content/Preview Assets.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
platform :ios, '14.0' | ||
use_frameworks! | ||
|
||
target 'CocoapodsApp' do | ||
pod 'RollbarNotifier', '~> 3.1.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
PODS: | ||
- RollbarCommon (3.1.0) | ||
- RollbarCrash (3.1.0) | ||
- RollbarNotifier (3.1.0): | ||
- RollbarCommon (~> 3.1.0) | ||
- RollbarCrash (~> 3.1.0) | ||
- RollbarReport (~> 3.1.0) | ||
- RollbarReport (3.1.0): | ||
- RollbarCrash (~> 3.1.0) | ||
|
||
DEPENDENCIES: | ||
- RollbarCommon (from `../../../`) | ||
- RollbarCrash (from `../../../`) | ||
- RollbarNotifier (from `../../../`) | ||
- RollbarReport (from `../../../`) | ||
|
||
EXTERNAL SOURCES: | ||
RollbarCommon: | ||
:path: "../../../" | ||
RollbarCrash: | ||
:path: "../../../" | ||
RollbarNotifier: | ||
:path: "../../../" | ||
RollbarReport: | ||
:path: "../../../" | ||
|
||
SPEC CHECKSUMS: | ||
RollbarCommon: 125fb7e9fa63ea79ef33ee0f0e50456bb9f9cdf5 | ||
RollbarCrash: d831f9c067bbe2147080a700c0a7ebc346d31db3 | ||
RollbarNotifier: c712946d79d82103fc2ae07956c768ba8705dee2 | ||
RollbarReport: 2f42cb47ce9f0be32c5e040e702f936b99e62542 | ||
|
||
PODFILE CHECKSUM: 67f7079dea0a413cbd163635c7d721b213865260 | ||
|
||
COCOAPODS: 1.12.1 |