Skip to content

Commit 3104fcc

Browse files
authored
Merge pull request #52 from AppsFlyerSDK/6.0.6
6.0.6
2 parents 11e7a72 + 8e9a3e6 commit 3104fcc

File tree

18 files changed

+95
-118
lines changed

18 files changed

+95
-118
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ node_modules/
105105

106106
covBadgeGen.js
107107
coverage/
108+
.env

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Versions
22

3+
## 6.0.5
4+
- Update SDK version to:
5+
- Android: 5.4.5
6+
- iOS: 6.0.5
7+
- Update Google install referrer to 2.1
8+
- Added support for: https://support.appsflyer.com/hc/en-us/articles/207032066#additional-apis-kids-apps
9+
- Fixed typo in `validateAndLogInAppPurchase`
10+
311
## 6.0.3+5
412
- Add null check for context in Android
513

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ When submitting an issue please specify your AppsFlyer sign-up (account) email ,
3232

3333
### This plugin is built for
3434

35-
- iOS AppsFlyerSDK **v6.0.3**
36-
- Android AppsFlyerSDK **v5.4.1**
35+
- iOS AppsFlyerSDK **v6.0.5**
36+
- Android AppsFlyerSDK **v5.4.5**
3737

3838
---
3939
## <a id="v6-breaking-changes"> **❗Migration Guide to v6**

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ android {
3535
dependencies {
3636
implementation fileTree(dir: 'libs', include: ['*.jar'])
3737
implementation 'androidx.appcompat:appcompat:1.0.0'
38-
implementation 'com.appsflyer:af-android-sdk:5.4.3'
39-
implementation 'com.android.installreferrer:installreferrer:1.0'
38+
implementation 'com.appsflyer:af-android-sdk:5.4.5'
39+
implementation 'com.android.installreferrer:installreferrer:2.1'
4040
}

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ flutter {
5757
dependencies {
5858
testImplementation 'junit:junit:4.12'
5959
implementation 'com.appsflyer:af-android-sdk:5.4.1'
60-
implementation 'com.android.installreferrer:installreferrer:1.0'
60+
implementation 'com.android.installreferrer:installreferrer:2.1'
6161
androidTestImplementation 'androidx.test:runner:1.1.0'
6262
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
6363
}

example/ios/Podfile

Lines changed: 0 additions & 87 deletions
This file was deleted.

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,12 @@
229229
files = (
230230
);
231231
inputPaths = (
232+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
233+
"${PODS_ROOT}/../Flutter/Flutter.framework",
232234
);
233235
name = "[CP] Embed Pods Frameworks";
234236
outputPaths = (
237+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
235238
);
236239
runOnlyForDeploymentPostprocessing = 0;
237240
shellPath = /bin/sh;
@@ -311,7 +314,6 @@
311314
/* Begin XCBuildConfiguration section */
312315
97C147031CF9000F007C117D /* Debug */ = {
313316
isa = XCBuildConfiguration;
314-
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
315317
buildSettings = {
316318
ALWAYS_SEARCH_USER_PATHS = NO;
317319
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
@@ -368,7 +370,6 @@
368370
};
369371
97C147041CF9000F007C117D /* Release */ = {
370372
isa = XCBuildConfiguration;
371-
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
372373
buildSettings = {
373374
ALWAYS_SEARCH_USER_PATHS = NO;
374375
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;

example/lib/main.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1+
import 'dart:async';
2+
3+
import 'package:flutter_dotenv/flutter_dotenv.dart';
4+
15
import './main_page.dart';
26
import 'package:flutter/material.dart';
37

4-
void main() {
8+
Future<void> main() async {
9+
await DotEnv().load('.env');
510
runApp(MyApp());
611
}
7-
class MyApp extends StatelessWidget {
812

13+
class MyApp extends StatelessWidget {
914
@override
1015
Widget build(BuildContext context) {
1116
return new MaterialApp(
12-
home: new MainPage(),
17+
home: new MainPage(),
1318
);
1419
}
1520
}
16-
17-

example/lib/main_page.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import 'dart:async';
22
import 'package:appsflyer_sdk/appsflyer_sdk.dart';
33
import 'package:flutter/material.dart';
4+
import 'package:flutter_dotenv/flutter_dotenv.dart';
5+
46
import 'home_container.dart';
57

68
class MainPage extends StatefulWidget {
@@ -17,7 +19,9 @@ class MainPageState extends State<MainPage> {
1719
void initState() {
1820
super.initState();
1921
final AppsFlyerOptions options = AppsFlyerOptions(
20-
afDevKey: "afDevKey", appId: "123456789", showDebug: true);
22+
afDevKey: DotEnv().env["DEV_KEY"],
23+
appId: DotEnv().env["APP_ID"],
24+
showDebug: true);
2125
_appsflyerSdk = AppsflyerSdk(options);
2226
}
2327

example/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies:
2121
# The following adds the Cupertino Icons font to your application.
2222
# Use with the CupertinoIcons class for iOS style icons.
2323
cupertino_icons: ^0.1.2
24+
flutter_dotenv: ^2.1.0
2425

2526
dev_dependencies:
2627
flutter_test:
@@ -36,7 +37,8 @@ flutter:
3637
# the material Icons class.
3738
uses-material-design: true
3839
# To add assets to your application, add an assets section, like this:
39-
# assets:
40+
assets:
41+
- .env
4042
# - images/a_dot_burr.jpeg
4143
# - images/a_dot_ham.jpeg
4244
# An image asset can refer to one or more resolution-specific "variants", see

0 commit comments

Comments
 (0)