-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
33 lines (29 loc) · 1.25 KB
/
build.gradle.kts
File metadata and controls
33 lines (29 loc) · 1.25 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
import java.util.Properties
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
id("com.google.devtools.ksp") version "1.9.22-1.0.17" apply false
id("com.google.dagger.hilt.android") version "2.50" apply false
id("com.google.gms.google-services") version "4.4.2" apply false
id("com.google.firebase.crashlytics") version "3.0.3" apply false
id("vkid.manifest.placeholders") version "1.1.0" apply true
}
vkidManifestPlaceholders {
fun error() =
logger.error(
"Warning! Build will not work!" +
"\nCreate the 'secrets.properties' file in the 'sample/app' folder" +
" and add your 'VKIDClientID' and 'VKIDClientSecret' to it.",
)
val properties = Properties()
properties.load(file("app/secrets.properties").inputStream())
val clientId = properties["VKIDClientID"] ?: error()
val clientSecret = properties["VKIDClientSecret"] ?: error()
init(
clientId = clientId.toString(),
clientSecret = clientSecret.toString(),
)
vkidRedirectHost = "vk.com"
vkidRedirectScheme = "vk53583099"
}