mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 21:27:01 +05:30
Merge #108
108: Update AGP and cleanup formatting rules r=msfjarvis a=msfjarvis
bors r+
🤖
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
commit
ddafaa60eb
6 changed files with 23 additions and 40 deletions
|
@ -1,23 +0,0 @@
|
|||
# https://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.{java,kt,kts,xml}]
|
||||
indent_size = 2
|
||||
ij_continuation_indent_size = 2
|
||||
|
||||
[*.{kt,kts}]
|
||||
kotlin_imports_layout=ascii
|
||||
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
|
||||
ij_kotlin_field_annotation_wrap = normal
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
12
.idea/codeStyles/Project.xml
generated
12
.idea/codeStyles/Project.xml
generated
|
@ -3,10 +3,12 @@
|
|||
<option name="LINE_SEPARATOR" value=" " />
|
||||
<JetCodeStyleSettings>
|
||||
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
|
||||
<value />
|
||||
</option>
|
||||
<option name="PACKAGES_IMPORT_LAYOUT">
|
||||
<value>
|
||||
<package name="java.util" alias="false" withSubpackages="false" />
|
||||
<package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
|
||||
<package name="io.ktor" alias="false" withSubpackages="false" />
|
||||
<package name="" alias="false" withSubpackages="true" />
|
||||
<package name="" alias="true" withSubpackages="true" />
|
||||
</value>
|
||||
</option>
|
||||
<option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="100" />
|
||||
|
@ -16,7 +18,9 @@
|
|||
<codeStyleSettings language="XML">
|
||||
<option name="FORCE_REARRANGE_MODE" value="1" />
|
||||
<indentOptions>
|
||||
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
||||
<option name="INDENT_SIZE" value="2" />
|
||||
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
||||
<option name="TAB_SIZE" value="2" />
|
||||
</indentOptions>
|
||||
<arrangement>
|
||||
<rules>
|
||||
|
|
|
@ -38,7 +38,7 @@ internal fun Project.configureForAllProjects() {
|
|||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
jcenter() {
|
||||
jcenter {
|
||||
content {
|
||||
// Indirect dependencies
|
||||
// https://youtrack.jetbrains.com/issue/IDEA-261387
|
||||
|
@ -102,14 +102,16 @@ internal fun TestedExtension.configureCommonAndroidOptions() {
|
|||
targetSdkVersion(30)
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
exclude("**/*.version")
|
||||
exclude("**/*.txt")
|
||||
exclude("**/*.kotlin_module")
|
||||
exclude("**/plugin.properties")
|
||||
exclude("META-INF/AL2.0")
|
||||
exclude("META-INF/LGPL2.1")
|
||||
}
|
||||
packagingOptions.resources.excludes.addAll(
|
||||
setOf(
|
||||
"**/*.version",
|
||||
"**/*.txt",
|
||||
"**/*.kotlin_module",
|
||||
"**/plugin.properties",
|
||||
"META-INF/AL2.0",
|
||||
"META-INF/LGPL2.1"
|
||||
)
|
||||
)
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
private const val DAGGER_HILT_VERSION = "2.32-alpha"
|
||||
|
||||
object Plugins {
|
||||
const val androidGradlePlugin = "com.android.tools.build:gradle:7.0.0-alpha05"
|
||||
const val androidGradlePlugin_lintModel = "com.android.tools.lint:lint-model:30.0.0-alpha05"
|
||||
const val androidGradlePlugin = "com.android.tools.build:gradle:7.0.0-alpha06"
|
||||
const val androidGradlePlugin_lintModel = "com.android.tools.lint:lint-model:30.0.0-alpha06"
|
||||
const val daggerGradlePlugin =
|
||||
"com.google.dagger:hilt-android-gradle-plugin:${DAGGER_HILT_VERSION}"
|
||||
const val kotlinGradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
|
||||
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
|
||||
import java.util.*
|
||||
import java.util.Properties
|
||||
import org.gradle.api.Project
|
||||
|
||||
private const val KEYSTORE_CONFIG_PATH = "keystore.properties"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import com.android.build.gradle.internal.plugins.AppPlugin
|
||||
import com.github.zafarkhaja.semver.Version
|
||||
import java.io.OutputStream
|
||||
import java.util.*
|
||||
import java.util.Properties
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue