forked from iiordanov/remote-desktop-clients
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (64 loc) · 1.84 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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
}
}
allprojects {
repositories {
jcenter()
google()
}
}
android {
compileSdkVersion compileApi
defaultConfig {
targetSdkVersion targetApi
minSdkVersion project.getProperties().get("SDK_VERSION")
ndk.abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86' ,'x86_64'
multiDexEnabled true
}
useLibrary 'org.apache.http.legacy'
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
sourceSets.main {
java.srcDirs += 'src/main/java'
java.srcDirs += 'java'
jni.srcDirs += 'jni'
jniLibs.srcDirs += 'src/main/jniLibs'
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
/*
externalNativeBuild {
ndkBuild {
path file('jni/Application.mk')
path file('jni/Android.mk')
}
}
*/
}
tasks.all { task ->
if (task.name.startsWith('compile') && task.name.endsWith('Ndk')) {
task.enabled = false
}
}
dependencies {
implementation project(':remoteClientLib:jni:libs:deps:FreeRDP:client:Android:Studio:freeRDPCore')
api 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'org.apache.httpcomponents:httpcore:4.4.10'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation group: 'commons-validator', name: 'commons-validator', version: '1.7'
}