File tree Expand file tree Collapse file tree 13 files changed +16
-49
lines changed
java/com/zeroone/concealexample
src/main/java/com/zeroone/conceal Expand file tree Collapse file tree 13 files changed +16
-49
lines changed Original file line number Diff line number Diff line change 11# ConcealSharedPreference-Android
22Secure Android SharedPreferences Using Conceal Crypto by Facebook<br ><br >
33[ ![ ] ( https://jitpack.io/v/afiqiqmal/ConcealSharedPreference-Android.svg )] ( https://jitpack.io/#afiqiqmal/ConcealSharedPreference-Android )
4- [ ![ ] ( https://img.shields.io/badge/Conceal-1.1.3-brightgreen.svg )] ( )
54
65## Installation
76
87Gradle
98``` gradle
109dependencies {
11- compile 'com.github.afiqiqmal:ConcealSharedPreference-Android:1.1.0 '
10+ compile 'com.github.afiqiqmal:ConcealSharedPreference-Android:1.1.1 '
1211}
1312```
1413
1716<dependency>
1817 <groupId>com.github.afiqiqmal</groupId>
1918 <artifactId>ConcealSharedPreference-Android</artifactId>
20- <version>1.1.0 </version>
19+ <version>1.1.1 </version>
2120</dependency>
2221```
2322
Original file line number Diff line number Diff line change @@ -9,11 +9,10 @@ android {
99 targetSdkVersion 25
1010 versionCode 1
1111 versionName " 1.0.0"
12- testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
1312 }
1413 buildTypes {
1514 release {
16- minifyEnabled false
15+ minifyEnabled true
1716 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
1817 }
1918 }
@@ -22,7 +21,6 @@ android {
2221dependencies {
2322 compile fileTree(include : [' *.jar' ], dir : ' libs' )
2423 compile ' com.android.support:appcompat-v7:25.2.0'
25- compile ' com.android.support.constraint:constraint-layout:1.0.2'
2624 testCompile ' junit:junit:4.12'
2725 compile project(' :library' )
2826}
Original file line number Diff line number Diff line change 11package com .zeroone .concealexample ;
22
33import android .Manifest ;
4- import android .content .Intent ;
54import android .content .pm .PackageManager ;
6- import android .content .res .Resources ;
7- import android .graphics .Bitmap ;
85import android .graphics .BitmapFactory ;
9- import android .net .Uri ;
106import android .os .Environment ;
117import android .support .v4 .app .ActivityCompat ;
12- import android .support .v7 .app .AppCompatActivity ;
138import android .os .Bundle ;
149import android .util .Log ;
1510
16- import com .facebook .crypto .CryptoConfig ;
1711import com .zeroone .conceal .ConcealPrefRepository ;
1812import com .zeroone .conceal .helper .CryptoFile ;
1913
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <android .support.constraint.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : app =" http://schemas.android.com/apk/res-auto"
44 xmlns : tools =" http://schemas.android.com/tools"
55 android : layout_width =" match_parent"
66 android : layout_height =" match_parent"
77 tools : context =" com.zeroone.concealexample.MainActivity" >
88
99 <TextView
10- android : layout_width =" wrap_content"
11- android : layout_height =" wrap_content"
12- android : text =" Hello World!"
13- app : layout_constraintBottom_toBottomOf =" parent"
14- app : layout_constraintLeft_toLeftOf =" parent"
15- app : layout_constraintRight_toRightOf =" parent"
16- app : layout_constraintTop_toTopOf =" parent" />
10+ android : layout_width =" wrap_content"
11+ android : layout_height =" wrap_content"
12+ android : text =" Hello World!"
13+ android : layout_centerInParent =" true" />
1714
18- </android .support.constraint.ConstraintLayout >
15+ </RelativeLayout >
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ buildscript {
1515allprojects {
1616 repositories {
1717 jcenter()
18+ mavenCentral()
1819 }
1920}
2021
Original file line number Diff line number Diff line change @@ -9,12 +9,11 @@ android {
99 targetSdkVersion 25
1010 versionCode 1
1111 versionName " 1.1.1"
12-
13- testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
14-
1512 }
1613 buildTypes {
1714 release {
15+
16+ shrinkResources true
1817 minifyEnabled false
1918 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
2019 }
@@ -51,11 +50,6 @@ artifacts {
5150
5251dependencies {
5352 compile fileTree(dir : ' libs' , include : [' *.jar' ])
54- androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
55- exclude group : ' com.android.support' , module : ' support-annotations'
56- })
57- compile ' com.android.support:appcompat-v7:25.2.0'
58- testCompile ' junit:junit:4.12'
59-
6053 compile ' com.facebook.conceal:conceal:1.1.3@aar'
54+ compile ' com.android.support:support-annotations:25.2.0'
6155}
Original file line number Diff line number Diff line change 2222
2323# If you keep the line number information, uncomment this to
2424# hide the original source file name.
25- #-renamesourcefileattribute SourceFile
25+ -renamesourcefileattribute *
26+
Original file line number Diff line number Diff line change 22
33import android .Manifest ;
44import android .content .Context ;
5- import android .graphics .Bitmap ;
6- import android .graphics .BitmapFactory ;
75import android .support .annotation .RequiresPermission ;
86import android .util .Base64 ;
9- import android .util .Log ;
107
118import com .facebook .android .crypto .keychain .AndroidConceal ;
129import com .facebook .android .crypto .keychain .SharedPrefsBackedKeyChain ;
Original file line number Diff line number Diff line change 44import android .annotation .SuppressLint ;
55import android .content .Context ;
66import android .content .SharedPreferences ;
7- import android .content .pm .PackageManager ;
87import android .graphics .Bitmap ;
98import android .graphics .BitmapFactory ;
109import android .preference .PreferenceManager ;
1110import android .support .annotation .Nullable ;
1211import android .support .annotation .RequiresPermission ;
13- import android .support .v4 .app .ActivityCompat ;
14- import android .util .Log ;
15-
1612import com .facebook .crypto .CryptoConfig ;
1713import com .zeroone .conceal .helper .ConverterListUtils ;
1814import com .zeroone .conceal .helper .CryptoFile ;
You can’t perform that action at this time.
0 commit comments