Skip to content

Commit f634651

Browse files
Update client (#1)
* Initial commit * Initial Commit * chore: remove a redundant path * docs(getGameInfoAndUserProgress): set the correct documentation * docs: add comprehensive usage examples --------- Co-authored-by: luchaos <[email protected]>
1 parent 0186994 commit f634651

File tree

75 files changed

+4878
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4878
-4
lines changed

README.md

Lines changed: 1178 additions & 4 deletions
Large diffs are not rendered by default.

icon.png

15.3 KB
Loading

pom.xml

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.retroachievements</groupId>
8+
<artifactId>api-kotlin</artifactId>
9+
<version>1.0.0</version>
10+
11+
<dependencyManagement>
12+
<dependencies>
13+
<dependency>
14+
<groupId>org.junit</groupId>
15+
<artifactId>junit-bom</artifactId>
16+
<version>5.10.2</version>
17+
<type>pom</type>
18+
<scope>import</scope>
19+
</dependency>
20+
</dependencies>
21+
</dependencyManagement>
22+
23+
<properties>
24+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25+
<kotlin.code.style>official</kotlin.code.style>
26+
<kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
27+
</properties>
28+
29+
<repositories>
30+
<repository>
31+
<id>jitpack.io</id>
32+
<url>https://jitpack.io</url>
33+
</repository>
34+
35+
<repository>
36+
<id>mavenCentral</id>
37+
<url>https://repo1.maven.org/maven2/</url>
38+
</repository>
39+
</repositories>
40+
41+
<build>
42+
<sourceDirectory>src/main/kotlin</sourceDirectory>
43+
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
44+
<plugins>
45+
<plugin>
46+
<groupId>org.jetbrains.kotlin</groupId>
47+
<artifactId>kotlin-maven-plugin</artifactId>
48+
<version>1.9.21</version>
49+
<executions>
50+
<execution>
51+
<id>compile</id>
52+
<phase>compile</phase>
53+
<goals>
54+
<goal>compile</goal>
55+
</goals>
56+
</execution>
57+
<execution>
58+
<id>test-compile</id>
59+
<phase>test-compile</phase>
60+
<goals>
61+
<goal>test-compile</goal>
62+
</goals>
63+
</execution>
64+
</executions>
65+
</plugin>
66+
<plugin>
67+
<artifactId>maven-surefire-plugin</artifactId>
68+
<version>2.22.2</version>
69+
</plugin>
70+
<plugin>
71+
<artifactId>maven-failsafe-plugin</artifactId>
72+
<version>2.22.2</version>
73+
</plugin>
74+
<plugin>
75+
<groupId>org.codehaus.mojo</groupId>
76+
<artifactId>exec-maven-plugin</artifactId>
77+
<version>1.6.0</version>
78+
<configuration>
79+
<mainClass>MainKt</mainClass>
80+
</configuration>
81+
</plugin>
82+
<plugin>
83+
<artifactId>maven-assembly-plugin</artifactId>
84+
<version>3.6.0</version>
85+
<configuration>
86+
<descriptorRefs>
87+
<descriptorRef>jar-with-dependencies</descriptorRef>
88+
</descriptorRefs>
89+
</configuration>
90+
<executions>
91+
<execution>
92+
<id>make-assembly</id>
93+
<phase>package</phase>
94+
<goals>
95+
<goal>single</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
</plugins>
101+
</build>
102+
103+
<dependencies>
104+
<dependency>
105+
<groupId>org.jetbrains.kotlin</groupId>
106+
<artifactId>kotlin-test-junit5</artifactId>
107+
<version>1.9.21</version>
108+
<scope>test</scope>
109+
</dependency>
110+
111+
<dependency>
112+
<groupId>org.junit.jupiter</groupId>
113+
<artifactId>junit-jupiter</artifactId>
114+
<scope>test</scope>
115+
</dependency>
116+
117+
<dependency>
118+
<groupId>org.jetbrains.kotlin</groupId>
119+
<artifactId>kotlin-stdlib</artifactId>
120+
<version>1.9.21</version>
121+
</dependency>
122+
123+
<!-- RetroFit Dependencies -->
124+
<dependency>
125+
<groupId>com.squareup.okhttp3</groupId>
126+
<artifactId>logging-interceptor</artifactId>
127+
<version>4.12.0</version>
128+
</dependency>
129+
130+
<dependency>
131+
<groupId>com.github.haroldadmin</groupId>
132+
<artifactId>NetworkResponseAdapter</artifactId>
133+
<version>5.0.0</version>
134+
</dependency>
135+
136+
<dependency>
137+
<groupId>com.squareup.retrofit2</groupId>
138+
<artifactId>retrofit</artifactId>
139+
<version>2.9.0</version>
140+
</dependency>
141+
142+
<dependency>
143+
<groupId>com.squareup.retrofit2</groupId>
144+
<artifactId>converter-gson</artifactId>
145+
<version>2.9.0</version>
146+
</dependency>
147+
148+
<dependency>
149+
<groupId>co.infinum</groupId>
150+
<artifactId>retromock</artifactId>
151+
<version>1.1.1</version>
152+
</dependency>
153+
</dependencies>
154+
155+
</project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.retroachivements.api
2+
3+
import org.retroachivements.api.core.CoreClient
4+
import org.retroachivements.api.data.RetroCredentials
5+
6+
class RetroClient(credentials: RetroCredentials, debugging: Boolean = false)
7+
: CoreClient(credentials, "https://retroachievements.org/", debugging) {
8+
9+
// the API interface for the client
10+
val api: RetroInterface = retroClient.create(RetroInterface::class.java)
11+
}

0 commit comments

Comments
 (0)