Skip to content

Commit

Permalink
fix(YouTube - GmsCore support): Fix notifications not working by usin…
Browse files Browse the repository at this point in the history
…g the correct permissions

Regression had been introduced in 24528e0. This commit reverts this.
  • Loading branch information
oSumAtrIX committed Aug 15, 2024
1 parent 345e514 commit 19ddae2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,18 @@ abstract class BaseGmsCoreSupportResourcePatch(
"android:authorities=\"$fromPackageName" to "android:authorities=\"$packageName",
"$fromPackageName.permission.C2D_MESSAGE" to "$packageName.permission.C2D_MESSAGE",
"$fromPackageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" to "$packageName.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION",
"com.google.android.c2dm" to "$packageName.android.c2dm",
"com.google.android.libraries.photos.api.mars" to "$packageName.android.apps.photos.api.mars",
"com.google.android.c2dm" to "$gmsCoreVendorGroupId.android.c2dm",
"com.google.android.libraries.photos.api.mars" to "$gmsCoreVendorGroupId.android.apps.photos.api.mars",
"</queries>" to "<package android:name=\"$gmsCoreVendorGroupId.android.gms\"/></queries>",
)

get("AndroidManifest.xml", false).writeText(
transformations.entries.fold(get("AndroidManifest.xml", false).readText()) { acc, (from, to) ->
acc.replace(
from,
to
to,
)
}
},
)
}

Expand Down

0 comments on commit 19ddae2

Please sign in to comment.