├── .gitignore ├── .gitignore~ ├── License.txt ├── README.md ├── VerifyQuickSample ├── .gitignore ├── README.md ├── app │ ├── .gitignore │ ├── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── local.properties │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── nexmo │ │ │ └── sdk │ │ │ └── sample │ │ │ └── verifyquicksample │ │ │ └── ApplicationTest.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── nexmo │ │ │ └── sdk │ │ │ └── sample │ │ │ └── verifyquicksample │ │ │ ├── Config.java │ │ │ ├── MainActivity.java │ │ │ ├── MainActivityFragment.java │ │ │ └── SampleApplication.java │ │ └── res │ │ ├── drawable-hdpi │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ │ ├── drawable │ │ └── ic_launcher.png │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── content_main.xml │ │ └── fragment_main.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ ├── strings.xml~ │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle.properties~ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── screenshots │ ├── verify_check_code.png │ └── verify_input_number.png └── settings.gradle ├── VerifySample ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── nexmo │ │ │ └── sdk │ │ │ └── sample │ │ │ └── verifysample │ │ │ └── ApplicationTest.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── nexmo │ │ │ └── sdk │ │ │ └── sample │ │ │ └── verifysample │ │ │ ├── CheckCodeActivity.java │ │ │ ├── Config.java │ │ │ ├── MainActivity.java │ │ │ ├── SampleApplication.java │ │ │ ├── adapter │ │ │ ├── CountriesAdapter.java │ │ │ ├── Country.java │ │ │ └── CountryList.java │ │ │ └── fragment │ │ │ ├── CheckCodeFragment.java │ │ │ └── MainFragment.java │ │ └── res │ │ ├── drawable │ │ ├── button.xml │ │ ├── button_state_enabled.xml │ │ ├── button_state_selected.xml │ │ └── ic_launcher.png │ │ ├── layout │ │ ├── activity_check_code.xml │ │ ├── activity_main.xml │ │ ├── country_dropdown_item.xml │ │ ├── country_item.xml │ │ ├── fragment_check_code.xml │ │ └── fragment_main.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── colors.xml │ │ ├── country_code.xml │ │ ├── country_name.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── screenshots │ ├── check_screen_code_validation.png │ └── main_screen_number_validation.png └── settings.gradle ├── VerifySample_PushEnabled ├── .gitignore ├── app │ ├── .gitignore │ ├── build.gradle │ ├── google-services.json │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── nexmo │ │ │ └── sdk │ │ │ └── sample │ │ │ └── verifysample_pushenabled │ │ │ └── ApplicationTest.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── nexmo │ │ │ └── sdk │ │ │ └── sample │ │ │ └── verifysample_pushenabled │ │ │ ├── CheckCodeActivity.java │ │ │ ├── Config.java │ │ │ ├── MainActivity.java │ │ │ ├── SampleApplication.java │ │ │ ├── adapter │ │ │ ├── CountriesAdapter.java │ │ │ ├── Country.java │ │ │ └── CountryList.java │ │ │ ├── fragment │ │ │ ├── CheckCodeFragment.java │ │ │ └── MainFragment.java │ │ │ └── push │ │ │ └── MyFirebaseInstanceIDService.java │ │ └── res │ │ ├── drawable │ │ ├── button.xml │ │ ├── button_state_enabled.xml │ │ ├── button_state_selected.xml │ │ └── ic_launcher.png │ │ ├── layout │ │ ├── activity_check_code.xml │ │ ├── activity_main.xml │ │ ├── country_dropdown_item.xml │ │ ├── country_item.xml │ │ ├── fragment_check_code.xml │ │ └── fragment_main.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── colors.xml │ │ ├── country_code.xml │ │ ├── country_name.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties └── settings.gradle ├── build.gradle ├── change_log.md ├── docs └── javadoc │ ├── allclasses-frame.html │ ├── allclasses-noframe.html │ ├── com │ └── nexmo │ │ └── sdk │ │ ├── NexmoClient.ENVIRONMENT_HOST.html │ │ ├── NexmoClient.NexmoClientBuilder.html │ │ ├── NexmoClient.html │ │ ├── core │ │ ├── client │ │ │ ├── Client.html │ │ │ ├── ClientBuilderException.html │ │ │ ├── ConnectionClient.html │ │ │ ├── Request.html │ │ │ ├── RequestHeader.html │ │ │ ├── Response.html │ │ │ ├── ResultCodes.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── config │ │ │ ├── Config.html │ │ │ ├── Defaults.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── device │ │ │ ├── DeviceProperties.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── event │ │ │ ├── ServiceListener.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── gcm │ │ │ ├── VerifyGcmListenerService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ └── request │ │ │ ├── RequestSigning.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ ├── package-tree.html │ │ ├── util │ │ ├── DeviceUtil.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ └── verify │ │ ├── client │ │ ├── InternalNetworkException.html │ │ ├── VerifyClient.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ │ ├── core │ │ ├── event │ │ │ ├── BaseClientListener.html │ │ │ ├── CheckServiceListener.html │ │ │ ├── CommandServiceListener.html │ │ │ ├── GenericExceptionListener.html │ │ │ ├── SearchServiceListener.html │ │ │ ├── VerifyServiceListener.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ ├── package-tree.html │ │ │ └── token │ │ │ │ ├── BaseTokenServiceListener.html │ │ │ │ ├── package-frame.html │ │ │ │ ├── package-summary.html │ │ │ │ └── package-tree.html │ │ ├── request │ │ │ ├── BaseRequest.html │ │ │ ├── CommandRequest.html │ │ │ ├── SearchRequest.html │ │ │ ├── VerifyRequest.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ ├── response │ │ │ ├── BaseResponse.html │ │ │ ├── CheckResponse.html │ │ │ ├── SearchResponse.html │ │ │ ├── TokenResponse.html │ │ │ ├── VerifyResponse.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ └── service │ │ │ ├── BaseService.html │ │ │ ├── CheckService.html │ │ │ ├── CommandService.html │ │ │ ├── SearchService.html │ │ │ ├── TokenService.html │ │ │ ├── VerifyService.html │ │ │ ├── package-frame.html │ │ │ ├── package-summary.html │ │ │ └── package-tree.html │ │ └── event │ │ ├── Command.html │ │ ├── CommandListener.html │ │ ├── SearchListener.html │ │ ├── UserStatus.html │ │ ├── VerifyClientListener.html │ │ ├── VerifyError.html │ │ ├── package-frame.html │ │ ├── package-summary.html │ │ └── package-tree.html │ ├── constant-values.html │ ├── deprecated-list.html │ ├── help-doc.html │ ├── index-files │ ├── index-1.html │ ├── index-10.html │ ├── index-11.html │ ├── index-12.html │ ├── index-13.html │ ├── index-14.html │ ├── index-15.html │ ├── index-16.html │ ├── index-17.html │ ├── index-18.html │ ├── index-19.html │ ├── index-2.html │ ├── index-20.html │ ├── index-3.html │ ├── index-4.html │ ├── index-5.html │ ├── index-6.html │ ├── index-7.html │ ├── index-8.html │ └── index-9.html │ ├── index.html │ ├── overview-frame.html │ ├── overview-summary.html │ ├── overview-tree.html │ ├── package-list │ ├── resources │ ├── background.gif │ ├── tab.gif │ ├── titlebar.gif │ └── titlebar_end.gif │ ├── serialized-form.html │ └── stylesheet.css ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── settings.gradle └── verifySDK ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── libs └── org.apache.http.legacy.jar └── src ├── androidTest └── java │ └── com │ └── nexmo │ └── sdk │ ├── NexmoClientTest.java │ ├── core │ └── client │ │ └── ClientTest.java │ ├── device │ ├── DevicePropertiesTest.java │ └── DeviceUtilTest.java │ └── verify │ ├── client │ ├── MockNexmoClient.java │ └── VerifyClientTest.java │ └── core │ └── service │ ├── TokenServiceTest.java │ └── VerifyServiceTest.java └── main ├── AndroidManifest.xml ├── java └── com │ └── nexmo │ └── sdk │ ├── NexmoClient.java │ ├── core │ ├── client │ │ ├── Client.java │ │ ├── ClientBuilderException.java │ │ ├── ConnectionClient.java │ │ ├── Request.java │ │ ├── RequestHeader.java │ │ ├── Response.java │ │ └── ResultCodes.java │ ├── config │ │ ├── Config.java │ │ └── Defaults.java │ ├── device │ │ ├── DeviceProperties.java │ │ └── NoDeviceIdException.java │ ├── event │ │ └── ServiceListener.java │ ├── push │ │ └── NexmoFirebaseMessagingService.java │ └── request │ │ └── RequestSigning.java │ ├── util │ └── DeviceUtil.java │ └── verify │ ├── client │ ├── InternalNetworkException.java │ └── VerifyClient.java │ ├── core │ ├── event │ │ ├── BaseClientListener.java │ │ ├── CheckServiceListener.java │ │ ├── CommandServiceListener.java │ │ ├── GenericExceptionListener.java │ │ ├── SearchServiceListener.java │ │ ├── VerifyServiceListener.java │ │ └── token │ │ │ └── BaseTokenServiceListener.java │ ├── request │ │ ├── BaseRequest.java │ │ ├── CommandRequest.java │ │ ├── SearchRequest.java │ │ └── VerifyRequest.java │ ├── response │ │ ├── BaseResponse.java │ │ ├── CheckResponse.java │ │ ├── SearchResponse.java │ │ ├── TokenResponse.java │ │ └── VerifyResponse.java │ └── service │ │ ├── BaseService.java │ │ ├── CheckService.java │ │ ├── CommandService.java │ │ ├── SearchService.java │ │ ├── TokenService.java │ │ └── VerifyService.java │ ├── event │ ├── Command.java │ ├── CommandListener.java │ ├── SearchListener.java │ ├── UserObject.java │ ├── UserStatus.java │ ├── VerifyClientListener.java │ └── VerifyError.java │ └── ui │ ├── CheckPhoneNumberActivity.java │ ├── VerifyBaseActivity.java │ ├── VerifyPhoneNumberActivity.java │ ├── countriesAdapter │ ├── Country.java │ ├── CountryAdapter.java │ └── CountryList.java │ ├── response │ └── ManagedVerifyResponse.java │ └── view │ └── VerifyPhoneNumberTextView.java └── res ├── drawable ├── nexmo_activity_indicator.xml ├── nexmo_secondary_button.xml ├── nexmo_secondary_button_state_enabled.xml ├── nexmo_secondary_button_state_selected.xml ├── nexmo_verify_button.xml ├── nexmo_verify_button_state_enabled.xml └── nexmo_verify_button_state_selected.xml ├── layout ├── nexmo_check_phone_number.xml ├── nexmo_country_dropdown_item.xml ├── nexmo_country_item.xml ├── nexmo_verify_phone_number.xml └── nexmo_verify_started.xml └── values ├── colors.xml ├── country_code.xml ├── country_name.xml ├── country_prefix.xml ├── dimens.xml └── strings.xml /.gitignore: -------------------------------------------------------------------------------- 1 | .classpath 2 | .project 3 | .settings 4 | eclipsebin 5 | 6 | bin 7 | gen 8 | build 9 | out 10 | lib 11 | local.properties 12 | 13 | target 14 | pom.xml.* 15 | release.properties 16 | 17 | .idea 18 | *.iml 19 | classes 20 | 21 | obj 22 | 23 | .DS_Store 24 | -------------------------------------------------------------------------------- /.gitignore~: -------------------------------------------------------------------------------- 1 | .classpath 2 | .project 3 | .settings 4 | eclipsebin 5 | 6 | bin 7 | gen 8 | build 9 | out 10 | lib 11 | 12 | target 13 | pom.xml.* 14 | release.properties 15 | 16 | .idea 17 | *.iml 18 | classes 19 | 20 | obj 21 | 22 | .DS_Store 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Verify SDK will shut down effective 14th November, 2018. 2 | 3 | ## To assist with a seamless migration to the Verify API, we have prepared [technical documentation](https://www.nexmo.com/blog/2018/05/10/nexmo-verify-api-implementation-guide-dr/) that will guide you in implementing the Verify API into your client side applications. 4 | 5 | The Nexmo Verify SDK 6 | ======= 7 | 8 | With Verify SDK you add password replacement, 2-factor authentication, or user and transaction verification to your App with a single line of code. 9 | Verify SDK: 10 | * Adds a new level of security to your App by tying phone numbers to unique device IDs. 11 | * Provides user management support. You easily manage user identity across multiple devices and platforms without building a complex user management backend. No need to create and manage a user database, or query your database on each login request. 12 | * Enables you to re-verify users with push notifications. 13 | * Offers a UX framework to integrate in your App. 14 | 15 | Learn how to use Verify SDK on [The official documentation page] (https://docs.nexmo.com/libraries/verify-sdk/verify-sdk-for-android) 16 | 17 | Feel free to checkout the [Verify SDK codebase] (https://github.com/Nexmo/verify-android-sdk/blob/master/verifySDK) if you wish to contribute to our open source library. 18 | 19 | License 20 | ======= 21 | 22 | Copyright (c) 2015 Nexmo, Inc. 23 | All rights reserved. 24 | Licensed only under the Nexmo Verify SDK License Agreement (the "License") located at 25 | 26 | https://www.nexmo.com/terms-use/verify-sdk/ 27 | 28 | By downloading or otherwise using our software or services, you acknowledge 29 | that you have read, understand and agree to be bound by the 30 | [Nexmo Verify SDK License Agreement][1] and [Privacy Policy][2]. 31 | 32 | You may not use, exercise any rights with respect to or exploit this SDK, 33 | or any modifications or derivative works thereof, except in accordance with the License. 34 | 35 | [1]: https://www.nexmo.com/terms-use/verify-sdk/ 36 | [2]: https://www.nexmo.com/privacy-policy/ 37 | 38 | Author 39 | ======= 40 | 41 | Nexmo Open Source Software, oss@nexmo.com 42 | 43 | -------------------------------------------------------------------------------- /VerifyQuickSample/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | .classpath 4 | .project 5 | .settings 6 | eclipsebin 7 | bin 8 | gen 9 | build 10 | out 11 | lib 12 | target 13 | pom.xml.* 14 | release.properties 15 | .idea 16 | *.iml 17 | classes 18 | obj 19 | .DS_Store 20 | -------------------------------------------------------------------------------- /VerifyQuickSample/README.md: -------------------------------------------------------------------------------- 1 | android sample test with module dependecy: verify library 2 | 3 | 4 | Provides a basic UI that enables a user to do a verification using Nexmo Verify SDK. 5 | Screenshots are available in /screenshots folder. 6 | 7 | For general configurations: environment host(production/sandbox), applicationId and sharedSecretKey there is a separate settings screen. 8 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.3" 6 | defaultConfig { 7 | applicationId 'com.nexmo.sdk.sample.verifyquicksample' 8 | minSdkVersion 11 9 | targetSdkVersion 23 10 | versionCode 2 11 | versionName "1.1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled true 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | productFlavors { 20 | } 21 | } 22 | 23 | dependencies { 24 | compile fileTree(include: ['*.jar'], dir: 'libs') 25 | testCompile 'junit:junit:4.12' 26 | compile 'com.nexmo:verify:4.0.0' 27 | compile 'com.android.support:appcompat-v7:23.4.0' 28 | compile 'com.android.support:support-v4:23.4.0' 29 | compile 'com.android.support:design:23.4.0' 30 | } 31 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nexmo/verify-android-sdk/f095775a2915e55c770575751d942e0413f68412/VerifyQuickSample/app/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /VerifyQuickSample/app/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Sep 15 17:54:44 BST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 7 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Fri Sep 25 11:49:24 BST 2015 11 | sdk.dir=/home/emma/Android/Sdk 12 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/emma/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -dontwarn org.junit.*; 19 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/androidTest/java/com/nexmo/sdk/sample/verifyquicksample/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015 Nexmo Inc 3 | * All rights reserved. 4 | * 5 | * Licensed only under the Nexmo Verify SDK License Agreement located at 6 | * 7 | * https://www.nexmo.com/terms-use/verify-sdk/ (the “License”) 8 | * 9 | * You may not use, exercise any rights with respect to or exploit this SDK, 10 | * or any modifications or derivative works thereof, except in accordance 11 | * with the License. 12 | */ 13 | 14 | package com.nexmo.sdk.sample.verifyquicksample; 15 | 16 | import android.app.Application; 17 | import android.test.ApplicationTestCase; 18 | 19 | /** 20 | * Testing Fundamentals 21 | */ 22 | public class ApplicationTest extends ApplicationTestCase { 23 | public ApplicationTest() { 24 | super(Application.class); 25 | } 26 | } -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/java/com/nexmo/sdk/sample/verifyquicksample/Config.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015 Nexmo Inc 3 | * All rights reserved. 4 | * 5 | * Licensed only under the Nexmo Verify SDK License Agreement located at 6 | * 7 | * https://www.nexmo.com/terms-use/verify-sdk/ (the “License”) 8 | * 9 | * You may not use, exercise any rights with respect to or exploit this SDK, 10 | * or any modifications or derivative works thereof, except in accordance 11 | * with the License. 12 | */ 13 | 14 | package com.nexmo.sdk.sample.verifyquicksample; 15 | 16 | /** 17 | * Encapsulate here your Nexmo applicationId and sharedSecretKey as provided by Nexmo per your application. 18 | */ 19 | public class Config { 20 | 21 | public static final String NexmoAppId = "app1"; 22 | public static final String NexmoSharedSecretKey = "123456"; 23 | } -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/java/com/nexmo/sdk/sample/verifyquicksample/MainActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015 Nexmo Inc 3 | * All rights reserved. 4 | * 5 | * Licensed only under the Nexmo Verify SDK License Agreement located at 6 | * 7 | * https://www.nexmo.com/terms-use/verify-sdk/ (the “License”) 8 | * 9 | * You may not use, exercise any rights with respect to or exploit this SDK, 10 | * or any modifications or derivative works thereof, except in accordance 11 | * with the License. 12 | */ 13 | 14 | package com.nexmo.sdk.sample.verifyquicksample; 15 | 16 | import android.app.Activity; 17 | import android.os.Bundle; 18 | 19 | public class MainActivity extends Activity { 20 | 21 | @Override 22 | protected void onCreate(Bundle savedInstanceState) { 23 | super.onCreate(savedInstanceState); 24 | setContentView(R.layout.activity_main); 25 | if (savedInstanceState == null) 26 | getFragmentManager().beginTransaction().add(R.id.container, new MainActivityFragment()).commit(); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/java/com/nexmo/sdk/sample/verifyquicksample/MainActivityFragment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015 Nexmo Inc 3 | * All rights reserved. 4 | * 5 | * Licensed only under the Nexmo Verify SDK License Agreement located at 6 | * 7 | * https://www.nexmo.com/terms-use/verify-sdk/ (the “License”) 8 | * 9 | * You may not use, exercise any rights with respect to or exploit this SDK, 10 | * or any modifications or derivative works thereof, except in accordance 11 | * with the License. 12 | */ 13 | 14 | package com.nexmo.sdk.sample.verifyquicksample; 15 | 16 | import android.app.Fragment; 17 | import android.os.Bundle; 18 | import android.view.LayoutInflater; 19 | import android.view.View; 20 | import android.view.ViewGroup; 21 | import android.widget.Button; 22 | 23 | /** 24 | * A placeholder fragment containing a simple view. 25 | * This is a basic usage for Verify with auto-managed UI components. 26 | */ 27 | public class MainActivityFragment extends Fragment { 28 | 29 | public static final String TAG = MainActivityFragment.class.getSimpleName(); 30 | 31 | public MainActivityFragment() { 32 | } 33 | 34 | @Override 35 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 36 | return inflater.inflate(R.layout.fragment_main, container, false); 37 | } 38 | 39 | @Override 40 | public void onViewCreated(View view, Bundle savedInstanceState) { 41 | super.onViewCreated(view, savedInstanceState); 42 | 43 | final SampleApplication application = (SampleApplication) getActivity().getApplication(); 44 | Button verifyBtn = (Button) getActivity().findViewById(R.id.verify_btn); 45 | 46 | verifyBtn.setOnClickListener(new View.OnClickListener() { 47 | @Override 48 | public void onClick(View v) { 49 | // Initiate the Verify UI auto-managed flow. 50 | application.getVerifyClient().getVerifiedUserFromDefaultManagedUI(); 51 | } 52 | }); 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nexmo/verify-android-sdk/f095775a2915e55c770575751d942e0413f68412/VerifyQuickSample/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nexmo/verify-android-sdk/f095775a2915e55c770575751d942e0413f68412/VerifyQuickSample/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nexmo/verify-android-sdk/f095775a2915e55c770575751d942e0413f68412/VerifyQuickSample/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nexmo/verify-android-sdk/f095775a2915e55c770575751d942e0413f68412/VerifyQuickSample/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nexmo/verify-android-sdk/f095775a2915e55c770575751d942e0413f68412/VerifyQuickSample/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /VerifyQuickSample/app/src/main/res/layout/fragment_main.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 |