Skip to content

Commit

Permalink
fix: disable play flag when using gradle 8 in android local builds
Browse files Browse the repository at this point in the history
When using gradle 8, the old play flag, which enables a common base set of play services with an old default play version, does not work.
This disables this flag automatically when using gradle 8.
  • Loading branch information
shannah committed Nov 25, 2023
1 parent a8e1bd6 commit 526b332
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,8 @@ public void usesClassMethod(String cls, String method) {


// if a flag is declared we don't want the default play flag to be true
if(request.getArg("android.playService.plus", null) != null ||
if(useGradle8 ||
request.getArg("android.playService.plus", null) != null ||
request.getArg("android.playService.auth", (googleServicesJson.exists()) ? "true":null) != null ||
request.getArg("android.playService.base", null) != null ||
request.getArg("android.playService.identity", null) != null ||
Expand Down

0 comments on commit 526b332

Please sign in to comment.