-
Notifications
You must be signed in to change notification settings - Fork 304
/
Copy pathbuild.gradle
47 lines (39 loc) · 1.11 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
buildscript {
repositories {
google()
maven { url 'https://maven.google.com' }
}
}
plugins {
id 'com.android.library'
}
android {
namespace 'org.wordpress.passcodelock'
compileSdk 34
defaultConfig {
minSdk 23
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.preference:preference:1.0.0'
}
android.buildTypes.all { buildType ->
project.properties.any { property ->
if (property.key.toLowerCase().startsWith("passcodelock.")) {
buildType.buildConfigField "String", property.key.replace("passcodelock.", "").replace(".", "_").toUpperCase(), "\"${property.value}\""
}
}
}