chore: 删除字符串混淆以修复编译出错
This commit is contained in:
parent
6470fb0554
commit
a18d2bce7b
|
|
@ -1,6 +1,5 @@
|
|||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'AndResGuard'
|
||||
apply plugin: 'io.michaelrocks.paranoid'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
|
|
@ -12,7 +11,6 @@ buildscript {
|
|||
}
|
||||
dependencies {
|
||||
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.18'
|
||||
classpath 'io.michaelrocks:paranoid-gradle-plugin:0.2.5'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
package com.huanchengfly.tieba.post.api
|
||||
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
|
||||
@Obfuscate
|
||||
object Method {
|
||||
const val GET = "GET"
|
||||
const val POST = "POST"
|
||||
|
|
@ -21,14 +19,14 @@ object Error {
|
|||
const val ERROR_UPDATE_NOT_ENABLE = 100
|
||||
}
|
||||
|
||||
@Obfuscate
|
||||
|
||||
object Url {
|
||||
const val UPDATE_INFO = "https://huancheng65.github.io/TiebaLite/update_v2.json"
|
||||
const val CHECK_UPDATE = "https://tblite.huanchengfly.tk/api/update"
|
||||
const val CHANGELOG = "https://tblite.huanchengfly.tk/api/changelog/"
|
||||
}
|
||||
|
||||
@Obfuscate
|
||||
|
||||
object Header {
|
||||
const val FORCE_PARAM = "force_param"
|
||||
const val FORCE_PARAM_QUERY = "query"
|
||||
|
|
@ -50,7 +48,7 @@ object Header {
|
|||
const val CUID_GID = "cuid_gid"
|
||||
}
|
||||
|
||||
@Obfuscate
|
||||
|
||||
object Param {
|
||||
const val BDUSS = "BDUSS"
|
||||
const val CLIENT_VERSION = "_client_version"
|
||||
|
|
|
|||
|
|
@ -12,10 +12,9 @@ import com.huanchengfly.tieba.post.utils.VersionUtil
|
|||
import com.huanchengfly.tieba.post.utils.appPreferences
|
||||
import com.tsy.sdk.myokhttp.MyOkHttp
|
||||
import com.tsy.sdk.myokhttp.response.GsonResponseHandler
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
import java.lang.ref.WeakReference
|
||||
|
||||
@Obfuscate
|
||||
|
||||
class LiteApi private constructor(context: Context) {
|
||||
private val myOkHttp: MyOkHttp = MyOkHttp()
|
||||
private val contextWeakReference: WeakReference<Context> = WeakReference(context)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.huanchengfly.tieba.post.api.retrofit
|
|||
|
||||
import android.os.Build
|
||||
import android.webkit.WebSettings
|
||||
import com.huanchengfly.tieba.post.BaseApplication
|
||||
import com.huanchengfly.tieba.post.api.Header
|
||||
import com.huanchengfly.tieba.post.api.Param
|
||||
import com.huanchengfly.tieba.post.api.interceptors.SortAndSignInterceptor
|
||||
|
|
@ -11,17 +12,15 @@ import com.huanchengfly.tieba.post.api.retrofit.interfaces.MiniTiebaApi
|
|||
import com.huanchengfly.tieba.post.api.retrofit.interfaces.NewTiebaApi
|
||||
import com.huanchengfly.tieba.post.api.retrofit.interfaces.OfficialTiebaApi
|
||||
import com.huanchengfly.tieba.post.api.retrofit.interfaces.WebTiebaApi
|
||||
import com.huanchengfly.tieba.post.BaseApplication
|
||||
import com.huanchengfly.tieba.post.utils.AccountUtil
|
||||
import com.huanchengfly.tieba.post.utils.MobileInfoUtil
|
||||
import com.huanchengfly.tieba.post.utils.UIDUtil
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
import okhttp3.ConnectionPool
|
||||
import okhttp3.Interceptor
|
||||
import okhttp3.OkHttpClient
|
||||
import retrofit2.Retrofit
|
||||
|
||||
@Obfuscate
|
||||
|
||||
object RetrofitTiebaApi {
|
||||
private val initTime = System.currentTimeMillis()
|
||||
private val clientId = "wappc_${initTime}_${Math.round(Math.random() * 1000).toInt()}"
|
||||
|
|
|
|||
|
|
@ -1,18 +1,17 @@
|
|||
package com.huanchengfly.tieba.post.api.retrofit.interfaces
|
||||
|
||||
import android.text.TextUtils
|
||||
import com.huanchengfly.tieba.post.api.models.*
|
||||
import com.huanchengfly.tieba.post.BaseApplication
|
||||
import com.huanchengfly.tieba.post.BaseApplication.ScreenInfo
|
||||
import com.huanchengfly.tieba.post.api.Header
|
||||
import com.huanchengfly.tieba.post.api.getScreenHeight
|
||||
import com.huanchengfly.tieba.post.api.getScreenWidth
|
||||
import com.huanchengfly.tieba.post.BaseApplication
|
||||
import com.huanchengfly.tieba.post.BaseApplication.ScreenInfo
|
||||
import com.huanchengfly.tieba.post.api.models.*
|
||||
import com.huanchengfly.tieba.post.utils.AccountUtil
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
import retrofit2.Call
|
||||
import retrofit2.http.*
|
||||
|
||||
@Obfuscate
|
||||
|
||||
interface MiniTiebaApi {
|
||||
@POST("/c/f/excellent/personalized")
|
||||
@FormUrlEncoded
|
||||
|
|
|
|||
|
|
@ -5,14 +5,13 @@ import com.huanchengfly.tieba.post.api.models.CommonResponse
|
|||
import com.huanchengfly.tieba.post.api.models.MessageListBean
|
||||
import com.huanchengfly.tieba.post.api.models.MsgBean
|
||||
import com.huanchengfly.tieba.post.api.models.ThreadStoreBean
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
import retrofit2.Call
|
||||
import retrofit2.http.Field
|
||||
import retrofit2.http.FormUrlEncoded
|
||||
import retrofit2.http.Headers
|
||||
import retrofit2.http.POST
|
||||
|
||||
@Obfuscate
|
||||
|
||||
interface NewTiebaApi {
|
||||
@Headers("${Header.FORCE_LOGIN}: ${Header.FORCE_LOGIN_TRUE}")
|
||||
@POST("/c/s/msg")
|
||||
|
|
|
|||
|
|
@ -1,21 +1,20 @@
|
|||
package com.huanchengfly.tieba.post.api.retrofit.interfaces
|
||||
|
||||
import com.huanchengfly.tieba.post.BaseApplication
|
||||
import com.huanchengfly.tieba.post.BaseApplication.ScreenInfo
|
||||
import com.huanchengfly.tieba.post.api.Header
|
||||
import com.huanchengfly.tieba.post.api.getScreenHeight
|
||||
import com.huanchengfly.tieba.post.api.getScreenWidth
|
||||
import com.huanchengfly.tieba.post.api.models.CommonResponse
|
||||
import com.huanchengfly.tieba.post.api.models.ThreadContentBean
|
||||
import com.huanchengfly.tieba.post.api.Header
|
||||
import com.huanchengfly.tieba.post.BaseApplication
|
||||
import com.huanchengfly.tieba.post.BaseApplication.ScreenInfo
|
||||
import com.huanchengfly.tieba.post.utils.AccountUtil
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
import retrofit2.Call
|
||||
import retrofit2.http.Field
|
||||
import retrofit2.http.FormUrlEncoded
|
||||
import retrofit2.http.Headers
|
||||
import retrofit2.http.POST
|
||||
|
||||
@Obfuscate
|
||||
|
||||
interface OfficialTiebaApi {
|
||||
@POST("/c/f/pb/page")
|
||||
@FormUrlEncoded
|
||||
|
|
|
|||
|
|
@ -1,15 +1,14 @@
|
|||
package com.huanchengfly.tieba.post.api.retrofit.interfaces
|
||||
|
||||
import android.text.TextUtils
|
||||
import com.huanchengfly.tieba.post.api.Header
|
||||
import com.huanchengfly.tieba.post.api.models.*
|
||||
import com.huanchengfly.tieba.post.api.models.web.*
|
||||
import com.huanchengfly.tieba.post.api.Header
|
||||
import com.huanchengfly.tieba.post.models.MyInfoBean
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
import retrofit2.Call
|
||||
import retrofit2.http.*
|
||||
|
||||
@Obfuscate
|
||||
|
||||
interface WebTiebaApi {
|
||||
@Headers(
|
||||
"${Header.FORCE_LOGIN}: ${Header.FORCE_LOGIN_TRUE}"
|
||||
|
|
|
|||
|
|
@ -2,11 +2,10 @@ package com.huanchengfly.tieba.post.utils
|
|||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import io.michaelrocks.paranoid.Obfuscate
|
||||
import kotlin.properties.ReadWriteProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
@Obfuscate
|
||||
|
||||
open class AppPreferencesUtils(context: Context) {
|
||||
private val preferences: SharedPreferences =
|
||||
context.getSharedPreferences("settings", Context.MODE_PRIVATE)
|
||||
|
|
|
|||
Loading…
Reference in New Issue