Skip to content

Commit 07e89b0

Browse files
committed
reduce method count
1 parent 4d4d384 commit 07e89b0

File tree

13 files changed

+16
-49
lines changed

13 files changed

+16
-49
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# ConcealSharedPreference-Android
22
Secure 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

87
Gradle
98
```gradle
109
dependencies {
11-
compile 'com.github.afiqiqmal:ConcealSharedPreference-Android:1.1.0'
10+
compile 'com.github.afiqiqmal:ConcealSharedPreference-Android:1.1.1'
1211
}
1312
```
1413

@@ -17,7 +16,7 @@ Maven
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

app/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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 {
2221
dependencies {
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
}

app/src/main/java/com/zeroone/concealexample/MainActivity.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
package com.zeroone.concealexample;
22

33
import android.Manifest;
4-
import android.content.Intent;
54
import android.content.pm.PackageManager;
6-
import android.content.res.Resources;
7-
import android.graphics.Bitmap;
85
import android.graphics.BitmapFactory;
9-
import android.net.Uri;
106
import android.os.Environment;
117
import android.support.v4.app.ActivityCompat;
12-
import android.support.v7.app.AppCompatActivity;
138
import android.os.Bundle;
149
import android.util.Log;
1510

16-
import com.facebook.crypto.CryptoConfig;
1711
import com.zeroone.conceal.ConcealPrefRepository;
1812
import com.zeroone.conceal.helper.CryptoFile;
1913

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
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>

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ buildscript {
1515
allprojects {
1616
repositories {
1717
jcenter()
18+
mavenCentral()
1819
}
1920
}
2021

library/build.gradle

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff 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

5251
dependencies {
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
}

library/proguard-rules.pro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
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+

library/src/main/java/com/zeroone/conceal/ConcealCrypto.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
import android.Manifest;
44
import android.content.Context;
5-
import android.graphics.Bitmap;
6-
import android.graphics.BitmapFactory;
75
import android.support.annotation.RequiresPermission;
86
import android.util.Base64;
9-
import android.util.Log;
107

118
import com.facebook.android.crypto.keychain.AndroidConceal;
129
import com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain;

library/src/main/java/com/zeroone/conceal/ConcealPrefRepository.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
import android.annotation.SuppressLint;
55
import android.content.Context;
66
import android.content.SharedPreferences;
7-
import android.content.pm.PackageManager;
87
import android.graphics.Bitmap;
98
import android.graphics.BitmapFactory;
109
import android.preference.PreferenceManager;
1110
import android.support.annotation.Nullable;
1211
import android.support.annotation.RequiresPermission;
13-
import android.support.v4.app.ActivityCompat;
14-
import android.util.Log;
15-
1612
import com.facebook.crypto.CryptoConfig;
1713
import com.zeroone.conceal.helper.ConverterListUtils;
1814
import com.zeroone.conceal.helper.CryptoFile;

0 commit comments

Comments
 (0)