Skip to content

Commit

Permalink
Merge pull request #585 from adjust/v4370
Browse files Browse the repository at this point in the history
Version 4.37.0
  • Loading branch information
shashanksu authored Nov 8, 2023
2 parents eaaa504 + cfa428e commit 6c5b44f
Show file tree
Hide file tree
Showing 23 changed files with 397 additions and 322 deletions.
2 changes: 1 addition & 1 deletion Adjust/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ext {
coreMinSdkVersion = 9
coreCompileSdkVersion = 33
coreTargetSdkVersion = 33
coreVersionName = '4.36.0'
coreVersionName = '4.37.0'
defaultVersionCode = 1
webbridgeMinSdkVersion = 17
samsungReferrerMinSdkVersion = 18
Expand Down
4 changes: 2 additions & 2 deletions Adjust/sdk-core/src/main/java/com/adjust/sdk/Adjust.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private Adjust() {
*/
public static synchronized AdjustInstance getDefaultInstance() {
@SuppressWarnings("unused")
String VERSION = "!SDK-VERSION-STRING!:com.adjust.sdk:adjust-android:4.36.0";
String VERSION = "!SDK-VERSION-STRING!:com.adjust.sdk:adjust-android:4.37.0";

if (defaultInstance == null) {
defaultInstance = new AdjustInstance();
Expand Down Expand Up @@ -327,7 +327,7 @@ public static void getGoogleAdId(Context context, OnDeviceIdsRead onDeviceIdRead
public static String getAmazonAdId(final Context context) {
Context appContext = extractApplicationContext(context);
if (appContext != null) {
return Util.getFireAdvertisingId(appContext.getContentResolver());
return DeviceInfo.getFireAdvertisingIdBypassConditions(appContext.getContentResolver());
}

return null;
Expand Down
11 changes: 11 additions & 0 deletions Adjust/sdk-core/src/main/java/com/adjust/sdk/AdjustConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public class AdjustConfig {
boolean coppaCompliantEnabled;
boolean finalAttributionEnabled;
String fbAppId;
boolean readDeviceInfoOnceEnabled;

public static final String ENVIRONMENT_SANDBOX = "sandbox";
public static final String ENVIRONMENT_PRODUCTION = "production";

public static final String URL_STRATEGY_INDIA = "url_strategy_india";
public static final String URL_STRATEGY_CHINA = "url_strategy_china";
public static final String URL_STRATEGY_CN = "url_strategy_cn";
public static final String URL_STRATEGY_CN_ONLY = "url_strategy_cn_only";
public static final String DATA_RESIDENCY_EU = "data_residency_eu";
public static final String DATA_RESIDENCY_TR = "data_residency_tr";
public static final String DATA_RESIDENCY_US = "data_residency_us";
Expand Down Expand Up @@ -225,6 +227,7 @@ public void setUrlStrategy(String urlStrategy) {
if (!urlStrategy.equals(URL_STRATEGY_INDIA)
&& !urlStrategy.equals(URL_STRATEGY_CHINA)
&& !urlStrategy.equals(URL_STRATEGY_CN)
&& !urlStrategy.equals(URL_STRATEGY_CN_ONLY)
&& !urlStrategy.equals(DATA_RESIDENCY_EU)
&& !urlStrategy.equals(DATA_RESIDENCY_TR)
&& !urlStrategy.equals(DATA_RESIDENCY_US))
Expand All @@ -234,6 +237,10 @@ public void setUrlStrategy(String urlStrategy) {
this.urlStrategy = urlStrategy;
}

public void setReadDeviceInfoOnceEnabled(boolean readDeviceInfoOnceEnabled) {
this.readDeviceInfoOnceEnabled = readDeviceInfoOnceEnabled;
}

public String getBasePath() {
return basePath;
}
Expand Down Expand Up @@ -386,6 +393,10 @@ public String getFbAppId() {
return fbAppId;
}

public boolean isReadDeviceInfoOnceEnabled() {
return readDeviceInfoOnceEnabled;
}

private void setLogLevel(LogLevel logLevel, String environment) {
logger.setLogLevel(logLevel, AdjustConfig.ENVIRONMENT_PRODUCTION.equals(environment));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public interface Constants {

String SCHEME = "https";
String AUTHORITY = "app.adjust.com";
String CLIENT_SDK = "android4.36.0";
String CLIENT_SDK = "android4.37.0";
String LOGTAG = "Adjust";
String REFTAG = "reftag";
String INSTALL_REFERRER = "install_referrer";
Expand Down
Loading

0 comments on commit 6c5b44f

Please sign in to comment.