Skip to content

Commit

Permalink
Merged in release/16.2.1 (pull request #45)
Browse files Browse the repository at this point in the history
Release/16.2.1
  • Loading branch information
mstanic-shake committed Dec 12, 2023
2 parents c1fe33a + ff01337 commit 0868a36
Show file tree
Hide file tree
Showing 14 changed files with 105 additions and 109 deletions.
11 changes: 0 additions & 11 deletions .run/Development.run.xml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 16.2.1

- Implemented setTags method for setting tags from code

# 16.2.0

- Upgraded to Shake Android and iOS native SDK 16.2+
Expand Down
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,14 @@ Flutter plugin for [bug reporting](https://www.shakebugs.com).
Add Shake to your `pubspec.yaml` file.
```yaml
dependencies:
shake_flutter: ^16.2.0
shake_flutter: ^16.2.1
```

Install package by running command in terminal.
```bash
flutter packages get
```

### Set compileSdkVersion version in the build.gradle file

Since Shake requires `compileSdkVersion` 29 or greater, verify that `compileSdkVersion` is correctly set in the */android/app/build.gradle* file:

```groovy title="build.gradle"
android {
// highlight-next-line
compileSdkVersion 29
defaultConfig {
applicationId "com.shakebugs.flutter.example"
minSdkVersion 24
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
}
```

### Start Shake

Add Shake import.
Expand Down
10 changes: 10 additions & 0 deletions android/src/main/kotlin/com/shakebugs/flutter/ShakePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class ShakePlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
"showNotificationsSettings" -> showNotificationsSettings(call, result)
"setPushNotificationsToken" -> setPushNotificationsToken(call, result)
"showChatNotification" -> showChatNotification(call, result)
"setTags" -> setTags(call, result)
else -> result.notImplemented()
}
}
Expand Down Expand Up @@ -495,6 +496,15 @@ class ShakePlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
result.success(null)
}

private fun setTags(call: MethodCall, result: Result) {
val tags: List<String>? = call.argument("tags")
tags?.let {
Shake.getReportConfiguration().tags = tags
}

result.success(null)
}

