Stripe-Android - Viking and use as your own library

I am integrating stripe-android in my application, but I need a few changes to make it work properly. Following this answer , I made a fork and included it as a gradle dependency.

Related answer

You can use another way to add dependencies using a github project using the github repo and the jitpack plugin. In this case, you need to add this repository to your build.gradle

 repositories { // ... maven { url "https://jitpack.io" } } 

and dependency:

 dependencies { compile 'com.github.User:Repo:Tag' } 

Implementation

That sounds easy enough. Therefore, I created the plug and made the small changes that I need, and created a new tag according to their scheme, v5.1.1. Then I added it to my dependencies.

 dependencies { compile 'com.github.ClickDishes:stripe-android:v5.1.1' } 

That way he can find the version; however now he will give me an error.

Error: the module 'com.github.ClickDishes: stripe-android: v5.1.1' depends on one or more Android libraries, but it is a jar

Here you can find my tag, https://github.com/ClickDishes/stripe-android/releases/tag/v5.1.1

Any idea on what I'm doing wrong?

Thanks.

Update

I studied this more, and I think this may be a problem when setting up the library. Reading magazines on JitPack shows a lot of errors regarding Android and gms support classes. Therefore, I believe that it does not play well with some libraries.

https://jitpack.io/com/github/ClickDishes/stripe-android/v5.1.1/build.log

  ... symbol: class LineItem location: class CartError /home/jitpack/build/android-pay/src/main/java/com/stripe/wrap/pay/utils/CartManager.java:9: error: package com.google.android.gms.wallet does not exist import com.google.android.gms.wallet.Cart; ^ ... 

And then I compared with the actual stripe:stripe-android library stripe:stripe-android on JitPack, and the same errors appear.

+7
git android github stripe-payments
source share
1 answer

I looked at your repo, you included (included?) The actual letter v in the version, so like this:

 dependencies { compile 'com.github.ClickDishes:stripe-android:v5.1.1' } 

you can see it here: https://jitpack.io/#ClickDishes/stripe-android/v5.1.1

+1
source share

All Articles