-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
113 lines (96 loc) · 3.76 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.anko_version = '0.10.8'
ext.fuel_version = '2.2.1'
ext.kotlin_version = '1.3.61'
ext.kotlinx_io_version = '0.1.16'
ext.ktor_version = '1.2.6'
ext.nav_version = '2.2.0-rc02'
ext.slf4j_version = '1.7.29'
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'io.fabric.tools:gradle:1.31.1'
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.0'
classpath 'com.netflix.nebula:gradle-lint-plugin:16.0.2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:1.0.0'
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.1'
classpath 'gradle.plugin.com.github.konifar.gradle:plugin:0.3.3'
classpath 'io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.2.0'
classpath 'com.gladed.androidgitversion:gradle-android-git-version:0.4.10'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
//classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
flatDir {
dirs 'libs'
}
}
apply plugin: 'idea'
idea.module {
excludeDirs += file('.gitattributes')
excludeDirs += file('Gemfile')
excludeDirs += file('Gemfile.lock')
excludeDirs += file('LICENSE')
excludeDirs += file('mapfile.xml')
excludeDirs += file('app/.cxx')
excludeDirs += file('app/.externalNativeBuild')
excludeDirs += file('app/src/main/java/com/almworks')
excludeDirs += file('app/src/main/java/io/requery')
excludeDirs += file('app/src/main/java/org')
excludeDirs += file('app/src/main/java/org/javolution')
excludeDirs += file('app/src/main/java/org/sqlite')
excludeDirs += file('app/src/main/jni')
excludeDirs += file('app/src/main/obj')
excludeDirs += file('config/detekt')
excludeDirs += file('fastlane')
excludeDirs += file('svg')
excludeDirs += file('tiles')
excludeDirs += file('world')
}
apply plugin: 'nebula.lint'
gradleLint {
alwaysRun = false
autoLintAfterFailure = false
criticalRules = ['unused-dependency']
rules = ['archaic-wrapper', 'unused-dependency', 'duplicate-dependency-class', 'minimum-dependency-version', 'overridden-dependency-version', 'unused-exclude-by-dep']
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task unzip(type: Copy) {
from zipTree("${project.rootDir}/sqlite-android-3240000/sqlite-android-3240000.aar")
into "${project.rootDir}/app/src/main/jniLibs/"
include 'jni/*/*.so'
eachFile { details ->
details.setRelativePath new RelativePath(true, details.path - 'jni/')
}
includeEmptyDirs = false
}
task unzip2(type: Copy) {
from zipTree("${project.rootDir}/sqlite-android-3240000/sqlite-android-3240000.aar")
into "${project.rootDir}/app/src/main/libs/"
include 'classes.jar'
eachFile { details ->
details.setRelativePath new RelativePath(true, 'libsqliteX.jar')
}
}