Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9a46a64 authored by Dan Zivkovic's avatar Dan Zivkovic
Browse files

Revert "Declare that LatinIME does not use cleartext network traffic."

This reverts commit 24a9683a.

Change-Id: I6f305aac6ac8d5c550a39eb5c88ec2881203cecc
Reason: Breaks a clean build on master.
parent 24a9683a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -38,8 +38,7 @@
    <application android:label="@string/english_ime_name"
            android:icon="@drawable/ic_launcher_keyboard"
            android:supportsRtl="true"
            android:allowBackup="true"
            android:usesCleartextTraffic="false">
            android:allowBackup="true">

        <!-- Services -->
        <service android:name="LatinIME"
+5 −5
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ public class HttpUrlConnectionBuilderTests extends AndroidTestCase {

    public void testAddHeader() throws IOException {
        HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder();
        builder.setUrl("https://www.example.com");
        builder.setUrl("http://www.example.com");
        builder.addHeader("some-random-key", "some-random-value");
        HttpURLConnection connection = builder.build();
        assertEquals("some-random-value", connection.getRequestProperty("some-random-key"));
@@ -95,14 +95,14 @@ public class HttpUrlConnectionBuilderTests extends AndroidTestCase {

    public void testSetUseCache_notSet() throws IOException {
        HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder();
        builder.setUrl("https://www.example.com");
        builder.setUrl("http://www.example.com");
        HttpURLConnection connection = builder.build();
        assertFalse(connection.getUseCaches());
    }

    public void testSetUseCache_false() throws IOException {
        HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder();
        builder.setUrl("https://www.example.com");
        builder.setUrl("http://www.example.com");
        HttpURLConnection connection = builder.build();
        connection.setUseCaches(false);
        assertFalse(connection.getUseCaches());
@@ -110,7 +110,7 @@ public class HttpUrlConnectionBuilderTests extends AndroidTestCase {

    public void testSetUseCache_true() throws IOException {
        HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder();
        builder.setUrl("https://www.example.com");
        builder.setUrl("http://www.example.com");
        HttpURLConnection connection = builder.build();
        connection.setUseCaches(true);
        assertTrue(connection.getUseCaches());
@@ -118,7 +118,7 @@ public class HttpUrlConnectionBuilderTests extends AndroidTestCase {

    public void testSetMode_uploadOnly() throws IOException {
        HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder();
        builder.setUrl("https://www.example.com");
        builder.setUrl("http://www.example.com");
        builder.setMode(MODE_UPLOAD_ONLY);
        HttpURLConnection connection = builder.build();
        assertTrue(connection.getDoInput());