mirror of
https://github.com/markusfisch/BinaryEye.git
synced 2024-09-19 19:42:18 +02:00
Simplification and clean up of Gradle files
* Some linting suggestions by Android Studio * Move all repository declarations to settings
This commit is contained in:
parent
38f658e253
commit
3dfa84a33e
@ -2,12 +2,12 @@ apply plugin: 'com.android.application'
|
|||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace 'de.markusfisch.android.binaryeye'
|
namespace "de.markusfisch.android.binaryeye"
|
||||||
compileSdkVersion sdk_version
|
compileSdk sdk_version
|
||||||
defaultConfig {
|
|
||||||
minSdkVersion 9
|
|
||||||
targetSdkVersion sdk_version
|
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdk 9
|
||||||
|
targetSdk sdk_version
|
||||||
versionCode 127
|
versionCode 127
|
||||||
versionName '1.62.3'
|
versionName '1.62.3'
|
||||||
}
|
}
|
||||||
@ -53,7 +53,6 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
// Required for Gradle 8.
|
// Required for Gradle 8.
|
||||||
sourceCompatibility = 17
|
sourceCompatibility = 17
|
||||||
@ -62,15 +61,21 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation 'junit:junit:4.13.2'
|
// Kotlin
|
||||||
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
|
||||||
|
|
||||||
|
// Support
|
||||||
implementation "com.android.support:appcompat-v7:$support_version"
|
implementation "com.android.support:appcompat-v7:$support_version"
|
||||||
implementation "com.android.support:design:$support_version"
|
implementation "com.android.support:design:$support_version"
|
||||||
implementation "com.android.support:preference-v7:$support_version"
|
implementation "com.android.support:preference-v7:$support_version"
|
||||||
implementation "com.android.support:preference-v14:$support_version"
|
implementation "com.android.support:preference-v14:$support_version"
|
||||||
|
|
||||||
|
// External
|
||||||
implementation 'com.github.markusfisch:CameraView:1.9.2'
|
implementation 'com.github.markusfisch:CameraView:1.9.2'
|
||||||
implementation 'com.github.markusfisch:ScalingImageView:1.4.1'
|
implementation 'com.github.markusfisch:ScalingImageView:1.4.1'
|
||||||
implementation 'com.github.markusfisch:zxing-cpp:v2.2.0.1'
|
implementation 'com.github.markusfisch:zxing-cpp:v2.2.0.1'
|
||||||
|
|
||||||
|
// Testing
|
||||||
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
|
14
build.gradle
14
build.gradle
@ -18,19 +18,15 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
maven { url 'https://jitpack.io' }
|
|
||||||
}
|
|
||||||
|
|
||||||
gradle.projectsEvaluated {
|
gradle.projectsEvaluated {
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile).tap {
|
||||||
options.compilerArgs << "-Xlint:unchecked"
|
configureEach {
|
||||||
|
options.compilerArgs << "-Xlint:unchecked"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
tasks.register('clean', Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
1
gradle/wrapper/gradle-wrapper.properties
vendored
1
gradle/wrapper/gradle-wrapper.properties
vendored
@ -2,5 +2,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
|
networkTimeout=10000
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
@ -1 +1,18 @@
|
|||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
maven { url 'https://jitpack.io' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
maven { url 'https://jitpack.io' }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rootProject.name = "Binary Eye"
|
||||||
include ':app'
|
include ':app'
|
||||||
|
Loading…
Reference in New Issue
Block a user