Skip to content

Commit b2a361a

Browse files
author
Landice Fu
committed
Allow HTTP traffic on imgur.com domain to imgur sample
1 parent 0647c41 commit b2a361a

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

samples/flickr/src/main/AndroidManifest.xml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.bumptech.glide.samples.flickr">
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="com.bumptech.glide.samples.flickr">
45

56
<uses-permission android:name="android.permission.INTERNET"/>
67
<!--
@@ -13,7 +14,9 @@
1314
android:label="@string/app_name"
1415
android:icon="@android:drawable/sym_def_app_icon"
1516
android:allowBackup="false"
16-
android:theme="@style/Theme.AppCompat">
17+
android:networkSecurityConfig="@xml/network_security_config"
18+
android:theme="@style/Theme.AppCompat"
19+
tools:targetApi="n">
1720

1821
<activity
1922
android:name=".FlickrSearchActivity"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<domain-config cleartextTrafficPermitted="true">
4+
<domain includeSubdomains="true">staticflickr.com</domain>
5+
</domain-config>
6+
</network-security-config>

samples/imgur/src/main/AndroidManifest.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
package="com.bumptech.glide.samples.imgur">
45
<uses-permission android:name="android.permission.INTERNET" />
56
<!--
@@ -14,7 +15,9 @@
1415
android:roundIcon="@mipmap/ic_launcher_round"
1516
android:supportsRtl="true"
1617
android:theme="@style/AppTheme"
17-
android:name="com.bumptech.glide.samples.imgur.ImgurApplication">
18+
android:networkSecurityConfig="@xml/network_security_config"
19+
android:name="com.bumptech.glide.samples.imgur.ImgurApplication"
20+
tools:targetApi="n">
1821
<activity android:name="com.bumptech.glide.samples.imgur.MainActivity">
1922
<intent-filter>
2023
<action android:name="android.intent.action.MAIN"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<domain-config cleartextTrafficPermitted="true">
4+
<domain includeSubdomains="true">imgur.com</domain>
5+
</domain-config>
6+
</network-security-config>

0 commit comments

Comments
 (0)