Fix #2593: Migrate to androidX (#2594)

* Update dependencies and migrate to androidX
* Make gradle properties tidy
This commit is contained in:
Vivek Maskara 2019-03-16 16:52:37 +05:30 committed by Adam Jones
parent 5b1b0037c3
commit 57e685cf6c
173 changed files with 518 additions and 506 deletions

View file

@ -3,8 +3,8 @@ package fr.free.nrw.commons.mwapi;
import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import com.google.gson.Gson;

View file

@ -1,7 +1,7 @@
package fr.free.nrw.commons.mwapi;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.Date;
import java.util.List;

View file

@ -1,8 +1,8 @@
package fr.free.nrw.commons.mwapi;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.io.IOException;
import java.io.InputStream;

View file

@ -1,6 +1,6 @@
package fr.free.nrw.commons.mwapi;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.apache.http.Header;
import org.apache.http.HttpRequest;

View file

@ -1,7 +1,7 @@
package fr.free.nrw.commons.mwapi;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.gson.Gson;

View file

@ -1,7 +1,7 @@
package fr.free.nrw.commons.mwapi.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
public class MwException extends RuntimeException {
@SuppressWarnings("unused")

View file

@ -1,7 +1,7 @@
package fr.free.nrw.commons.mwapi.model;
import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.google.gson.annotations.SerializedName;

View file

@ -1,7 +1,7 @@
package fr.free.nrw.commons.mwapi.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.ArrayList;
import java.util.HashMap;

View file

@ -1,7 +1,7 @@
package fr.free.nrw.commons.mwapi.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.gson.annotations.SerializedName;

View file

@ -1,7 +1,7 @@
package fr.free.nrw.commons.mwapi.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.Collections;
import java.util.List;

View file

@ -1,6 +1,6 @@
package fr.free.nrw.commons.mwapi.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
public class Page {
public String title;

View file

@ -1,6 +1,6 @@
package fr.free.nrw.commons.mwapi.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
/**
* The API reported an error in the payload.