Skip to content

Commit

Permalink
v13.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed May 19, 2024
1 parent 4e0c308 commit b8b06c1
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 110 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 13.7.0
Updated native dependencies
Added executionType to AI tools

## 13.6.1
Updated native dependencies

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Checkout our [documentation](https://gleap.io/docs/flutter/) for full reference.

```dart
dependencies:
gleap_sdk: "^13.6.1"
gleap_sdk: "^13.7.0"
```

**Flutter v2 support**
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ android {
}

dependencies {
implementation 'io.gleap:gleap-android-sdk:13.6.1'
implementation 'io.gleap:gleap-android-sdk:13.7.0'
}
}
3 changes: 2 additions & 1 deletion android/src/main/java/io/gleap/gleap_sdk/GleapSdkPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
String name = (String) toolMap.get("name");
String description = (String) toolMap.get("description");
String response = (String) toolMap.get("response");
String executionType = (String) toolMap.get("executionType");
ArrayList<Map<String, Object>> parametersList = (ArrayList<Map<String, Object>>) toolMap.get("parameters");
ArrayList<GleapAiToolParameter> gleapParameters = new ArrayList<>();

Expand All @@ -697,7 +698,7 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
}

GleapAiTool gleapAiTool = new GleapAiTool(
name, description, response, gleapParameters.toArray(new GleapAiToolParameter[0]));
name, description, response, executionType, gleapParameters.toArray(new GleapAiToolParameter[0]));

gleapAiTools.add(gleapAiTool);
}
Expand Down
14 changes: 7 additions & 7 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PODS:
- Flutter (1.0.0)
- Gleap (13.6.1)
- gleap_sdk (13.5.0):
- Gleap (13.7.0)
- gleap_sdk (13.7.0):
- Flutter
- Gleap (= 13.6.1)
- Gleap (= 13.7.0)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand All @@ -20,10 +20,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/gleap_sdk/ios"

SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
Gleap: 5a7d30cd0d48d2c61c20dadc23393e50ce3737dc
gleap_sdk: 051f7775857048d03898849131a85f6a3a8bf810
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Gleap: 86ac70ddd922b57de776604fff0663b65bdd0a72
gleap_sdk: d81cb59578e820d02ce269a316f106b6c5756f91

PODFILE CHECKSUM: 1a782344d33c12ced0182eeab11e8668d253eb48

COCOAPODS: 1.15.2
COCOAPODS: 1.14.3
8 changes: 4 additions & 4 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1510;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -368,7 +368,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 5DPA7Y3N8J;
DEVELOPMENT_TEAM = 7UGU2CH934;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
Expand Down Expand Up @@ -493,7 +493,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 5DPA7Y3N8J;
DEVELOPMENT_TEAM = 7UGU2CH934;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
Expand All @@ -513,7 +513,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 5DPA7Y3N8J;
DEVELOPMENT_TEAM = 7UGU2CH934;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
3 changes: 2 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class _MyAppState extends State<MyApp> {
);

await Gleap.initialize(
token: '<YOUR_API_TOKEN>',
token: 'ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV',
);

Gleap.setTags(tags: ['DevTag']);
Expand All @@ -62,6 +62,7 @@ class _MyAppState extends State<MyApp> {
description: 'Send money to a given contact.',
response:
'The transfer got initiated but not completed yet. The user must confirm the transfer in the banking app.',
executionType: 'button',
parameters: [
AIToolParams(
name: 'amount',
Expand Down
60 changes: 18 additions & 42 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ packages:
dependency: "direct main"
description:
name: cupertino_icons
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
url: "https://pub.dev"
source: hosted
version: "1.0.6"
version: "1.0.8"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -86,7 +86,7 @@ packages:
path: ".."
relative: true
source: path
version: "13.2.3"
version: "13.7.0"
js:
dependency: transitive
description:
Expand All @@ -99,34 +99,10 @@ packages:
dependency: transitive
description:
name: json_annotation
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
url: "https://pub.dev"
source: hosted
version: "4.8.1"
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
url: "https://pub.dev"
source: hosted
version: "10.0.0"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
url: "https://pub.dev"
source: hosted
version: "2.0.1"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
url: "https://pub.dev"
source: hosted
version: "2.0.1"
version: "4.9.0"
lints:
dependency: transitive
description:
Expand All @@ -139,34 +115,34 @@ packages:
dependency: transitive
description:
name: matcher
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
source: hosted
version: "0.12.16+1"
version: "0.12.16"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
source: hosted
version: "0.8.0"
version: "0.5.0"
meta:
dependency: transitive
description:
name: meta
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.10.0"
path:
dependency: transitive
description:
name: path
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
version: "1.8.3"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -228,14 +204,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
vm_service:
web:
dependency: transitive
description:
name: vm_service
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
name: web
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "13.0.0"
version: "0.3.0"
sdks:
dart: ">=3.2.0-0 <4.0.0"
dart: ">=3.2.0-194.0.dev <4.0.0"
flutter: ">=3.0.0"
2 changes: 2 additions & 0 deletions ios/Classes/GleapSdkPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call
NSString *name = toolDict[@"name"];
NSString *toolDescription = toolDict[@"description"];
NSString *response = toolDict[@"response"];
NSString *executionType = toolDict[@"executionType"];
NSArray *parametersArray = toolDict[@"parameters"];

if (name && toolDescription && response && parametersArray) {
Expand Down Expand Up @@ -494,6 +495,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call
[[GleapAiTool alloc] initWithName:name
toolDescription:toolDescription
response:response
executionType:executionType
parameters:parameters];

[aiTools addObject:aiTool];
Expand Down
4 changes: 2 additions & 2 deletions ios/gleap_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'gleap_sdk'
s.version = '13.6.1'
s.version = '13.7.0'
s.summary = 'Gleap SDK for Flutter'
s.description = 'The Gleap SDK for Flutter is the easiest way to integrate Gleap into your apps!'
s.homepage = 'https://gleap.io'
Expand All @@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.platform = :ios, '9.0'
s.dependency 'Gleap', '13.6.1'
s.dependency 'Gleap', '13.7.0'

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
2 changes: 2 additions & 0 deletions lib/models/ai_tool_models/ai_tool_model/ai_tool_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ class AITool {
String name;
String description;
String response;
String executionType;
List<AIToolParams> parameters;

AITool({
required this.name,
required this.description,
required this.response,
required this.executionType,
required this.parameters,
});

Expand Down
2 changes: 2 additions & 0 deletions lib/models/ai_tool_models/ai_tool_model/ai_tool_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b8b06c1

Please sign in to comment.