Dr.Ew
Dr.Ew

Reputation: 13

Where should you install signpost .jars in android studio?

I am trying to implement OAuth via signpost in an app and found this tutorial which looks like it is eclipse based. http://nilvec.com/implementing-client-side-oauth-on-android.html

The relevent instructions:"We will use the excellent signpost Java library to implement OAuth access to Gmail. Just download at least the signpost-core and signpost-commonshttp4 jars, copy them to the lib/ folder inside your Android project, right click on the project, and under Properties/Java Build Path you can add them to the build path:"

I tried moving the mentioned .jars to the app/libs folder in my app with no luck. Am I on the right track or is there a better way to handle OAuth in android studio?

Upvotes: 1

Views: 1243

Answers (1)

JBaruch
JBaruch

Reputation: 22893

Signpost jars are in Bintray JCenter, so you can just add them to your gradle script:

dependencies {
    compile(group: 'oauth.signpost', name: 'signpost-core', version: '1.2.1.2')
    compile(group: 'oauth.signpost', name: 'signpost-commonshttp4', version: '1.2.1.2')
}

Upvotes: 6

Related Questions