mirror of
https://github.com/fumiama/copymanga.git
synced 2026-06-28 23:00:28 +08:00
2.0.beta8
1. 增加搜索 2. 升级sdk、api 3. 优化更新
This commit is contained in:
@@ -1,27 +1,8 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
apply plugin: 'kotlin-android-extensions'
|
apply plugin: 'kotlin-android-extensions'
|
||||||
apply plugin: 'AndResGuard'
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
signingConfigs {
|
|
||||||
release {
|
|
||||||
storeFile file('../../../OneDrive/swc/developer/android_key/open_key')
|
|
||||||
storePassword 'fumiama'
|
|
||||||
keyAlias 'default'
|
|
||||||
keyPassword 'fumiama'
|
|
||||||
v1SigningEnabled true
|
|
||||||
v2SigningEnabled true
|
|
||||||
}
|
|
||||||
/*winrelease {
|
|
||||||
storeFile file('C:/Users/spayi/OneDrive/swc/developer/android_key/open_key')
|
|
||||||
storePassword 'fumiama'
|
|
||||||
keyAlias 'default'
|
|
||||||
keyPassword 'fumiama'
|
|
||||||
v1SigningEnabled true
|
|
||||||
v2SigningEnabled true
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
compileSdkVersion 31
|
compileSdkVersion 31
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
@@ -40,19 +21,16 @@ android {
|
|||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.release
|
|
||||||
}
|
}
|
||||||
/*winrelease {
|
/*winrelease {
|
||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.winrelease
|
|
||||||
}
|
}
|
||||||
debug{
|
debug{
|
||||||
minifyEnabled false
|
minifyEnabled true
|
||||||
shrinkResources false
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.winrelease
|
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
@@ -98,42 +76,3 @@ dependencies {
|
|||||||
implementation 'com.github.zawadz88.materialpopupmenu:material-popup-menu:4.0.1'
|
implementation 'com.github.zawadz88.materialpopupmenu:material-popup-menu:4.0.1'
|
||||||
implementation 'com.lapism:search:2.4.1@aar'
|
implementation 'com.lapism:search:2.4.1@aar'
|
||||||
}
|
}
|
||||||
|
|
||||||
andResGuard {
|
|
||||||
// mappingFile = file("./resource_mapping.txt")
|
|
||||||
mappingFile = null
|
|
||||||
use7zip = true
|
|
||||||
useSign = true
|
|
||||||
// It will keep the origin path of your resources when it's true
|
|
||||||
keepRoot = false
|
|
||||||
// If set, name column in arsc those need to proguard will be kept to this value
|
|
||||||
fixedResName = "arg"
|
|
||||||
// It will merge the duplicated resources, but don't rely on this feature too much.
|
|
||||||
// it's always better to remove duplicated resource from repo
|
|
||||||
mergeDuplicatedRes = true
|
|
||||||
whiteList = [
|
|
||||||
// your icon
|
|
||||||
"R.drawable.icon",
|
|
||||||
// for fabric
|
|
||||||
"R.string.com.crashlytics.*",
|
|
||||||
// for google-services
|
|
||||||
"R.string.google_app_id",
|
|
||||||
"R.string.gcm_defaultSenderId",
|
|
||||||
"R.string.default_web_client_id",
|
|
||||||
"R.string.ga_trackingId",
|
|
||||||
"R.string.firebase_database_url",
|
|
||||||
"R.string.google_api_key",
|
|
||||||
"R.string.google_crash_reporting_api_key"
|
|
||||||
]
|
|
||||||
compressFilePattern = [
|
|
||||||
"*.png",
|
|
||||||
"*.jpg",
|
|
||||||
"*.jpeg",
|
|
||||||
"*.gif",
|
|
||||||
"resources.arsc"
|
|
||||||
]
|
|
||||||
sevenzip {
|
|
||||||
//artifact = 'com.tencent.mm:SevenZip:1.2.20'
|
|
||||||
path = "7za"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -45,10 +45,6 @@ class HomeFragment : NoBackRefreshFragment(R.layout.fragment_home) {
|
|||||||
resources.getColor(R.color.colorBlue2, theme),
|
resources.getColor(R.color.colorBlue2, theme),
|
||||||
resources.getColor(R.color.colorGreen, theme))
|
resources.getColor(R.color.colorGreen, theme))
|
||||||
|
|
||||||
Thread{
|
|
||||||
homeHandler.obtainMessage(-1, true).sendToTarget()
|
|
||||||
while(mainWeakReference?.get()?.isDrawerClosed != true) sleep(233)
|
|
||||||
//homeHandler.sendEmptyMessage(6) //removeAllViews
|
|
||||||
fhs.apply {
|
fhs.apply {
|
||||||
val recyclerView = findViewById<RecyclerView>(R.id.search_recycler_view)
|
val recyclerView = findViewById<RecyclerView>(R.id.search_recycler_view)
|
||||||
setAdapterLayoutManager(LinearLayoutManager(context))
|
setAdapterLayoutManager(LinearLayoutManager(context))
|
||||||
@@ -121,6 +117,11 @@ class HomeFragment : NoBackRefreshFragment(R.layout.fragment_home) {
|
|||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Thread{
|
||||||
|
homeHandler.obtainMessage(-1, true).sendToTarget()
|
||||||
|
while(mainWeakReference?.get()?.isDrawerClosed != true) sleep(233)
|
||||||
|
//homeHandler.sendEmptyMessage(6) //removeAllViews
|
||||||
homeHandler.fhib = null
|
homeHandler.fhib = null
|
||||||
sleep(600)
|
sleep(600)
|
||||||
homeHandler.startLoad()
|
homeHandler.startLoad()
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:7.0.3'
|
classpath 'com.android.tools.build:gradle:7.0.3'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.21'
|
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
|||||||
Reference in New Issue
Block a user