Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
liaz-af committed Apr 21, 2024
2 parents bfd3159 + 020278a commit 85346c0
Show file tree
Hide file tree
Showing 19 changed files with 192 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
external-dependency-manager-1.2.165.unitypackage

**.meta
*.meta
.DS_Store
*.log
Logs/
Expand Down
8 changes: 8 additions & 0 deletions Assets/AppsFlyer.meta

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

11 changes: 11 additions & 0 deletions Assets/AppsFlyer/AFAdRevenueEvent.cs.meta

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

11 changes: 11 additions & 0 deletions Assets/AppsFlyer/AppsFlyerAdRevenue.cs.meta

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

8 changes: 8 additions & 0 deletions Assets/AppsFlyer/Editor.meta

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

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

8 changes: 8 additions & 0 deletions Assets/AppsFlyer/Plugins.meta

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

8 changes: 8 additions & 0 deletions Assets/AppsFlyer/Plugins/iOS.meta

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

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.mm"
#if __has_include(<AppsFlyerAdRevenue/AppsFlyerAdRevenue.h>)
#import <AppsFlyerAdRevenue/AppsFlyerAdRevenue.h>
#endif
Expand Down
27 changes: 27 additions & 0 deletions Assets/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.h.meta

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

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
37 changes: 37 additions & 0 deletions Assets/AppsFlyer/Plugins/iOS/AppsFlyerAdRevenueWrapper.mm.meta

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

37 changes: 37 additions & 0 deletions Assets/AppsFlyer/Plugins/iOS/SwiftForUnity.swift.meta

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

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 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

### 6.9.4
- Updated native connector versions to 6.9.1
- Additional mediation networks available: customMediation and directMonetization
Expand Down
Binary file not shown.
Binary file not shown.
15 changes: 10 additions & 5 deletions deploy/build_appsflyer_unity_adrevenue_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ 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.4.unitypackage"
PACKAGE_NAME="appsflyer-unity-adrevenue-generic-connector-6.9.42.unitypackage"
mkdir -p $DEPLOY_PATH

echo "move dependency manager to root"
mv external-dependency-manager-1.2.144.unitypackage ..
mv external-dependency-manager-1.2.177.unitypackage ..

# Build the .unitypackage
/Applications/Unity/Hub/Editor/2021.3.11f1/Unity.app/Contents/MacOS/Unity \
-gvh_disable \
-batchmode \
-importPackage external-dependency-manager-1.2.144.unitypackage \
-importPackage external-dependency-manager-1.2.177.unitypackage \
-nographics \
-logFile create_unity_core.log \
-projectPath $PWD/../ \
-exportPackage \
Assets \
$PWD/$DEPLOY_PATH/$PACKAGE_NAME \
-quit \
&& echo "package exported successfully to outputs/appsflyer-unity-adrevenue-generic-connector-6.9.4.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"
mv ../external-dependency-manager-1.2.144.unitypackage .
mv ../external-dependency-manager-1.2.177.unitypackage .

if [ "$1" == "-p" ]; then
echo "removing ./Library"
Expand All @@ -43,6 +43,11 @@ echo "Moving $DEPLOY_PATH/$PACKAGE_NAME to root"
mv ./outputs/$PACKAGE_NAME ..
echo "removing ./deploy/outputs"
rm -rf ./outputs
echo "removing ./Assets extra files"
rm -rf ../Assets/ExternalDependencyManager
rm -rf ../Assets/PlayServicesResolver
rm ../Assets/ExternalDependencyManager.meta
rm ../Assets/PlayServicesResolver.meta
else
echo "dev mode. No files removed. Run with -p flag for production build."
fi
Binary file not shown.
Binary file not shown.

0 comments on commit 85346c0

Please sign in to comment.