Skip to content

Commit 8342683

Browse files
Update sample for Android Java + Firebase functions
1 parent 0a5aaa8 commit 8342683

File tree

17 files changed

+149
-142
lines changed

17 files changed

+149
-142
lines changed

samples/android-java-firebase-function/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## E3Kit Android Java Firebase function
22

33
### Prerequisites
4-
- Android Studio 3.2.1+
4+
- Android Studio 4.0.1+
55
- [Firebase function](https://github.com/VirgilSecurity/virgil-e3kit-firebase-func) deployed successfully.
66

77
### How to start
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
google-services.json

samples/android-java-firebase-function/app/build.gradle

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2020, Virgil Security, Inc.
2+
* Copyright (c) 2015-2021, Virgil Security, Inc.
33
*
44
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
55
*
@@ -35,14 +35,14 @@ apply plugin: 'com.android.application'
3535
apply plugin: 'com.google.gms.google-services'
3636

3737
android {
38-
compileSdkVersion 28
38+
compileSdkVersion 30
3939
defaultConfig {
4040
applicationId "com.android.virgilsecurity.ethreesamplejavafirebase"
4141
minSdkVersion 21
42-
targetSdkVersion 28
42+
targetSdkVersion 30
4343
versionCode 1
4444
versionName "1.0"
45-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
45+
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
4646
}
4747
buildTypes {
4848
release {
@@ -54,16 +54,16 @@ android {
5454

5555
dependencies {
5656
implementation fileTree(dir: 'libs', include: ['*.jar'])
57-
implementation 'com.android.support:appcompat-v7:28.0.0'
58-
implementation 'com.android.support:support-v4:28.0.0'
59-
implementation 'com.android.support:animated-vector-drawable:28.0.0'
60-
implementation 'com.android.support:support-media-compat:28.0.0'
61-
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
57+
implementation 'androidx.appcompat:appcompat:1.2.0'
58+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
59+
implementation 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
60+
implementation 'androidx.media:media:1.2.1'
61+
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
6262

6363
// Firebase
64-
implementation 'com.google.firebase:firebase-core:16.0.6'
65-
implementation 'com.google.firebase:firebase-auth:16.1.0'
64+
implementation 'com.google.firebase:firebase-core:18.0.2'
65+
implementation 'com.google.firebase:firebase-auth:20.0.2'
6666

6767
// E3Kit
68-
implementation "com.virgilsecurity:ethree-kotlin:0.5.0"
68+
implementation "com.virgilsecurity:ethree:2.0.8"
6969
}

samples/android-java-firebase-function/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--
3-
~ Copyright (c) 2015-2020, Virgil Security, Inc.
3+
~ Copyright (c) 2015-2021, Virgil Security, Inc.
44
~
55
~ Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
66
~

samples/android-java-firebase-function/app/src/main/java/com/android/virgilsecurity/ethreesamplejavafirebase/EThreeActivity.java

Lines changed: 115 additions & 111 deletions
Large diffs are not rendered by default.

samples/android-java-firebase-function/app/src/main/res/drawable-v24/ic_launcher_foreground.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
~ Copyright (c) 2015-2020, Virgil Security, Inc.
2+
~ Copyright (c) 2015-2021, Virgil Security, Inc.
33
~
44
~ Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
55
~

samples/android-java-firebase-function/app/src/main/res/drawable/ic_launcher_background.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--
3-
~ Copyright (c) 2015-2020, Virgil Security, Inc.
3+
~ Copyright (c) 2015-2021, Virgil Security, Inc.
44
~
55
~ Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
66
~

samples/android-java-firebase-function/app/src/main/res/layout/activity_ethree.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?><!--
2-
~ Copyright (c) 2015-2020, Virgil Security, Inc.
2+
~ Copyright (c) 2015-2021, Virgil Security, Inc.
33
~
44
~ Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
55
~
@@ -31,7 +31,7 @@
3131
~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
-->
3333

34-
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
34+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3535
xmlns:app="http://schemas.android.com/apk/res-auto"
3636
xmlns:tools="http://schemas.android.com/tools"
3737
android:layout_width="match_parent"
@@ -49,4 +49,4 @@
4949
app:layout_constraintStart_toStartOf="parent"
5050
app:layout_constraintTop_toTopOf="parent"/>
5151

52-
</android.support.constraint.ConstraintLayout>
52+
</androidx.constraintlayout.widget.ConstraintLayout>

samples/android-java-firebase-function/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--
3-
~ Copyright (c) 2015-2020, Virgil Security, Inc.
3+
~ Copyright (c) 2015-2021, Virgil Security, Inc.
44
~
55
~ Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
66
~

samples/android-java-firebase-function/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!--
3-
~ Copyright (c) 2015-2020, Virgil Security, Inc.
3+
~ Copyright (c) 2015-2021, Virgil Security, Inc.
44
~
55
~ Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
66
~

0 commit comments

Comments
 (0)