Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.
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.
Hello,
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.
For example:
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()
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.
Help would be very much appreciated.