Skip to content

Commit

Permalink
Merge pull request #8 from andre-paraense/bump-survicate
Browse files Browse the repository at this point in the history
Bumping Survicate SDKs
  • Loading branch information
andre-paraense authored Sep 13, 2021
2 parents 8961621 + 565c91e commit 13f74a9
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 28 deletions.
11 changes: 8 additions & 3 deletions .idea/workspace.xml

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

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

* Bumping Survicate Android SDK to 1.3.0 and iOS SDK to 1.5.5

## 2.0.1

* Bumping Survicate Android and iOS SDKs
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.oakam.survicate.survicate_flutter_sdk'
version '2.0.1'
version '2.1.0'

buildscript {
ext.kotlin_version = '1.3.50'
Expand Down Expand Up @@ -41,5 +41,5 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.survicate:survicate-sdk:1.2.6'
implementation 'com.survicate:survicate-sdk:1.3.0'
}
12 changes: 6 additions & 6 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand All @@ -49,7 +49,7 @@ packages:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.0.3"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -80,7 +80,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: transitive
description:
Expand All @@ -99,7 +99,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -141,7 +141,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.4.2"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
survicate_flutter_sdk:
path: ../

cupertino_icons: 1.0.2
cupertino_icons: 1.0.3

dev_dependencies:
flutter_test:
Expand Down
16 changes: 8 additions & 8 deletions ios/Classes/SwiftSurvicateFlutterSdkPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class SwiftSurvicateFlutterSdkPlugin: NSObject, FlutterPlugin {
registrar.addMethodCallDelegate(instance, channel: channel)
FlutterChannel.shared.channel = channel

Survicate.shared.initialize()
SurvicateSdk.shared.initialize()
}

public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
Expand All @@ -31,19 +31,19 @@ public class SwiftSurvicateFlutterSdkPlugin: NSObject, FlutterPlugin {
if (call.method == "invokeEvent") {
let eventName = arguments["eventName"] ?? ""

Survicate.shared.invokeEvent(name: eventName)
SurvicateSdk.shared.invokeEvent(name: eventName)

result(true)
} else if (call.method == "enterScreen") {
let screenName = arguments["screenName"] ?? ""

Survicate.shared.enterScreen(value: screenName)
SurvicateSdk.shared.enterScreen(value: screenName)

result(true)
} else if (call.method == "leaveScreen") {
let screenName = arguments["screenName"] ?? ""

Survicate.shared.leaveScreen(value: screenName)
SurvicateSdk.shared.leaveScreen(value: screenName)

result(true)
} else if (call.method == "setUserTraits") {
Expand All @@ -53,19 +53,19 @@ public class SwiftSurvicateFlutterSdkPlugin: NSObject, FlutterPlugin {
traits.append(UserTrait(withName: key, value: value))
}

Survicate.shared.setUserTraits(traits: traits)
SurvicateSdk.shared.setUserTraits(traits: traits)

result(true)
} else if (call.method == "reset") {
Survicate.shared.reset()
SurvicateSdk.shared.reset()

result(true)
} else if (call.method == "registerSurveyListeners") {
Survicate.shared.delegate = survicateDelegate
SurvicateSdk.shared.delegate = survicateDelegate

result(true)
} else if (call.method == "unregisterSurveyListeners") {
Survicate.shared.delegate = nil
SurvicateSdk.shared.delegate = nil

result(true)
} else {
Expand Down
4 changes: 2 additions & 2 deletions ios/survicate_flutter_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 = 'survicate_flutter_sdk'
s.version = '2.0.1'
s.version = '2.1.0'
s.summary = 'Survicate mobile survey SDK for Flutter.'
s.description = <<-DESC
A new flutter plugin project.
Expand All @@ -15,7 +15,7 @@ A new flutter plugin project.
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'Survicate', '1.4.5'
s.dependency 'Survicate', '1.5.5'
s.platform = :ios, '10.0'

# Flutter.framework does not contain a i386 slice.
Expand Down
10 changes: 5 additions & 5 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -73,7 +73,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: transitive
description:
Expand All @@ -92,7 +92,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -127,7 +127,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.4.2"
typed_data:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: survicate_flutter_sdk
description: Survicate mobile SDK for Flutter allows you to survey specific groups of your mobile app users to understand their needs, expectations, and objections.
version: 2.0.1
version: 2.1.0
homepage: https://github.com/andre-paraense/survicate-flutter-sdk
issue_tracker: https://github.com/andre-paraense/survicate-flutter-sdk/issues

Expand Down

0 comments on commit 13f74a9

Please sign in to comment.