Skip to content

Commit

Permalink
chore: [3861] Updated play service ads to version 22.6.0 (#3865)
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah authored Jan 25, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent aca931a commit c300c4e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -309,7 +309,7 @@ public File getGradleProjectDirectory() {
private static final Map<String,String> defaultPlayServiceVersions = new HashMap<>();
static {
// Defaults obtained from https://developers.google.com/android/guides/setup
defaultPlayServiceVersions.put("ads", "19.8.0");
defaultPlayServiceVersions.put("ads", "22.6.0");
defaultPlayServiceVersions.put("ads-identifier", "18.0.1");
defaultPlayServiceVersions.put("ads-lite", "21.5.0");
defaultPlayServiceVersions.put("afs-native", "19.0.3");
@@ -1098,6 +1098,9 @@ public boolean build(File sourceZip, final BuildRequest request) throws BuildExc
String googlePlayObfuscation = "";
String googleAdUnitId = request.getArg("android.googleAdUnitId", request.getArg("google.adUnitId", null));
String googlePlayAdViewCode = "";
if (playServicesAds) {
minSDK = maxInt("21", minSDK);
}
if (googleAdUnitId != null && googleAdUnitId.length() > 0) {
minSDK = maxInt("9", minSDK);
googlePlayAdsMetaData = "<meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\"/>";

0 comments on commit c300c4e

Please sign in to comment.