You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,19 +25,18 @@ If you are using this lib to catch pokemon and loot pokestop, take care that you
25
25
:exclamation::exclamation::exclamation:
26
26
___
27
27
28
-
# Build
28
+
# Build from source
29
29
- Clone the repo and cd into the folder
30
30
-`` git submodule update --init ``
31
-
- compile and package
32
-
-`` ./gradlew build bundle ``
33
-
- you should have the api bundled in ``build/libs/PokeGOAPI-Java_bundle-0.0.1-SNAPSHOT.jar``
31
+
-`` ./gradlew build ``
32
+
- you should have the api jar in ``build/libs/PokeGOAPI-Java-0.0.1-SNAPSHOT.jar``
34
33
35
34
PS : To Eclipse user, you must build once : `` ./gradlew build `` and add the generated java class for proto into eclipse source path : Right click on the project > Build path > Configure Build Path > Source > Add Folder > Select `build/generated/source/proto/main/java` > Finish
36
35
37
36
# Usage
38
37
You can import the lib directly from the jar OR with Maven/Gradle/SBT/Leiningen using JitPack : [](https://jitpack.io/#Grover-c13/PokeGOAPI-Java)
39
38
40
-
PS : To Eclipse user, add the generated jar into the eclipse build path : Right click on the project > Build path > Java Build Path > Select Libraries tab > Add External JARs… > Select `PokeGOAPI-Java/build/libs/PokeGOAPI-Java_bundle-0.0.1-SNAPSHOT.jar` > Finish
39
+
PS : To Eclipse user who just want to add the jar to classpath : Right click on the project > Build path > Java Build Path > Select Libraries tab > Add External JARs… > Select `PokeGOAPI-Java/build/libs/PokeGOAPI-Java-0.0.1-SNAPSHOT.jar` > Finish
41
40
42
41
Mostly everything is accessed through the PokemonGo class in the API package.
43
42
The constructor of PokemonGo class requires a CredentialsProvider object (which can be obtained from GoogleCredentialsProvider or PtcCredentialsProvider) and a OkHttpClient object.
0 commit comments