Skip to content

Commit 1a1ac07

Browse files
committed
Add internet permissions to the AdMob resources in the open source build.
When building the AdMob resources, the linter can complain about not having the INTERNET permission enabled. PiperOrigin-RevId: 273846570
1 parent 1faa9c5 commit 1a1ac07

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

admob/admob_resources/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ android {
3636

3737
sourceSets {
3838
main {
39-
manifest.srcFile '../../android_build_files/AndroidManifest.xml'
39+
// Use the manifest that gives access to the internet, as some of the
40+
// AdMob classes have linter problems without it.
41+
manifest.srcFile '../../android_build_files/AndroidManifest-internet.xml'
4042
java {
4143
srcDirs = ['../src_java/com/google/firebase/admob/internal/cpp']
4244
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.google.FirebaseCppSdkBuild">
4+
<uses-permission android:name="android.permission.INTERNET"/>
5+
</manifest>

0 commit comments

Comments
 (0)