forked from Consti10/RenderingX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (84 loc) · 3.33 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
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.firebase.firebase-perf'
android {
compileSdkVersion rootProject.compileSdkVersion
//ndkVersion rootProject.myNdkVersion
defaultConfig {
applicationId "constantin.renderingx.example"
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
versionCode 6
versionName "6.0"
externalNativeBuild {
cmake {
cppFlags "-std=c++17"
arguments "-DANDROID_STL=c++_static",
//Pass trough the location for cmake to find native (cpp) code of the "Shared" cpp code
"-DSHARED_DIR=${project(':Shared').getProjectDir().getAbsolutePath().replace("\\", "/")}"
}
}
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'//,'x86_64'
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path file('CMakeLists.txt')
}
}
sourceSets {
//https://developer.android.com/studio/releases/gradle-plugin?buildsystem=cmake#cmake-imported-targets
//main {
// jniLibs.srcDirs = ['libs/google/gvr']
//}
}
//Do not compress mp4 assets for MediaPlayer !
buildFeatures {
//prefab true
viewBinding=true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
androidResources {
noCompress 'mp4'
}
}
dependencies {
//implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.appcompat:appcompat:$rootProject.appcompatVersion"
implementation "androidx.constraintlayout:constraintlayout:$rootProject.constraintlayoutVersion"
implementation "androidx.preference:preference:$rootProject.androidxpreferenceVersion"
//
//for touch input (scale/rotate text)
implementation 'com.dinuscxj:multitouchgesturedetector:1.0.0'
//firebase
implementation 'com.google.firebase:firebase-core:20.1.0'
implementation 'com.google.firebase:firebase-crashlytics:18.2.8'
implementation 'com.google.firebase:firebase-analytics:20.1.0'
implementation 'com.google.firebase:firebase-perf:20.0.5'
implementation project(path: ':RenderingXCore')
//
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
//Use either the artifacts from jitpack or provide a path directly
implementation project(path: ':Shared')
implementation project(path: ':VideoCore')
//implementation "com.github.Consti10.LiveVideo10ms:VideoCore:99e86293"
//test
//implementation 'com.android.ndk.thirdparty:curl:7.68.0-alpha-1'
//implementation 'com.android.ndk.thirdparty:jsoncpp:1.8.4-alpha-1'
//implementation 'com.google.android.exoplayer:exoplayer:2.17.0'
implementation 'com.google.android.exoplayer:exoplayer-core:2.17.0'
}
apply plugin: 'com.google.gms.google-services'