Skip to content

Commit 7b5eb70

Browse files
committed
[ADD] added samourai.api key file and build system update
1 parent 8ad90fa commit 7b5eb70

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

app/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ android {
1717
minifyEnabled false
1818
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1919
}
20+
applicationVariants.all { variant ->
21+
variant.buildConfigField "String", "XOR_1", "\""+getApiKey("XOR_1")+"\""
22+
variant.buildConfigField "String", "XOR_2", "\""+getApiKey("XOR_2")+"\""
23+
}
2024
}
2125
lintOptions {
2226
checkReleaseBuilds false
@@ -77,6 +81,7 @@ dependencies {
7781
implementation 'com.lambdaworks:scrypt:1.4.0'
7882
implementation 'net.i2p.android.ext:floatingactionbutton:1.9.0'
7983
implementation 'com.squareup.picasso:picasso:2.5.2'
84+
implementation 'com.android.support:design:28.0.0'
8085
implementation('com.google.zxing:core:3.3.0') {
8186
transitive = true
8287
}
@@ -90,3 +95,11 @@ dependencies {
9095
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
9196

9297
}
98+
99+
100+
def getApiKey(key){
101+
def Properties props = new Properties()
102+
props.load(new FileInputStream(new File('samourai.api')))
103+
return props[key]
104+
}
105+

samourai.api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
XOR_1=[Request API key]
2+
XOR_2=[from [email protected]]

0 commit comments

Comments
 (0)