-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize build & update dependencies
- Loading branch information
1 parent
0b0d825
commit e34ae6b
Showing
19 changed files
with
122 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
complexity: | ||
TooManyFunctions: | ||
active: false | ||
|
||
empty-blocks: | ||
EmptyClassBlock: | ||
active: false # Overlaps with NoEmptyClassBody from ktlint | ||
|
||
formatting: | ||
Indentation: | ||
indentSize: 2 | ||
|
||
naming: | ||
MatchingDeclarationName: | ||
active: false # Overlaps with Filename from ktlint | ||
|
||
style: | ||
MaxLineLength: | ||
active: false # Overlaps with MaximumLineLength from ktlint | ||
ModifierOrder: | ||
active: false # Overlaps with ModifierOrdering from ktlint | ||
NewLineAtEndOfFile: | ||
active: false # Overlaps with FinalNewline from ktlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,11 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
maven { url 'https://plugins.gradle.org/m2/' } | ||
} | ||
|
||
dependencies { | ||
classpath libs.gradle.agp | ||
classpath libs.gradle.kotlin | ||
classpath libs.gradle.kotlinter | ||
classpath libs.gradle.detekt | ||
classpath libs.gradle.publish | ||
} | ||
plugins { | ||
alias(libs.plugins.android.application) apply false | ||
alias(libs.plugins.android.library) apply false | ||
alias(libs.plugins.kotlin.android) apply false | ||
alias(libs.plugins.detekt) apply false | ||
} | ||
|
||
ext.buildConfig = [ | ||
'minSdk' : 14, | ||
'compileSdk': 33, | ||
'targetSdk' : 33, | ||
] | ||
|
||
subprojects { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
} | ||
|
||
apply from: rootProject.file('ktlint.gradle') | ||
apply from: rootProject.file('detekt.gradle') | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
apply from: rootProject.file('gradle/android.gradle') | ||
apply from: rootProject.file('gradle/detekt.gradle') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
afterEvaluate { project -> | ||
if (project.hasProperty('android')) { | ||
android { | ||
compileSdkVersion 33 | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 33 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_11 | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_11 | ||
targetCompatibility JavaVersion.VERSION_11 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
apply plugin: 'io.gitlab.arturbosch.detekt' | ||
apply plugin: libs.plugins.detekt.get().pluginId | ||
|
||
detekt { | ||
buildUponDefaultConfig = true | ||
config = files("$rootProject.rootDir/.detekt/detekt.yml") | ||
} | ||
|
||
dependencies { | ||
detektPlugins libs.detekt.ktlint | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
include ':flow-preferences' | ||
include ':flow-preferences-tests' | ||
include ':flow-preferences-sample' | ||
pluginManagement { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
dependencyResolutionManagement { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
} | ||
} | ||
|
||
// https://docs.gradle.org/current/userguide/declaring_dependencies.html#sec:type-safe-project-accessors | ||
enableFeaturePreview('TYPESAFE_PROJECT_ACCESSORS') | ||
|
||
rootProject.name = 'flow-preferences-root' | ||
|
||
enableFeaturePreview("VERSION_CATALOGS") | ||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | ||
include ':flow-preferences' | ||
include ':flow-preferences-tests' | ||
include ':flow-preferences-sample' |