-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy pathbuild.gradle
72 lines (61 loc) · 2.68 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
apply plugin: 'com.android.application'
def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
}
return stdout.toString().trim()
}
android {
compileSdkVersion 34
defaultConfig {
applicationId "com.espressif.wifi_provisioning"
minSdkVersion 26
targetSdkVersion 34
versionCode 21
versionName "2.2.1 - ${getGitHash()}"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue "string", "proof_of_possesion", "abcd1234"
resValue "string", "wifi_base_url", "192.168.4.1:80"
resValue "string", "wifi_device_name_prefix", "PROV_"
resValue "string", "ble_device_name_prefix", "PROV_"
buildConfigField "boolean", "isQrCodeSupported", "true"
buildConfigField "boolean", "isSettingsAllowed", "true"
buildConfigField "boolean", "isFilteringByPrefixAllowed", "true"
}
debug {
debuggable true
resValue "string", "proof_of_possesion", "abcd1234"
resValue "string", "wifi_base_url", "192.168.4.1:80"
resValue "string", "wifi_device_name_prefix", "PROV_"
resValue "string", "ble_device_name_prefix", "PROV_"
buildConfigField "boolean", "isQrCodeSupported", "true"
buildConfigField "boolean", "isSettingsAllowed", "true"
buildConfigField "boolean", "isFilteringByPrefixAllowed", "true"
}
}
namespace 'com.espressif.wifi_provisioning'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.protobuf:protobuf-javalite:3.18.0'
implementation 'com.google.crypto.tink:tink-android:1.6.1'
implementation project(path: ':provisioning')
implementation 'com.github.yuriy-budiyev:code-scanner:2.1.2'
implementation 'com.github.firdausmaulan:AVLoadingIndicatorView:2.3.0'
implementation 'com.google.android.gms:play-services-threadnetwork:16.0.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
}