From dfe6a1e09e4965a7815bf857cf6003a698cd1a59 Mon Sep 17 00:00:00 2001 From: Amy Tang Date: Wed, 4 Nov 2020 08:26:31 -0800 Subject: [PATCH] ANDROID: Enable OAuth use with quickstart --- app/build.gradle | 2 +- .../plaid/linksample/network/LinkTokenRequester.kt | 6 +++--- start_server.sh | 11 +++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index aba51b2..3dc4fa1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,7 +22,7 @@ android { } dependencies { - implementation "com.plaid.link:sdk-core:3.1.0" + implementation "com.plaid.link:sdk-core:3.1.1" implementation "androidx.appcompat:appcompat:1.2.0" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" diff --git a/app/src/main/java/com/plaid/linksample/network/LinkTokenRequester.kt b/app/src/main/java/com/plaid/linksample/network/LinkTokenRequester.kt index a60bb84..642cf80 100644 --- a/app/src/main/java/com/plaid/linksample/network/LinkTokenRequester.kt +++ b/app/src/main/java/com/plaid/linksample/network/LinkTokenRequester.kt @@ -33,9 +33,9 @@ object LinkTokenRequester { .observeOn(AndroidSchedulers.mainThread()) .map { it.link_token } - // Comment out the above and uncomment the below to use a curled Link Token - // val token - // get() = Single.just("") + //Comment out the above and uncomment the below to use a curled Link Token + //val token + // get() = Single.just("") } diff --git a/start_server.sh b/start_server.sh index 5d2ee04..a3a5602 100755 --- a/start_server.sh +++ b/start_server.sh @@ -17,11 +17,22 @@ npm install # initializing Link, see plaid.com/docs/faq/#does-plaid-support-international-bank-accounts- # for a complete list +if [ -z "$1" ] + then + echo "Client id must be supplied" +fi + +if [ -z "$2" ] + then + echo "Client secret must be supplied" +fi + PLAID_CLIENT_ID=$1 \ PLAID_SECRET=$2 \ PLAID_ENV='sandbox' \ PLAID_PRODUCTS='transactions' \ PLAID_COUNTRY_CODES='US' \ +PLAID_ANDROID_PACKAGE_NAME='com.plaid.linksample' \ node index.js # Go to http://localhost:8000