Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 7c4b3b9

Browse files
author
Drilon Reçica
committed
Implemented library upload to jCenter after successful travis build
1 parent 6430e45 commit 7c4b3b9

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ android:
3333
- google-gdk-license-.+
3434
script:
3535
- ./code-check.sh
36-
#after_success:
37-
# - ./bintray-upload.sh
36+
after_success:
37+
- ./bintray-upload.sh

bintray-upload.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
if [ "$TRAVIS_BRANCH" == "master" ]; then
4+
echo -e "\033[0;32m Start clean module \033[0m"
5+
./gradlew :securestorage2library:clean
6+
echo -e "Finished clean \033[0m"
7+
8+
echo -e "\033[0;32m Start install module \033[0m"
9+
./gradlew :securestorage2library:install
10+
echo -e "\033[0;32m Finished install \033[0m"
11+
12+
echo -e "\033[0;32m Start bintrayUpload \033[0m"
13+
./gradlew :securestorage2library:bintrayUpload
14+
echo -e "\033[0;32m Finished bintrayUpload \033[0m"
15+
else
16+
echo -e "\033[0;32m Current branch is not master, will not upload to bintray. \033[0m"
17+
fi

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
buildscript {
44
ext.versionCode = 1
5-
ext.versionName = '2.0.0'
5+
ext.versionName = '0.0.1'
66
ext.kotlin_version = '1.2.41'
77
repositories {
88
google()

securestorage2library/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ dependencies {
4242

4343
ext {
4444
bintrayRepo = 'adorsys'
45-
bintrayName = 'securestorage2library'
45+
bintrayName = 'securestorage2'
4646

4747
publishedGroupId = 'de.adorsys.android'
48-
libraryName = 'securestorage2library'
49-
artifact = 'securestorage2library'
48+
libraryName = 'securestorage2'
49+
artifact = 'securestorage2'
5050

51-
libraryDescription = 'securestorage2library'
51+
libraryDescription = 'securestorage2'
5252

5353
siteUrl = 'https://www.adorsys.de/'
5454
gitUrl = 'https://github.com/adorsys/secure-storage2-android.git'

securestorage2sampleapp/src/main/java/de/adorsys/android/securestorage2sampleapp/MainActivity.kt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@ class MainActivity : AppCompatActivity() {
1212
super.onCreate(savedInstanceState)
1313
setContentView(R.layout.activity_main)
1414

15-
val startMessage = "TEST"
16-
17-
Log.d("LOGTAG1", " " + startMessage)
18-
19-
SecurePreferences.setValue("TAG", startMessage)
20-
21-
Log.d("LOGTAG", " ENCRYPTED 1")
22-
23-
val try1 = SecurePreferences.getStringValue("TAG", "WRONG")
24-
if (try1 != null) {
25-
SecureStorage.setValue("TAG", try1)
26-
}
27-
28-
Log.d("LOGTAG", " ENCRYPTED 2")
29-
30-
Log.d("LOGTAG2", " " + SecureStorage.getStringValue("TAG", "WRONG"))
15+
//TODO Implement Sample App Logic
3116
}
3217
}

0 commit comments

Comments
 (0)