-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Casey Kulm
committed
Aug 14, 2017
1 parent
99127bc
commit f633b27
Showing
42 changed files
with
1,389 additions
and
1,146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
buildscript { | ||
dependencies { | ||
classpath sdkBuildDep.androidPlugin | ||
classpath sdkBuildDep.credentialsPlugin | ||
classpath sdkBuildDep.jacocoPlugin | ||
} | ||
} | ||
|
||
repositories { | ||
flatDir { | ||
dir 'libs' | ||
} | ||
} | ||
|
||
apply from: rootProject.file('gradle/bvsdk-module-android.gradle') | ||
|
||
dependencies { | ||
compile('com.iovation.deviceprint.lib.DevicePrint:deviceprint-lib-release-2.3.3:2.3.3@aar') | ||
compile project(':bvconversations') | ||
provided sdkDep.okhttp3 | ||
|
||
// Dependencies for local unit tests | ||
testCompile sdkTestDep.junit | ||
testCompile sdkTestDep.mockito | ||
testCompile sdkTestDep.mockWebServer | ||
testCompile sdkTestDep.robolectric | ||
} | ||
|
||
apply from: rootProject.file('gradle/setup-signing.gradle') | ||
apply from: rootProject.file('gradle/gradle-mvn-push.gradle') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
POM_NAME=Bazaarvoice Authentication Iovation Library | ||
POM_ARTIFACT_ID=auth-iovation | ||
POM_PACKAGING=aar |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/casey.kulm/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.bazaarvoice.bvandroidsdk_authiovation"/> |
25 changes: 25 additions & 0 deletions
25
bvauthiovation/src/main/java/com/bazaarvoice/bvandroidsdk/IovationFingerprint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.bazaarvoice.bvandroidsdk; | ||
|
||
import android.content.Context; | ||
|
||
import com.iovation.mobile.android.DevicePrint; | ||
|
||
public final class IovationFingerprint implements FingerprintProvider { | ||
private final Context appContext; | ||
private String fingerPrint; | ||
private boolean started = false; | ||
|
||
public IovationFingerprint(BVSDK bvsdk) { | ||
this.appContext = bvsdk.getBvUserProvidedData().getAppContext(); | ||
} | ||
|
||
@Override | ||
public String getFingerprint() throws VerifyError { | ||
if (!started) { | ||
DevicePrint.start(appContext); | ||
fingerPrint = DevicePrint.getBlackbox(appContext); | ||
started = true; | ||
} | ||
return fingerPrint; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="bv_sdk_common">BVSDK Common</string> | ||
<string name="seen_product_onscreen_with_id_set">seen_product_onscreen_with_id_set</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.