-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from AppsFlyerSDK/dev/DELIVERY-54556/plugin-up…
…date Plugin 6.13.2 Update
- Loading branch information
Showing
18 changed files
with
171 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"as3mxml.sdk.framework": "/Users/qua5ar/sdks/air/AIRSDK_50.2.3" | ||
"as3mxml.sdk.framework": "/Users/q5/sdks/air" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
android/lib/src/main/java/com/appsflyer/adobeair/functions/EnableTCFDataCollection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.appsflyer.adobeair.functions; | ||
|
||
import com.adobe.fre.FREContext; | ||
import com.adobe.fre.FREFunction; | ||
import com.adobe.fre.FREObject; | ||
import com.appsflyer.AppsFlyerLib; | ||
|
||
public class EnableTCFDataCollection implements FREFunction { | ||
@Override | ||
public FREObject call(FREContext freContext, FREObject[] freObjects) { | ||
|
||
Boolean enableTCFDataCollection = false; | ||
try { | ||
enableTCFDataCollection = freObjects[0].getAsBool(); | ||
AppsFlyerLib.getInstance().enableTCFDataCollection(enableTCFDataCollection); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
return null; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
android/lib/src/main/java/com/appsflyer/adobeair/functions/SetConsentForGDPRUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.appsflyer.adobeair.functions; | ||
|
||
import com.adobe.fre.FREContext; | ||
import com.adobe.fre.FREFunction; | ||
import com.adobe.fre.FREObject; | ||
import com.appsflyer.AppsFlyerConsent; | ||
import com.appsflyer.AppsFlyerLib; | ||
|
||
public class SetConsentForGDPRUser implements FREFunction { | ||
@Override | ||
public FREObject call(FREContext freContext, FREObject[] freObjects) { | ||
|
||
Boolean hasConsentForDataUsage = false; | ||
Boolean hasConsentForAdsPersonalization = false; | ||
try { | ||
hasConsentForDataUsage = freObjects[0].getAsBool(); | ||
hasConsentForAdsPersonalization = freObjects[1].getAsBool(); | ||
AppsFlyerConsent consent = AppsFlyerConsent.forGDPRUser(hasConsentForDataUsage, hasConsentForAdsPersonalization); | ||
AppsFlyerLib.getInstance().setConsentData(consent); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
return null; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
android/lib/src/main/java/com/appsflyer/adobeair/functions/SetConsentForNonGDPRUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.appsflyer.adobeair.functions; | ||
|
||
import com.adobe.fre.FREContext; | ||
import com.adobe.fre.FREFunction; | ||
import com.adobe.fre.FREObject; | ||
import com.appsflyer.AppsFlyerConsent; | ||
import com.appsflyer.AppsFlyerLib; | ||
|
||
public class SetConsentForNonGDPRUser implements FREFunction { | ||
@Override | ||
public FREObject call(FREContext freContext, FREObject[] freObjects) { | ||
try { | ||
AppsFlyerConsent consent = AppsFlyerConsent.forNonGDPRUser(); | ||
AppsFlyerLib.getInstance().setConsentData(consent); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
|
||
return null; | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"as3mxml.sdk.framework": "/Users/qua5ar/sdks/air/AIRSDK_50.2.3" | ||
"as3mxml.sdk.framework": "/Users/q5/sdks/air" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters