Skip to content

Commit

Permalink
v10.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Apr 11, 2023
1 parent 3629d64 commit 9296fce
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 9 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@
filePath = "../Sources/ObjCSources/GleapCore.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "413"
endingLineNumber = "413"
startingLineNumber = "425"
endingLineNumber = "425"
landmarkName = "-startFeedbackFlow:withOptions:"
landmarkType = "7">
</BreakpointContent>
Expand Down Expand Up @@ -526,8 +526,8 @@
filePath = "../Sources/ObjCSources/GleapCore.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "384"
endingLineNumber = "384"
startingLineNumber = "396"
endingLineNumber = "396"
landmarkName = "-startFeedbackFlow:withOptions:"
landmarkType = "7">
</BreakpointContent>
Expand Down
4 changes: 2 additions & 2 deletions Example/Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, GleapDelegate {

Gleap.setDisableInAppNotifications(false);

Gleap.setApiUrl("http://localhost:9000")
Gleap.setFrameUrl("http://localhost:3001/appnew.html")
//Gleap.setApiUrl("http://localhost:9000")
//Gleap.setFrameUrl("http://localhost:3001/appnew.html")
Gleap.initialize(withToken: "KProDXhMS0V3UUku2iNnrZ4XsBnAYzxt")

Gleap.showFeedbackButton(true)
Expand Down
6 changes: 4 additions & 2 deletions Example/Example/DemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ - (IBAction)sendData:(id)sender {
// [Gleap openHelpCenter: NO];
// [Gleap showSurvey: @"1g9pym"];

GleapUserProperty * user = [[GleapUserProperty alloc] init];
/*GleapUserProperty * user = [[GleapUserProperty alloc] init];
user.name = @"Luko";
user.email = @"[email protected]";
user.customData = @{
@"testaaa3": @"gg222gg",
@"test": @"gggg",
};
[Gleap identifyUserWith: @"23939233334" andData: user];
[Gleap identifyUserWith: @"23939233334" andData: user];*/

[Gleap startBot: @"64350c6b39c89ea4650c36ae" showBackButton: YES];
}

@end
2 changes: 1 addition & 1 deletion Gleap.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "Gleap"
s.version = "10.0.0"
s.version = "10.0.3"
s.summary = "In-App Bug Reporting and Testing for Apps. Learn more at https://gleap.io"
s.homepage = "https://gleap.io"
s.license = { :type => 'Commercial', :file => 'LICENSE.md' }
Expand Down
7 changes: 7 additions & 0 deletions Sources/ObjCSources/GleapCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ typedef enum surveyFormat { SURVEY, SURVEY_FULL } GleapSurveyFormat;
*/
+ (Boolean)startFeedbackFlow:(NSString * _Nullable)feedbackFlow showBackButton:(BOOL)showBackButton;

/**
* Start the bot with the given id.
* @author Gleap
*
*/
+ (void)startBot:(NSString * _Nullable)botId showBackButton:(BOOL)showBackButton;

/**
* Set the visibility of the feedback button.
* @author Gleap
Expand Down
12 changes: 12 additions & 0 deletions Sources/ObjCSources/GleapCore.m
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,18 @@ + (void)openNewsArticle:(NSString *)articleId andShowBackButton:(Boolean)showBac
}
}

+ (void)startBot:(NSString * _Nullable)botId showBackButton:(BOOL)showBackButton {
if ([Gleap open]) {
[[GleapWidgetManager sharedInstance] sendMessageWithData: @{
@"name": @"start-bot",
@"data": @{
@"botId": botId,
@"hideBackButton": @(!showBackButton)
}
}];
}
}

+ (void)openConversation:(NSString *)shareToken {
if ([Gleap open]) {
[[GleapWidgetManager sharedInstance] sendMessageWithData: @{
Expand Down

0 comments on commit 9296fce

Please sign in to comment.