Chore: remove unused dependencies & improve gradle properties & code style (#1189)

* Inline version strings

* Optimize gradle

* Remove kotlin-stdlib-jdk7

* Add jvmargs in gradle.properties

* Revert "Inline version strings"

This reverts commit ad2ab2bb

* Revert asserts
This commit is contained in:
Goooler 2021-09-13 17:49:23 +08:00 committed by GitHub
parent 1ea3a5b682
commit 899803739b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 3 additions and 12 deletions

View File

@ -12,7 +12,6 @@ dependencies {
implementation(project(":design")) implementation(project(":design"))
implementation(project(":common")) implementation(project(":common"))
implementation(kotlin("stdlib-jdk7"))
implementation(deps.kotlin.coroutine) implementation(deps.kotlin.coroutine)
implementation(deps.androidx.core) implementation(deps.androidx.core)
implementation(deps.androidx.activity) implementation(deps.androidx.activity)

View File

@ -48,7 +48,7 @@ subprojects {
apply(plugin = if (isApp) "com.android.application" else "com.android.library") apply(plugin = if (isApp) "com.android.application" else "com.android.library")
extensions.configure(BaseExtension::class) { extensions.configure<BaseExtension> {
val minSdkVersion = 21 val minSdkVersion = 21
val targetSdkVersion = 30 val targetSdkVersion = 30
val buildVersionCode = 204010 val buildVersionCode = 204010
@ -172,7 +172,7 @@ task("clean", type = Delete::class) {
delete(rootProject.buildDir) delete(rootProject.buildDir)
} }
tasks.named<Wrapper>("wrapper") { tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL distributionType = Wrapper.DistributionType.ALL
doLast { doLast {

View File

@ -6,7 +6,6 @@ plugins {
dependencies { dependencies {
compileOnly(project(":hideapi")) compileOnly(project(":hideapi"))
implementation(kotlin("stdlib-jdk7"))
implementation(deps.kotlin.coroutine) implementation(deps.kotlin.coroutine)
implementation(deps.androidx.core) implementation(deps.androidx.core)
} }

View File

@ -57,16 +57,11 @@ android {
dependencies { dependencies {
implementation(project(":common")) implementation(project(":common"))
implementation(kotlin("stdlib-jdk7"))
implementation(deps.androidx.core) implementation(deps.androidx.core)
implementation(deps.kotlin.coroutine) implementation(deps.kotlin.coroutine)
implementation(deps.kotlin.serialization.json) implementation(deps.kotlin.serialization.json)
} }
repositories {
mavenCentral()
}
afterEvaluate { afterEvaluate {
tasks.withType(GolangBuildTask::class.java).forEach { tasks.withType(GolangBuildTask::class.java).forEach {
it.inputs.dir(golangSource) it.inputs.dir(golangSource)

View File

@ -9,7 +9,6 @@ dependencies {
implementation(project(":core")) implementation(project(":core"))
implementation(project(":service")) implementation(project(":service"))
implementation(kotlin("stdlib-jdk7"))
implementation(deps.kotlin.coroutine) implementation(deps.kotlin.coroutine)
implementation(deps.androidx.core) implementation(deps.androidx.core)
implementation(deps.androidx.appcompat) implementation(deps.androidx.appcompat)

View File

@ -6,7 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html # http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process. # Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings. # The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx4608m org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode. # When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit # This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

View File

@ -13,7 +13,6 @@ dependencies {
implementation(project(":core")) implementation(project(":core"))
implementation(project(":common")) implementation(project(":common"))
implementation(kotlin("stdlib-jdk7"))
implementation(deps.kotlin.coroutine) implementation(deps.kotlin.coroutine)
implementation(deps.kotlin.serialization.json) implementation(deps.kotlin.serialization.json)
implementation(deps.androidx.core) implementation(deps.androidx.core)