Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Outdated Documentation Mobile Buy SDK Android

Outdated Documentation Mobile Buy SDK Android

dark_lawz
Visitor
1 0 2

Good day,

 

I am trying to implement the Mobile Buy SDK in Android Studio for my custom app, but I cant figure out, which classes / methods I need to use now, as the documented methods don't work anymore.

 

Specifically this code is not existing in this form:

 

GraphClient.builder(this)
  .shopDomain(BuildConfig.SHOP_DOMAIN)
  .accessToken(BuildConfig.API_KEY)
  .httpClient(httpClient) // optional
  .httpCache(new File(getApplicationContext().getCacheDir(), "/http"), 10 * 1024 * 1024) // 10mb for http cache
  .defaultHttpCachePolicy(HttpCachePolicy.CACHE_FIRST.expireAfter(5, TimeUnit.MINUTES)) // cached response valid by default for 5 minutes
  .build()

Mobile-Buy-SDK-Github-ReadMe 

 

I am currently using this library in my app.build.gradle

 

implementation ('com.shopify.mobilebuysdk:buy3:14.0.0'){
exclude group: "com.shopify.graphql.support"
}

I needed to exclude this group, as it generated duplicated classes.

 

Is there a link to a newer documentation? Did I skip an important part?

 

 

Replies 2 (2)

BigBrainsBrad
Shopify Partner
1 0 0

Has anyone found documentation or sample code that works for recent versions of the mobile-buy-sdk-android?  As of Feb 2023 the documentation on github is still for 3.2.3 and doesn't work/compile for recent versions (the current version is 15.1).

boat1
Shopify Partner
1 0 0

It's been 4 years and these guys haven't even bothered updating their method signatures in the readme.