Skip to content

Commit

Permalink
Merge pull request #35 from AppsFlyerSDK/6.3.10
Browse files Browse the repository at this point in the history
6.3.10
  • Loading branch information
sokoloff06 authored Jun 1, 2021
2 parents 4a18632 + 90cfd20 commit e430893
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 31 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Supported platforms:

Based on:

- iOS AppsFlyerSDK **v6.2.4**
- Android AppsFlyerSDK **v6.2.3**
- iOS AppsFlyerSDK **v6.3.0**
- Android AppsFlyerSDK **v6.3.1**

Built with:

Expand Down Expand Up @@ -109,7 +109,7 @@ Here is what the script is doing. In case of any issues you can perform those st
1. Decode the apk using [apktool](https://ibotpeaches.github.io/Apktool/). This will create app_name folder.
`apktool d app_name.apk`
2. Download
the [AppsFlyer SDK jar/aar](https://repo.maven.apache.org/maven2/com/appsflyer/af-android-sdk/6.2.3/af-android-sdk-6.2.3.aar)
the [AppsFlyer SDK jar/aar](https://repo.maven.apache.org/maven2/com/appsflyer/af-android-sdk/6.3.1/af-android-sdk-6.3.1.aar)
of the same version that was used in the apk
3. Extract files `a-` and `b-` from the jar (by renaming jar into a zip) and place them into the folder with the
decompiled apk to `app_name/unknown/com/appsflyer/internal`
Expand Down
Binary file added SampleApp/libs/AppsFlyerAIRExtension.ane
Binary file not shown.
Binary file modified bin/AppsFlyerAIRExtension-strict.ane
Binary file not shown.
Binary file modified bin/AppsFlyerAIRExtension-witout-gp-support.ane
Binary file not shown.
Binary file modified bin/AppsFlyerAIRExtension-witout-gp.ane
Binary file not shown.
Binary file modified bin/AppsFlyerAIRExtension.ane
Binary file not shown.
Binary file modified bin/AppsFlyerAIRExtension.swc
Binary file not shown.
2 changes: 1 addition & 1 deletion bin/af_apk_fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ read -p 'Enter the name of they key from the keystore above that should be used
mkdir tmp;

# Download relecant SDK version for further exctraction of needed files
curl -o ./tmp/android_sdk.zip 'https://repo.maven.apache.org/maven2/com/appsflyer/af-android-sdk/6.2.3/af-android-sdk-6.2.3.aar';
curl -o ./tmp/android_sdk.zip 'https://repo.maven.apache.org/maven2/com/appsflyer/af-android-sdk/6.3.1/af-android-sdk-6.3.1.aar';

# Extract jar from the aar
unzip ./tmp/android_sdk.zip -d tmp/android_sdk;
Expand Down
2 changes: 1 addition & 1 deletion build/extension.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<extension xmlns="http://ns.adobe.com/air/extension/33.1">
<id>com.appsflyer.adobeair</id>
<versionNumber>6.2.41</versionNumber>
<versionNumber>6.3.10</versionNumber>
<platforms>
<platform name="Android-ARM">
<applicationDeployment>
Expand Down
25 changes: 0 additions & 25 deletions ios/AppsFlyerAIRExtension/AppsFlyerAIRExtension.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#define DEFINE_ANE_FUNCTION(fn) FREObject (fn)(FREContext context, void* functionData, uint32_t argc, FREObject argv[])

typedef void (*bypassDidFinishLaunchingWithOption)(id, SEL, NSInteger);

@implementation AppsFlyerAIRExtension

static IMP __original_applicationDidBecomeActive_Imp;
Expand Down Expand Up @@ -53,18 +51,6 @@ BOOL didReceiveRemoteNotificationHandler(id self, SEL _cmd, UIApplication* appli
return ((BOOL(*)(id, SEL, UIApplication*, NSDictionary*))__original_didReceiveRemoteNotification_Imp)(self, _cmd, application, userInfo);
}

static IMP __original_didFinishLaunchingWithOptions_Imp;
BOOL didFinishLaunchingWithOptions(id self, SEL _cmd, UIApplication* application, NSDictionary<UIApplicationLaunchOptionsKey,id> * launchOptions) {
NSLog(@"[AppsFlyerAIRExtension] didFinishLaunchingWithOptions: %@", self);
SEL SKSel = NSSelectorFromString(@"__willResolveSKRules:");
id AppsFlyer = [AppsFlyerLib shared];
if ([AppsFlyer respondsToSelector:SKSel]) {
bypassDidFinishLaunchingWithOption msgSend = (bypassDidFinishLaunchingWithOption)objc_msgSend;
msgSend(AppsFlyer, SKSel, 2);
}
return ((BOOL(*)(id, SEL, UIApplication*, NSDictionary<UIApplicationLaunchOptionsKey,id> *))__original_didFinishLaunchingWithOptions_Imp)(self, _cmd, application, launchOptions);
}

+ (void) load {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
Expand All @@ -78,21 +64,18 @@ + (void) load {
SEL originalOpenURLDeprecatedSelector = @selector(application:openURL:sourceApplication:annotation:);
SEL originalOpenURLSelector = @selector(application:openURL:options:);
SEL originalDidReceiveRemoteNotificationSelector = @selector(application:didReceiveRemoteNotification:);
SEL originalDidFinishLaunchingWithOptionsSelector = @selector(application:didFinishLaunchingWithOptions:);

Method originalApplicationDidBecomeActiveMethod = class_getInstanceMethod(objectClass, originalApplicationDidBecomeActiveSelector);
Method originalContinueUserActivityMethod = class_getInstanceMethod(objectClass, originalContinueUserActivitySelector);
Method originalOpenURLDeprecatedMethod = class_getInstanceMethod(objectClass, originalOpenURLDeprecatedSelector);
Method originalOpenURLMethod = class_getInstanceMethod(objectClass, originalOpenURLSelector);
Method originalDidReceiveRemoteNotificationMethod = class_getInstanceMethod(objectClass, originalDidReceiveRemoteNotificationSelector);
Method originalDidFinishLaunchingWithOptionsMethod = class_getInstanceMethod(objectClass, originalDidFinishLaunchingWithOptionsSelector);

__original_applicationDidBecomeActive_Imp = method_setImplementation(originalApplicationDidBecomeActiveMethod, (IMP)applicationDidBecomeActive);
__original_continueUserActivity_Imp = method_setImplementation(originalContinueUserActivityMethod, (IMP)continueUserActivity);
__original_openURLDeprecated_Imp = method_setImplementation(originalOpenURLDeprecatedMethod, (IMP)openURLDeprecated);
__original_openURL_Imp = method_setImplementation(originalOpenURLMethod, (IMP)openURL);
__original_didReceiveRemoteNotification_Imp = method_setImplementation(originalDidReceiveRemoteNotificationMethod, (IMP)didReceiveRemoteNotificationHandler);
__original_didFinishLaunchingWithOptions_Imp = method_setImplementation(originalDidFinishLaunchingWithOptionsMethod, (IMP)didFinishLaunchingWithOptions);
}
});
}
Expand Down Expand Up @@ -455,14 +438,6 @@ + (NSData *)dataFromHexString:(NSString *)string
return NULL;
}

// DEFINE_ANE_FUNCTION(requestATTPermission){
// if (@available(iOS 14, *)) {
// [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
// //....
// }];
// }
// return NULL;
// }

void AFExtContextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx, uint32_t* numFunctionsToTest, const FRENamedFunction** functionsToSet)
{
Expand Down
2 changes: 1 addition & 1 deletion ios/AppsFlyerAIRExtension/AppsFlyerLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// AppsFlyerLib.h
// AppsFlyerLib
//
// AppsFlyer iOS SDK 6.2.4 (71)
// AppsFlyer iOS SDK 6.3.0 (11)
// Copyright (c) 2012-2020 AppsFlyer Ltd. All rights reserved.
//

Expand Down
Binary file modified ios/libAppsFlyerLib-strict.a
Binary file not shown.
Binary file modified ios/libAppsFlyerLib.a
Binary file not shown.
Binary file modified res/AF-Android-SDK.jar
Binary file not shown.

0 comments on commit e430893

Please sign in to comment.