Skip to content

Commit

Permalink
Updated to version 3.12.0+nh
Browse files Browse the repository at this point in the history
  • Loading branch information
melih-useinsider committed Sep 12, 2024
1 parent 0a2700b commit 5975978
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 71 deletions.
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,22 @@

## 3.10.9+nh

* iOS Geofence SDK updated.
* iOS Geofence SDK updated.

## 3.11.0

* iOS & Android SDK updated.
* Removed setCustomKeyValuePairForPushIntent method.

## 3.11.0+nh

* iOS & Android SDK updated.
* Removed setCustomKeyValuePairForPushIntent method.

## 3.12.0

* iOS & Android SDK updated.

## 3.12.0+nh

* iOS & Android SDK updated.
19 changes: 10 additions & 9 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.useinsider.insider.flutter_insider'
version '3.10.9+nh-SNAPSHOT'
version '3.12.0+nh-SNAPSHOT'

buildscript {
repositories {
Expand All @@ -8,7 +8,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.android.tools.build:gradle:8.4.2'
}
}

Expand All @@ -23,10 +23,10 @@ rootProject.allprojects {
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
compileSdkVersion 34

defaultConfig {
minSdkVersion 18
minSdkVersion 21
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
Expand All @@ -37,13 +37,14 @@ android {
dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'

implementation 'com.google.android.gms:play-services-location:21.0.1'
implementation 'com.google.firebase:firebase-messaging:23.0.5'
implementation 'com.google.firebase:firebase-messaging:24.0.0'
implementation 'com.google.android.gms:play-services-location:21.3.0'
implementation 'com.google.android.play:review:2.0.1'

implementation 'com.appsflyer:af-android-sdk:6.14.0'
implementation 'com.useinsider:insider:14.2.5-nh'
implementation 'com.useinsider:insider:14.4.0-nh'
implementation 'com.useinsider:insiderhybrid:1.1.5'

implementation 'com.appsflyer:af-android-sdk:6.14.0'
}
6 changes: 3 additions & 3 deletions ios/flutter_insider.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'flutter_insider'
s.version = '3.10.9'
s.version = '3.12.0'
s.summary = 'Flutter Plugin For Insider SDK'
s.description = <<-DESC
Flutter Plugin For Insider SDK
Expand All @@ -12,8 +12,8 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'InsiderMobile', '13.4.3'
s.dependency 'InsiderGeofence', '1.1.3'
s.dependency 'InsiderMobile', '13.6.2'
s.dependency 'InsiderGeofence', '1.2.0'
s.dependency 'InsiderHybrid', '1.4.0'
s.ios.deployment_target = '12.0'
end
2 changes: 1 addition & 1 deletion lib/flutter_insider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class FlutterInsider {

args["appGroup"] = appGroup;
args["partnerName"] = partnerName;
args["sdkVersion"] = "F-3.10.9+nh";
args["sdkVersion"] = "F-3.12.0+nh";

if (customEndpoint != null) {
args["customEndpoint"] = customEndpoint;
Expand Down
11 changes: 5 additions & 6 deletions lib/src/identifiers.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:async';
import 'constants.dart';

class FlutterInsiderIdentifiers {
Expand All @@ -8,39 +7,39 @@ class FlutterInsiderIdentifiers {
identifiers = new Map<String, String>();
}

Future<FlutterInsiderIdentifiers> addEmail(String email) async {
FlutterInsiderIdentifiers addEmail(String email) {
if (email == null) return this;

identifiers!.addAll({Constants.ADD_EMAIL: email});

return this;
}

Future<FlutterInsiderIdentifiers> addPhoneNumber(String phoneNumber) async {
FlutterInsiderIdentifiers addPhoneNumber(String phoneNumber) {
if (phoneNumber == null) return this;

identifiers!.addAll({Constants.ADD_PHONE_NUMBER: phoneNumber});

return this;
}

Future<FlutterInsiderIdentifiers> addUserID(String userID) async {
FlutterInsiderIdentifiers addUserID(String userID) {
if (userID == null) return this;

identifiers!.addAll({Constants.ADD_USER_ID: userID});

return this;
}

Future<FlutterInsiderIdentifiers> addCustomIdentifier(String key, String value) async {
FlutterInsiderIdentifiers addCustomIdentifier(String key, String value) {
if (key == null || value == null) return this;

identifiers!.addAll({key: value});

return this;
}

Future<Map?> getIdentifiers() async {
Map? getIdentifiers() {
return identifiers;
}
}
Loading

0 comments on commit 5975978

Please sign in to comment.