/*
* Callbacks starters.
*/
Expand Down
File renamed without changes.
File renamed without changes.
56 changes: 28 additions & 28 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ PODS:
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreInternal (10.12.0):
- FirebaseCoreInternal (10.18.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseInstallations (10.12.0):
- FirebaseInstallations (10.18.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
Expand All @@ -37,42 +37,42 @@ PODS:
- fluttertoast (0.0.2):
- Flutter
- Toast
- GoogleDataTransport (9.2.3):
- GoogleDataTransport (9.2.5):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/AppDelegateSwizzler (7.11.1):
- GoogleUtilities/AppDelegateSwizzler (7.12.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.11.1):
- GoogleUtilities/Environment (7.12.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.11.1):
- GoogleUtilities/Logger (7.12.0):
- GoogleUtilities/Environment
- GoogleUtilities/Network (7.11.1):
- GoogleUtilities/Network (7.12.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.11.1)"
- GoogleUtilities/Reachability (7.11.1):
- "GoogleUtilities/NSData+zlib (7.12.0)"
- GoogleUtilities/Reachability (7.12.0):
- GoogleUtilities/Logger
- GoogleUtilities/UserDefaults (7.11.1):
- GoogleUtilities/UserDefaults (7.12.0):
- GoogleUtilities/Logger
- nanopb (2.30909.0):
- nanopb/decode (= 2.30909.0)
- nanopb/encode (= 2.30909.0)
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- nanopb (2.30909.1):
- nanopb/decode (= 2.30909.1)
- nanopb/encode (= 2.30909.1)
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- package_info (0.0.1):
- Flutter
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- PromisesObjC (2.2.0)
- Shake-Staging (16.2.1-rc.1574)
- PromisesObjC (2.3.1)
- Shake-Staging (16.2.2-rc.1586)
- shake_flutter (0.0.1):
- Flutter
- Shake-Staging (= 16.2.1-rc.1574)
- Shake-Staging (~> 16.2.0-rc)
- Toast (4.0.0)
- url_launcher_ios (0.0.1):
- Flutter
Expand Down Expand Up @@ -128,23 +128,23 @@ SPEC CHECKSUMS:
firebase_core: e477125798fc37cd4ab43ca6a8536bf7e0929c00
firebase_messaging: 334d68c3a36b6d4d5cd91e4f42509e0d4ae49828
FirebaseCore: f86a1394906b97ac445ae49c92552a9425831bed
FirebaseCoreInternal: 950500ad8a08963657f6d8c67b579740c06d6aa1
FirebaseInstallations: 7b99ef103f013624444c614397038219c45f8e63
FirebaseCoreInternal: 8eb002e564b533bdcf1ba011f33f2b5c10e2ed4a
FirebaseInstallations: e842042ec6ac1fd2e37d7706363ebe7f662afea4
FirebaseMessaging: bb2c4f6422a753038fe137d90ae7c1af57251316
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
fluttertoast: eb263d302cc92e04176c053d2385237e9f43fad0
GoogleDataTransport: f0308f5905a745f94fb91fea9c6cbaf3831cb1bd
GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
fluttertoast: 48c57db1b71b0ce9e6bba9f31c940ff4b001293c
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9
PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef
Shake-Staging: 12f816a9ce7526762958caf752e9bc743efb7cf0
shake_flutter: d06f7f4ab026a0d479041a66cfed13b70abb20ec
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
Shake-Staging: fc62dde4ce849ae43ba6d932c42b75fe1be6c492
shake_flutter: eef20702dc2b9af0dc0243a5a07c67914609da42
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4

PODFILE CHECKSUM: 18de14b99602a19f41203ed1bd1f3eb50097dbcf

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
36 changes: 9 additions & 27 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
EA07940529D1AA810078DE9E /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = EA07940429D1AA810078DE9E /* Localizable.strings */; };
EA67912D2B0BAC7100836439 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = EA67912C2B0BAC7100836439 /* GoogleService-Info.plist */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -67,10 +68,8 @@
E3DAE9AFB4B82A4A4545B0EE /* Pods-Runner.release-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-development.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-development.xcconfig"; sourceTree = "<group>"; };
E8D44A346F985FBE3227267D /* Pods-Runner.release-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-production.xcconfig"; sourceTree = "<group>"; };
EA07940429D1AA810078DE9E /* Localizable.strings */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; path = Localizable.strings; sourceTree = "<group>"; };
EA67912C2B0BAC7100836439 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
EA689D4E2A6E99E300CC081B /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
EA689D5D2A6E9C7A00CC081B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
EA689D612A6E9CE900CC081B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
EA689D632A6E9CFB00CC081B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
EA689D652A6ED01C00CC081B /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Main.strings; sourceTree = "<group>"; };
EA689D662A6ED01D00CC081B /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -137,7 +136,7 @@
97C146E51CF9000F007C117D = {
isa = PBXGroup;
children = (
EA689D502A6E9B4900CC081B /* config */,
EA67912A2B0BAC4C00836439 /* config */,
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
Expand Down Expand Up @@ -171,40 +170,22 @@
path = Runner;
sourceTree = "<group>";
};
EA689D502A6E9B4900CC081B /* config */ = {
EA67912A2B0BAC4C00836439 /* config */ = {
isa = PBXGroup;
children = (
EA689D532A6E9B7600CC081B /* production */,
EA689D522A6E9B6E00CC081B /* staging */,
EA689D512A6E9B6700CC081B /* development */,
EA67912B2B0BAC6000836439 /* staging */,
);
path = config;
sourceTree = "<group>";
};
EA689D512A6E9B6700CC081B /* development */ = {
EA67912B2B0BAC6000836439 /* staging */ = {
isa = PBXGroup;
children = (
EA689D612A6E9CE900CC081B /* GoogleService-Info.plist */,
);
path = development;
sourceTree = "<group>";
};
EA689D522A6E9B6E00CC081B /* staging */ = {
isa = PBXGroup;
children = (
EA689D632A6E9CFB00CC081B /* GoogleService-Info.plist */,
EA67912C2B0BAC7100836439 /* GoogleService-Info.plist */,
);
path = staging;
sourceTree = "<group>";
};
EA689D532A6E9B7600CC081B /* production */ = {
isa = PBXGroup;
children = (
EA689D5D2A6E9C7A00CC081B /* GoogleService-Info.plist */,
);
path = production;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -237,7 +218,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -275,6 +256,7 @@
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
EA67912D2B0BAC7100836439 /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
5 changes: 5 additions & 0 deletions example/lib/ui/main/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ class _HomeState extends State<Home> {
Shake.setHomeActions(homeAction);
}

void _setTags() {
Shake.setTags(["test-tag"]);
}

void _onShakingThreshold100() {
Shake.setShakingThreshold(100);
}
Expand Down Expand Up @@ -458,6 +462,7 @@ class _HomeState extends State<Home> {
Button('Set custom form', _setCustomForm),
Button('Set custom theme', _setCustomTheme),
Button('Set custom actions', _setHomeActions),
Button('Set tags', _setTags),
],
),
),
Expand Down

0 comments on commit 0868a36

Please sign in to comment.