1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-31 17:04:59 +01:00

Merge pull request #1228 from Tlaster/AndroidX

Migrate to AndroidX and make it works
This commit is contained in:
Tlaster 2020-02-24 11:18:11 +08:00 committed by GitHub
commit 28520ff453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
618 changed files with 2249 additions and 2033 deletions

3
.clabot Normal file
View File

@ -0,0 +1,3 @@
{
"contributors": ["Tlaster"]
}

View File

@ -8,8 +8,12 @@ jdk: oraclejdk8
android:
components:
- tools
- build-tools-28.0.3
- platform-tools
- build-tools-29.0.2
- android-29
- extra-android-m2repository
- extra-google-m2repository
- extra-android-support
env:
global:

View File

@ -21,7 +21,11 @@ allprojects {
projectVersionName = '3.7.8'
globalCompileSdkVersion = 29
globalBuildToolsVersion = '28.0.3'
globalBuildToolsVersion = '29.0.2'
globalMinSdkVersion = 19
globalTargetSdkVersion = 29
}
repositories {
@ -29,6 +33,7 @@ allprojects {
jcenter()
maven { url 'https://maven.google.com' }
maven { url 'https://jitpack.io' }
google()
}
}
@ -36,7 +41,7 @@ allprojects {
subprojects {
buildscript {
ext {
kotlinVersion = '1.3.50'
kotlinVersion = '1.3.61'
pluginVersions = [
AndroidSvgDrawable: '3.0.0',
PlayServices : '3.1.1',
@ -60,7 +65,7 @@ subprojects {
OkHttp : '3.8.1',
Stetho : '1.5.0',
OSMDroid : '5.6.5',
LeakCanary : '1.5.1',
LeakCanary : '2.1',
TwitterText : '1.14.7',
MediaViewerLibrary : '0.9.23',
MultiValueSwitch : '0.9.8',
@ -69,7 +74,7 @@ subprojects {
KPreferences : '0.9.7',
Kovenant : '3.3.0',
ParcelablePlease : '1.0.2',
Chameleon : '0.9.22',
Chameleon : '0.9.27',
UniqR : '0.9.4',
SQLiteQB : '0.9.15',
Glide : '3.7.0',

View File

@ -1,3 +1,5 @@
org.gradle.jvmargs=-Xmx3584m
#https://github.com/TwidereProject/Twidere-Android/issues/963
android.enableAapt2=false
android.enableAapt2=false
android.useAndroidX=true
android.enableJetifier=true

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip

View File

@ -18,4 +18,6 @@
org.gradle.jvmargs=-Xmx3584m
org.gradle.parallel=false
kotlin.incremental=false
kotlin.compiler.execution.strategy=in-process
kotlin.compiler.execution.strategy=in-process
android.useAndroidX=true
android.enableJetifier=true

View File

@ -49,8 +49,8 @@ android {
buildToolsVersion globalBuildToolsVersion
defaultConfig {
minSdkVersion 14
targetSdkVersion 29
minSdkVersion globalMinSdkVersion
targetSdkVersion globalTargetSdkVersion
versionCode projectVersionCode
versionName projectVersionName
}
@ -73,7 +73,7 @@ dependencies {
annotationProcessor "com.github.mariotaku.ObjectCursor:processor:${libVersions['ObjectCursor']}"
annotationProcessor "com.github.mariotaku.ExportablePreferences:processor:${libVersions['ExportablePreferences']}"
implementation "com.android.support:support-annotations:${libVersions['SupportLib']}"
implementation 'androidx.annotation:annotation:1.1.0'
implementation "com.bluelinelabs:logansquare:${libVersions['LoganSquare']}"
implementation "com.fasterxml.jackson.core:jackson-core:2.7.4"
implementation "com.github.mariotaku.RestFu:library:${libVersions['RestFu']}"

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.fanfou.callback;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import org.mariotaku.microblog.library.MicroBlogException;

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.fanfou.callback;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import org.mariotaku.microblog.library.twitter.model.Status;
import org.mariotaku.microblog.library.twitter.model.User;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.fanfou.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.mastodon.annotation;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.mastodon.annotation;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.mastodon.api;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import org.mariotaku.microblog.library.MicroBlogException;
import org.mariotaku.microblog.library.mastodon.model.Account;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.mastodon.api;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import org.mariotaku.microblog.library.MicroBlogException;
import org.mariotaku.microblog.library.mastodon.model.RegisteredApplication;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.mastodon.callback;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import android.text.TextUtils;
import org.mariotaku.microblog.library.MicroBlogException;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.mastodon.model;
import android.support.annotation.Keep;
import androidx.annotation.Keep;
import com.bluelinelabs.logansquare.JsonMapper;
import com.bluelinelabs.logansquare.LoganSquare;

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.mastodon.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import org.mariotaku.restfu.http.HttpResponse;

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.mastodon.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import org.mariotaku.restfu.http.HttpResponse;

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.mastodon.model;
import android.support.annotation.Nullable;
import android.support.annotation.StringDef;
import androidx.annotation.Nullable;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.mastodon.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.annotation;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.annotation;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.auth;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import android.util.Base64;
import org.mariotaku.restfu.RestRequest;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.auth;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.restfu.RestRequest;
import org.mariotaku.restfu.http.Authorization;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.auth;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.restfu.RestRequest;
import org.mariotaku.restfu.http.Authorization;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.callback;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.microblog.library.twitter.model.DeletionEvent;
import org.mariotaku.microblog.library.twitter.model.DirectMessage;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.callback;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import android.text.TextUtils;
import org.mariotaku.microblog.library.MicroBlogException;

View File

@ -20,8 +20,8 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.StringDef;
import androidx.annotation.NonNull;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.JsonMapper;
import com.bluelinelabs.logansquare.LoganSquare;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.LoganSquare;
import com.fasterxml.jackson.core.JsonGenerator;

View File

@ -20,7 +20,7 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.hannesdorfmann.parcelableplease.annotation.ParcelablePlease;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.restfu.http.ValueMap;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.Keep;
import androidx.annotation.Keep;
import com.bluelinelabs.logansquare.JsonMapper;
import com.fasterxml.jackson.core.JsonGenerator;

View File

@ -20,7 +20,7 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;
import androidx.annotation.Keep;
import com.bluelinelabs.logansquare.JsonMapper;
import com.bluelinelabs.logansquare.LoganSquare;

View File

@ -20,8 +20,8 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.IntDef;
import android.support.annotation.StringDef;
import androidx.annotation.IntDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.Nullable;
import android.support.annotation.StringDef;
import androidx.annotation.Nullable;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.Keep;
import androidx.annotation.Keep;
import com.bluelinelabs.logansquare.JsonMapper;
import com.bluelinelabs.logansquare.LoganSquare;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.Keep;
import androidx.annotation.Keep;
/**
* Response list supports cursor pagination

View File

@ -20,7 +20,7 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.microblog.library.MicroBlogException;
import org.mariotaku.restfu.RestConverter;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.Keep;
import androidx.annotation.Keep;
import org.mariotaku.microblog.library.twitter.util.InternalParseUtil;
import org.mariotaku.restfu.http.HttpResponse;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.restfu.http.SimpleValueMap;

View File

@ -20,8 +20,8 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import com.bluelinelabs.logansquare.annotation.JsonField;

View File

@ -18,8 +18,8 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import org.mariotaku.restfu.RestFuUtils;
import org.mariotaku.restfu.http.SimpleValueMap;

View File

@ -20,7 +20,7 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.IntDef;
import androidx.annotation.IntDef;
import org.mariotaku.restfu.http.HttpResponse;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import org.mariotaku.microblog.library.twitter.util.InternalArrayUtil;
import org.mariotaku.restfu.http.SimpleValueMap;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.model;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -21,8 +21,8 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,8 +20,8 @@ package org.mariotaku.microblog.library.twitter.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.StringDef;
import androidx.annotation.NonNull;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.util;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.microblog.library.MicroBlogException;
import org.mariotaku.restfu.RestConverter;

View File

@ -18,7 +18,7 @@
package org.mariotaku.microblog.library.twitter.util;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import java.text.AttributedCharacterIterator;
import java.text.DateFormat;

View File

@ -18,7 +18,7 @@
package org.mariotaku.twidere.annotation;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -18,7 +18,7 @@
package org.mariotaku.twidere.annotation;
import android.support.annotation.IntDef;
import androidx.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -18,7 +18,7 @@
package org.mariotaku.twidere.annotation;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -19,7 +19,7 @@
package org.mariotaku.twidere.annotation;
import android.support.annotation.IntDef;
import androidx.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@ -21,8 +21,8 @@ package org.mariotaku.twidere.model;
import android.accounts.Account;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;
import androidx.annotation.ColorInt;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.LoganSquare;
import com.bluelinelabs.logansquare.annotation.JsonField;

View File

@ -18,7 +18,7 @@
package org.mariotaku.twidere.model;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
/**
* Created by mariotaku on 15/4/20.

View File

@ -20,8 +20,8 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.support.annotation.StringDef;
import androidx.annotation.Nullable;
import androidx.annotation.StringDef;
import com.hannesdorfmann.parcelableplease.annotation.ParcelableNoThanks;
import com.hannesdorfmann.parcelableplease.annotation.ParcelablePlease;

View File

@ -18,7 +18,7 @@
package org.mariotaku.twidere.model;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -21,8 +21,8 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -22,8 +22,8 @@ import android.content.ContentValues;
import android.database.Cursor;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,9 +20,9 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.IntDef;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,8 +20,8 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -21,8 +21,8 @@ package org.mariotaku.twidere.model;
import android.content.ContentValues;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.support.annotation.StringDef;
import androidx.annotation.Nullable;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,9 +20,10 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.IntDef;
import androidx.annotation.LongDef;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import com.bluelinelabs.logansquare.annotation.JsonField;
@ -582,7 +583,7 @@ public class ParcelableStatus implements Parcelable, Comparable<ParcelableStatus
* <p>
* DO NOT CHANGE ONCE DEFINED!
*/
@IntDef(value = {
@LongDef(value = {
FilterFlags.QUOTE_NOT_AVAILABLE,
FilterFlags.BLOCKING_USER,
FilterFlags.BLOCKED_BY_USER,

View File

@ -20,8 +20,8 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,8 +20,8 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.IntDef;
import androidx.annotation.IntDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,8 +20,8 @@ package org.mariotaku.twidere.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -19,8 +19,8 @@
package org.mariotaku.twidere.model.account;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model.account.cred;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.StringDef;
import androidx.annotation.StringDef;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -19,8 +19,8 @@
package org.mariotaku.twidere.model.message;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.LoganSquare;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model.message;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -19,8 +19,8 @@
package org.mariotaku.twidere.model.message.conversation;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.LoganSquare;

View File

@ -19,9 +19,9 @@
package org.mariotaku.twidere.model.tab.argument;
import android.os.Bundle;
import android.support.annotation.CallSuper;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.CallSuper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.LoganSquare;
import com.bluelinelabs.logansquare.annotation.JsonField;

View File

@ -21,7 +21,7 @@ package org.mariotaku.twidere.model.tab.argument;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -21,7 +21,7 @@ package org.mariotaku.twidere.model.tab.argument;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -21,7 +21,7 @@ package org.mariotaku.twidere.model.tab.argument;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import com.bluelinelabs.logansquare.annotation.JsonField;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,9 +20,9 @@ package org.mariotaku.twidere.model.tab.extra;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.annotation.CallSuper;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.CallSuper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.LoganSquare;
import com.bluelinelabs.logansquare.annotation.JsonObject;

View File

@ -20,7 +20,7 @@ package org.mariotaku.twidere.model.util;
import android.content.ContentValues;
import android.database.Cursor;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import com.bluelinelabs.logansquare.LoganSquare;

View File

@ -21,7 +21,7 @@ package org.mariotaku.twidere.provider;
import android.content.ContentResolver;
import android.net.Uri;
import android.provider.BaseColumns;
import android.support.annotation.NonNull;
import androidx.annotation.NonNull;
import org.mariotaku.twidere.model.DraftTableInfo;
import org.mariotaku.twidere.model.FiltersData$BaseItemTableInfo;

View File

@ -18,8 +18,8 @@
package org.mariotaku.twidere.util;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.bluelinelabs.logansquare.JsonMapper;
import com.bluelinelabs.logansquare.ParameterizedType;

View File

@ -18,7 +18,7 @@
package org.mariotaku.twidere.util.filter;
import android.support.annotation.Nullable;
import androidx.annotation.Nullable;
import org.mariotaku.twidere.model.FiltersData;

View File

@ -27,8 +27,8 @@ android {
buildToolsVersion globalBuildToolsVersion
defaultConfig {
minSdkVersion 14
targetSdkVersion 29
minSdkVersion globalMinSdkVersion
targetSdkVersion globalTargetSdkVersion
versionCode 1
versionName "1.0"
}
@ -41,5 +41,5 @@ android {
}
dependencies {
implementation "com.android.support:support-compat:${libVersions['SupportLib']}"
implementation 'androidx.core:core:1.2.0'
}

View File

@ -33,7 +33,7 @@ import android.graphics.Shader.TileMode;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;
import androidx.core.content.ContextCompat;
import java.util.ArrayList;
import java.util.Calendar;

View File

@ -33,8 +33,8 @@ android {
defaultConfig {
applicationId "org.mariotaku.twidere"
minSdkVersion 14
targetSdkVersion 29
minSdkVersion globalMinSdkVersion
targetSdkVersion globalTargetSdkVersion
versionCode projectVersionCode
versionName projectVersionName
multiDexEnabled true
@ -42,7 +42,7 @@ android {
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("false")'
buildConfigField 'boolean', 'SHOW_CUSTOM_TOKEN_DIALOG', 'Boolean.parseBoolean("false")'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
@ -186,32 +186,32 @@ dependencies {
exclude group: 'net.minidev', module: 'json-smart'
}
// Stetho dependency, see https://g.co/androidstudio/app-test-app-conflict
debugImplementation "com.google.code.findbugs:jsr305:3.0.1"
debugImplementation "com.google.code.findbugs:jsr305:3.0.2"
compileOnly 'javax.annotation:jsr250-api:1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation "com.android.support:support-annotations:${libVersions['SupportLib']}"
androidTestImplementation "com.android.support.test:runner:${libVersions['SupportTest']}"
androidTestImplementation "com.android.support.test:rules:${libVersions['SupportTest']}"
androidTestImplementation 'androidx.annotation:annotation:1.1.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test:rules:1.2.0'
// https://g.co/androidstudio/app-test-app-conflict
androidTestImplementation "com.google.code.findbugs:jsr305:3.0.1"
androidTestImplementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.android.support:multidex:1.0.2'
implementation "com.android.support:support-annotations:${libVersions['SupportLib']}"
implementation "com.android.support:support-compat:${libVersions['SupportLib']}"
implementation "com.android.support:support-core-utils:${libVersions['SupportLib']}"
implementation "com.android.support:support-core-ui:${libVersions['SupportLib']}"
implementation "com.android.support:support-v13:${libVersions['SupportLib']}"
implementation "com.android.support:appcompat-v7:${libVersions['SupportLib']}"
implementation "com.android.support:cardview-v7:${libVersions['SupportLib']}"
implementation "com.android.support:recyclerview-v7:${libVersions['SupportLib']}"
implementation "com.android.support:palette-v7:${libVersions['SupportLib']}"
implementation "com.android.support:preference-v14:${libVersions['SupportLib']}"
implementation "com.android.support:customtabs:${libVersions['SupportLib']}"
implementation "com.android.support:design:${libVersions['SupportLib']}"
implementation "com.android.support:exifinterface:${libVersions['SupportLib']}"
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.core:core:1.2.0'
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
implementation 'androidx.browser:browser:1.2.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.exifinterface:exifinterface:1.1.0'
implementation "com.twitter:twitter-text:${libVersions['TwitterText']}"
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.6.0'
implementation 'com.squareup:otto:1.3.8'
@ -237,6 +237,7 @@ dependencies {
implementation "com.github.mariotaku.RestFu:okhttp3:${libVersions['RestFu']}"
implementation "com.github.mariotaku.RestFu:logansquare:${libVersions['RestFu']}"
implementation "com.squareup.okhttp3:okhttp:${libVersions['OkHttp']}"
implementation("com.squareup.okio:okio:2.4.3")
implementation 'com.lnikkila:extendedtouchview:0.1.1'
implementation "com.google.dagger:dagger:${libVersions['Dagger']}"
implementation 'org.attoparser:attoparser:2.0.4.RELEASE'

View File

@ -18,6 +18,7 @@
-dontobfuscate
-dontwarn org.codehaus.mojo.animal_sniffer.*
-dontwarn com.squareup.haha.**
-dontwarn com.makeramen.roundedimageview.**
-dontwarn jnamed**

View File

@ -21,8 +21,8 @@ package org.mariotaku.twidere.activity
import android.annotation.SuppressLint
import android.content.Intent
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlinx.android.synthetic.main.activity_compose.*
import org.junit.Assert
import org.junit.Rule

View File

@ -19,7 +19,7 @@
package org.mariotaku.twidere.activity
import android.support.test.rule.ActivityTestRule
import androidx.test.rule.ActivityTestRule
import org.mariotaku.twidere.util.TestAccountUtils
/**

View File

@ -19,8 +19,8 @@
package org.mariotaku.twidere.extension
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith

Some files were not shown because too many files have changed in this diff Show More