-
Notifications
You must be signed in to change notification settings - Fork 4
Implement message signing for Flutter #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 12 commits
9756f47
30906b1
a9d10f0
23aaae7
0e7083f
666c4ff
8a84734
7b9e267
4972ffc
9660898
f99ee0a
cc1ea7d
ec31621
722a3fa
67eb970
4e03059
151ee50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,8 @@ | |
| .gradle | ||
| .dart_tool | ||
| pubspec.lock | ||
| .idea | ||
| android/local.properties | ||
| android/build/ | ||
| AGENTS.md | ||
| build/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| #Thu Oct 16 13:35:42 BST 2025 | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -472,7 +472,23 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result | |
| [Approov setDevKey:call.arguments[@"devKey"]]; | ||
| result(nil); | ||
| } else if ([@"getMessageSignature" isEqualToString:call.method]) { | ||
| result([Approov getMessageSignature:call.arguments[@"message"]]); | ||
| @try { | ||
| result([Approov getMessageSignature:call.arguments[@"message"]]); | ||
| } | ||
| @catch (NSException *exception) { | ||
| result([FlutterError errorWithCode:@"Approov.getMessageSignature" | ||
| message:exception.reason | ||
| details:nil]); | ||
| } | ||
| } else if ([@"getInstallMessageSignature" isEqualToString:call.method]) { | ||
| @try { | ||
| result([Approov getInstallMessageSignature:call.arguments[@"message"]]); | ||
| } | ||
| @catch (NSException *exception) { | ||
|
||
| result([FlutterError errorWithCode:@"Approov.getInstallMessageSignature" | ||
| message:exception.reason | ||
| details:nil]); | ||
| } | ||
| } else if ([@"setUserProperty" isEqualToString:call.method]) { | ||
| [Approov setUserProperty:call.arguments[@"property"]]; | ||
| result(nil); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same as everywhere else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is automatically generated by Flutter initially, I had to update it to modern standards, minSdkVersion 21 is required for Flutter 3.10. We still support Android 5.0+ on SDK 21