Skip to content

Commit

Permalink
Added option to show still frame of preview
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenAkers committed Nov 13, 2018
1 parent 416b1ed commit 725ce0b
Show file tree
Hide file tree
Showing 21 changed files with 1,562 additions and 221 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
8 changes: 6 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions app/build.gradle
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
compileSdkVersion 28
defaultConfig {
applicationId "com.voiceit.voiceit2sdk"
minSdkVersion 17
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -20,9 +20,9 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:appcompat-v7:28.+'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:28.+'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/voiceit/voiceit2sdk/MainActivity.java
Expand Up @@ -4,7 +4,6 @@
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.Switch;
import android.widget.Toast;

Expand Down Expand Up @@ -36,10 +35,11 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);

myVoiceIt = new VoiceItAPI2("API_KEY","API_TOK");
myVoiceIt.mDisplayPreviewFrame = true;

userIdSwitch = findViewById(R.id.switch_user);
livenessSwitch = findViewById(R.id.switch_liveness);
userIdSwitch.setText("User 1");
userIdSwitch.setText("User 1 ");
}

public void toggleLiveness(View view) {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Thu Apr 19 14:07:28 CDT 2018
#Mon Nov 12 10:08:57 CST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
16 changes: 8 additions & 8 deletions voiceit2/build.gradle
Expand Up @@ -3,12 +3,12 @@ apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.voiceittech'

android {
compileSdkVersion 27
compileSdkVersion 28
defaultConfig {
minSdkVersion 17
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.6.2"
versionName "1.6.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand All @@ -21,14 +21,14 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:appcompat-v7:28.+'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:27.+'
implementation 'com.android.support.constraint:constraint-layout:1.1.1'
implementation 'com.android.support:support-v4:27.+'
implementation 'com.google.android.gms:play-services-vision:11.4.0+'
implementation 'com.android.support:design:28.+'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.+'
implementation 'com.google.android.gms:play-services-vision:11.4.+'
implementation group: 'commons-io', name: 'commons-io', version: '2.5'

api 'com.loopj.android:android-async-http:1.4.9'
Expand Down

0 comments on commit 725ce0b

Please sign in to comment.