forked from olvid-io/olvid-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
163 lines (143 loc) · 5.81 KB
/
Copy pathbuild.gradle
File metadata and controls
163 lines (143 loc) · 5.81 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
plugins {
id 'com.android.application'
id 'androidx.navigation.safeargs'
id 'com.google.android.gms.oss-licenses-plugin'
id 'com.google.protobuf'
}
android {
compileSdkVersion 31
defaultConfig {
applicationId "io.olvid.messenger"
minSdkVersion 21
targetSdkVersion 31
versionCode 152
versionName "0.11.0"
vectorDrawables.useSupportLibrary true
multiDexEnabled true
javaCompileOptions {
annotationProcessorOptions {
arguments = [
"room.schemaLocation": "$projectDir/schemas".toString(),
"room.incremental": "true"
]
}
}
manifestPlaceholders.appAuthRedirectScheme = "olvid.openid"
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
buildToolsVersion '31.0.0'
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
dataBinding = true
}
flavorDimensions "features"
productFlavors {
prod {
dimension "features"
buildConfigField "String", "HARDCODED_API_KEY", "\"00000000-0000-0000-0000-000000000000\""
buildConfigField "String", "CONTENT_PROVIDER_URI_PREFIX", "\"content://io.olvid.messenger.PROVIDER/\""
buildConfigField "String", "SERVER_NAME", "\"https://server.olvid.io\""
buildConfigField "int", "LOG_LEVEL", "io.olvid.engine.Logger.INFO"
}
}
}
dependencies {
annotationProcessor 'androidx.room:room-compiler:2.4.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(path: ':libwebrtc')
implementation project(':engine')
// for latest versions see https://github.com/material-components/material-components-android/releases
implementation 'com.google.android.material:material:1.4.0'
implementation('com.google.firebase:firebase-messaging:23.0.0') {
exclude group: 'com.google.firebase', module: 'firebase-core'
exclude group: 'com.google.firebase', module: 'firebase-analytics'
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
}
// starting with zxing 3.4.0, API level 24 is required...
implementation 'com.google.zxing:core:3.3.3'
implementation 'com.android.billingclient:billing:4.0.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.emoji2:emoji2:1.0.1'
implementation 'androidx.emoji2:emoji2-bundled:1.0.1'
implementation 'androidx.activity:activity:1.4.0'
implementation 'androidx.biometric:biometric:1.1.0'
implementation 'androidx.camera:camera-camera2:1.0.2'
implementation 'androidx.camera:camera-lifecycle:1.0.2'
implementation 'androidx.camera:camera-view:1.0.0-alpha32'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.core:core-splashscreen:1.0.0-alpha02'
implementation 'androidx.core:core:1.7.0'
implementation 'androidx.exifinterface:exifinterface:1.3.3'
implementation 'androidx.fragment:fragment:1.4.0'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.4.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.media2:media2-player:1.2.0'
implementation 'androidx.media2:media2-session:1.2.0'
implementation 'androidx.media2:media2-widget:1.2.0'
implementation 'androidx.media:media:1.4.3'
implementation 'androidx.navigation:navigation-fragment:2.3.5'
implementation 'androidx.navigation:navigation-ui:2.3.5'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.room:room-runtime:2.4.0'
implementation 'androidx.sharetarget:sharetarget:1.2.0-rc01'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation 'androidx.work:work-runtime:2.7.1'
// generation of the opensource license page
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
// connection to google drive
implementation 'com.google.android.gms:play-services-auth:20.0.1'
implementation('com.google.http-client:google-http-client-gson:1.41.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('com.google.api-client:google-api-client-android:1.33.0') {
exclude group: 'org.apache.httpcomponents'
}
// for latest version, see: https://github.com/googleapis/google-api-java-client-services/tree/master/clients/google-api-services-drive/v3
implementation('com.google.apis:google-api-services-drive:v3-rev20211107-1.32.1') {
exclude group: 'org.apache.httpcomponents'
}
// webclient
implementation 'org.java-websocket:Java-WebSocket:1.5.2'
implementation 'com.google.protobuf:protobuf-lite:3.0.1'
// openID
implementation 'net.openid:appauth:0.11.1'
implementation 'org.bitbucket.b_c:jose4j:0.7.9'
}
apply plugin: 'com.google.gms.google-services'
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.18.0'
}
plugins {
javalite {
artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
remove java
}
task.plugins {
javalite { }
}
}
}
}
}