diff --git a/README.md b/README.md index 0c97798..b45bc26 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ To run the sample app, you'll need a Plaid account. You can create one on [our w ## 2a. Generate a link_token and add it to the sample app 1. Clone the sample repository 2. Curl [/link/token/create](https://plaid.com/docs/#create-link-token) to create a new link_token -3. Copy and paste the link_token into the [kotlin][get-link-token-kotlin] or [java][get-link-token-java] `getLinkToken()` function. +3. Copy and paste the link_token into the [kotlin][get-link-token-kotlin] or [java][get-link-token-java] LinkTokenRequester's `getToken()` function. OR diff --git a/app/src/main/java/com/plaid/linksample/MainActivityJava.java b/app/src/main/java/com/plaid/linksample/MainActivityJava.java index 61ad969..392482b 100644 --- a/app/src/main/java/com/plaid/linksample/MainActivityJava.java +++ b/app/src/main/java/com/plaid/linksample/MainActivityJava.java @@ -18,8 +18,10 @@ import androidx.appcompat.app.AppCompatActivity; import com.plaid.link.Plaid; import com.plaid.link.configuration.LinkTokenConfiguration; +import com.plaid.link.configuration.PlaidProduct; import com.plaid.link.result.PlaidLinkResultHandler; import com.plaid.linksample.network.LinkTokenRequester; +import java.util.ArrayList; import kotlin.Unit; public class MainActivityJava extends AppCompatActivity { 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 8e408ab..a60bb84 100644 --- a/app/src/main/java/com/plaid/linksample/network/LinkTokenRequester.kt +++ b/app/src/main/java/com/plaid/linksample/network/LinkTokenRequester.kt @@ -32,8 +32,10 @@ object LinkTokenRequester { .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .map { it.link_token } - // Uncomment this to use a curled Link Token - //return Single.just("") + + // Comment out the above and uncomment the below to use a curled Link Token + // val token + // get() = Single.just("") }