Ver código fonte

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
Goooler 4 anos atrás
pai
commit
899803739b

+ 0 - 1
app/build.gradle.kts

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

+ 2 - 2
build.gradle.kts

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

+ 0 - 1
common/build.gradle.kts

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

+ 0 - 5
core/build.gradle.kts

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

+ 0 - 1
design/build.gradle.kts

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

+ 1 - 1
gradle.properties

@@ -6,7 +6,7 @@
 # http://www.gradle.org/docs/current/userguide/build_environment.html
 # Specifies the JVM arguments used for the daemon process.
 # 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.
 # 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

+ 0 - 1
service/build.gradle.kts

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