-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
65 lines (44 loc) · 1.96 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
buildscript {
def default_toolkit_context = ""
def default_kotlin_version = "2.0.0"
def default_toolkit_version = "2.0.2"
def default_toolkit_obfuscator_jar_home = 'JCommons/jar'
ext.toolkit_context = project.hasProperty('toolkit_context') ? "$toolkit_context" : default_toolkit_context
ext.kotlin_version = project.hasProperty('kotlin_version') ? "$kotlin_version" : default_kotlin_version
ext.toolkit_version = project.hasProperty('toolkit_version') ? "$toolkit_version" : default_toolkit_version
ext.toolkit_obfuscator_jar_home = project.hasProperty('toolkit_obfuscator_jar_home') ? "$toolkit_obfuscator_jar_home" : default_toolkit_obfuscator_jar_home
def default_toolkit_obfuscator_jar = "$toolkit_obfuscator_jar_home/toolkit-jcommons-${toolkit_version}.jar"
ext.toolkit_obfuscator_jar = project.hasProperty('toolkit_obfuscator_jar') ? "$toolkit_obfuscator_jar" : default_toolkit_obfuscator_jar
def default_toolkit_obfuscator_project = "${toolkit_context}:JCommons"
ext.toolkit_obfuscator_project = project.hasProperty('toolkit_obfuscator_project') ? "$toolkit_obfuscator_project" : default_toolkit_obfuscator_project
repositories {
mavenLocal()
google()
mavenCentral()
maven { url "https://jitpack.io" }
flatDir {
dirs "$toolkit_obfuscator_jar_home"
}
}
dependencies {
classpath "com.android.tools.build:gradle:8.7.3"
classpath "com.google.gms:google-services:4.4.2"
classpath "com.google.firebase:firebase-crashlytics-gradle:3.0.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
mavenLocal()
}
}
buildscript {
dependencies {
classpath files("$toolkit_obfuscator_jar")
}
}
import com.redelf.jcommons.JObfuscator
new JObfuscator("build.gradle").hello()