A
A
Alexander Farber2015-10-22 20:38:44
Android
Alexander Farber, 2015-10-22 20:38:44

Where can I get Odnoklassniki SDK for Android Studio?

Good evening!
Unlike many other projects, Odnoklassniki does not have a "magic line" that can be simply inserted into the app/gradle.build file .
That is, you need a JAR file - to add it to the Android Studio project manually.
There are 2 sources on the net for such a file - the
first one is in the Odnoklassniki example at https://github.com/apiok/android_example/tree/mast...
The second one is in their SDK on GitHub: https://github.com/apiok/ ok-android-sdk
And they differ - for example, the requestAuthorization() method has different parameters.
I decided to try to take the second one (after I had problems with the first one - about which I plan to ask a separate question - but after I clarify the issue of the official SDK for Odnoklassniki here):

git clone https://github.com/apiok/ok-android-sdk.git
cd ok-android-sdk
./gradlew

It says BUILD SUCCESSFUL but the JAR file is nowhere to be found.
I then run ./gradlew signingReport (by the way, I use MacOS, but I also tried it on Windows 7).
I get among other things
Config: release
Store: /Users/afarber/src/ok-android-sdk/ok-android-sdk-key.keystore
Alias: ok-android-sdk
Error: Missing keystore

I run ./gradlew assembleRelease - I get at the end:
FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':odnoklassniki-android-sdk-example:packageRelease'.
> File '/Users/afarber/src/ok-android-sdk/ok-android-sdk-key.keystore' specified for property 'signingConfig.storeFile' does not exist.

Apparently Odnoklassniki excluded their file with keys for signing the JAR file from GitHub and did the right thing ...
But then what should I do, where can I get the JAR file? (The "Release" tab on their GitHub is empty).
In addition, I'm not sure if I used the correct commands, if anything I ask you to correct it.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tiberal, 2015-10-23
@afarber

Fork the project and add it as a submodule.
https://git-scm.com/book/en/v1/%D0%98%D0%BD%D1%81%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question