Skip to content

Commit

Permalink
Merge pull request #8 from AppsFlyerSDK/releases/6.x.x/6.9.x/6.9.42
Browse files Browse the repository at this point in the history
Releases/6.x.x/6.9.x/6.9.42
  • Loading branch information
af-do authored Nov 23, 2023
2 parents 5389676 + 6b96783 commit 020278a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion Assets/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#import <Foundation/Foundation.h>

#import "AFUnityUtils.h"
#if __has_include(<AppsFlyerAdRevenue/AppsFlyerAdRevenue.h>)
#import <AppsFlyerAdRevenue/AppsFlyerAdRevenue.h>
#endif
Expand Down
13 changes: 13 additions & 0 deletions Assets/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ @implementation AppsFlyerAdRevenueWrapper


extern "C" {

NSString* stringFromChar(const char *str) {
return str ? [NSString stringWithUTF8String:str] : nil;
}

NSDictionary* dictionaryFromJson(const char *jsonString) {
if(jsonString){
NSData *jsonData = [[NSData alloc] initWithBytes:jsonString length:strlen(jsonString)];
NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:nil];
return dictionary;
}
return nil;
}


const void _start(int length, int* adRevenueTypes){
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 6.9.42
- Fix ios undefined symbols error

### 6.9.41
- Fix wrong AFUnityUtils import
- Add reference to the main AF SDK for asmdef file in upm branches
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions deploy/build_appsflyer_unity_adrevenue_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "Start Build for appsflyer-unity-adrevenue-generic-connector.unitypackage"

DEPLOY_PATH=outputs
UNITY_PATH="/Applications/Unity/Unity.app/Contents/MacOS/Unity"
PACKAGE_NAME="appsflyer-unity-adrevenue-generic-connector-6.9.41.unitypackage"
PACKAGE_NAME="appsflyer-unity-adrevenue-generic-connector-6.9.42.unitypackage"
mkdir -p $DEPLOY_PATH

echo "move dependency manager to root"
Expand All @@ -22,7 +22,7 @@ mv external-dependency-manager-1.2.177.unitypackage ..
Assets \
$PWD/$DEPLOY_PATH/$PACKAGE_NAME \
-quit \
&& echo "package exported successfully to outputs/appsflyer-unity-adrevenue-generic-connector-6.9.41.unitypackage" \
&& echo "package exported successfully to outputs/appsflyer-unity-adrevenue-generic-connector-6.9.42.unitypackage" \
|| echo "Failed to export package. See create_unity_core.log for more info."

echo "moving dependency manager back to deploy"
Expand Down

0 comments on commit 020278a

Please sign in to comment.