Skip to content

Commit 71e7d6a

Browse files
authored
Add iOS support to rollbar-flutter. (#8)
Add iOS support to `rollbar-flutter`.
1 parent a449c25 commit 71e7d6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1482
-36
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main]
77

88
jobs:
9-
build:
9+
build_android:
1010
runs-on: ubuntu-18.04
1111
name: Flutter version ${{ matrix.flutter_version }}
1212
strategy:
@@ -65,3 +65,33 @@ jobs:
6565
rollbar_flutter/pubspec.lock
6666
rollbar_flutter/example/pubspec.lock
6767
68+
build_macos:
69+
runs-on: macos-latest
70+
name: Flutter version ${{ matrix.flutter_version }} (iOS)
71+
strategy:
72+
matrix:
73+
flutter_version: ['1.20.4', '2.2.3']
74+
75+
steps:
76+
- uses: actions/checkout@v2
77+
- uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8
78+
with:
79+
flutter-version: ${{ matrix.flutter_version }}
80+
- name: Show environment
81+
run: |
82+
env
83+
which flutter
84+
flutter doctor -v
85+
- name: Build rollbar_flutter iOS example
86+
working-directory: ./rollbar_flutter/example/
87+
run: flutter build ios --no-codesign
88+
- uses: actions/upload-artifact@v2
89+
if: ${{ always() }}
90+
# Save dependencies used
91+
with:
92+
name: dependencies_used_${{ matrix.flutter_version }}
93+
path: |
94+
rollbar_dart/pubspec.lock
95+
rollbar_dart/example/pubspec.lock
96+
rollbar_flutter/pubspec.lock
97+
rollbar_flutter/example/pubspec.lock

rollbar_flutter/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014 Rollbar, Inc.
1+
Copyright (c) 2021 Rollbar, Inc.
22

33
MIT License
44

rollbar_flutter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Logging version-specific issues, even outside of the supported versions, is welc
6262
## Platform Support
6363

6464
* Android: Yes
65-
* iOS: In Development
65+
* iOS: Yes
6666
* Web: No
6767
* Windows: No
6868
* macOS: No
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
*.mode1v3
2+
*.mode2v3
3+
*.moved-aside
4+
*.pbxuser
5+
*.perspectivev3
6+
**/*sync/
7+
.sconsign.dblite
8+
.tags*
9+
**/.vagrant/
10+
**/DerivedData/
11+
Icon?
12+
**/Pods/
13+
**/.symlinks/
14+
profile
15+
xcuserdata
16+
**/.generated/
17+
Flutter/App.framework
18+
Flutter/Flutter.framework
19+
Flutter/Flutter.podspec
20+
Flutter/Generated.xcconfig
21+
Flutter/app.flx
22+
Flutter/app.zip
23+
Flutter/flutter_assets/
24+
Flutter/flutter_export_environment.sh
25+
ServiceDefinitions.json
26+
Runner/GeneratedPluginRegistrant.*
27+
28+
# Exceptions to above rules.
29+
!default.mode1v3
30+
!default.mode2v3
31+
!default.pbxuser
32+
!default.perspectivev3
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>App</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>io.flutter.flutter.app</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>App</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>1.0</string>
23+
<key>MinimumOSVersion</key>
24+
<string>9.0</string>
25+
</dict>
26+
</plist>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2+
#include "Generated.xcconfig"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2+
#include "Generated.xcconfig"

rollbar_flutter/example/ios/Podfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
project 'Runner', {
8+
'Debug' => :debug,
9+
'Profile' => :release,
10+
'Release' => :release,
11+
}
12+
13+
def flutter_root
14+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15+
unless File.exist?(generated_xcode_build_settings_path)
16+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17+
end
18+
19+
File.foreach(generated_xcode_build_settings_path) do |line|
20+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
21+
return matches[1].strip if matches
22+
end
23+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24+
end
25+
26+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27+
28+
flutter_ios_podfile_setup
29+
30+
target 'Runner' do
31+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
32+
end
33+
34+
post_install do |installer|
35+
installer.pods_project.targets.each do |target|
36+
flutter_additional_ios_build_settings(target)
37+
end
38+
end
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
PODS:
2+
- Flutter (1.0.0)
3+
- Rollbar (1.12.14)
4+
- rollbar_flutter (0.0.1):
5+
- Flutter
6+
- Rollbar (~> 1.12.14)
7+
8+
DEPENDENCIES:
9+
- Flutter (from `Flutter`)
10+
- rollbar_flutter (from `.symlinks/plugins/rollbar_flutter/ios`)
11+
12+
SPEC REPOS:
13+
trunk:
14+
- Rollbar
15+
16+
EXTERNAL SOURCES:
17+
Flutter:
18+
:path: Flutter
19+
rollbar_flutter:
20+
:path: ".symlinks/plugins/rollbar_flutter/ios"
21+
22+
SPEC CHECKSUMS:
23+
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
24+
Rollbar: 58f315609433558a82af5a54d7888bb020bec561
25+
rollbar_flutter: b7542ba065cdece3cef1b316c748d24d129ead51
26+
27+
PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d
28+
29+
COCOAPODS: 1.11.2

0 commit comments

Comments
 (0)