diff --git a/build.gradle b/build.gradle index 5e6434a..a3b1661 100644 --- a/build.gradle +++ b/build.gradle @@ -27,9 +27,9 @@ java { publishing { publications { maven(MavenPublication) { - groupId = 'io.github.fern-api' - artifactId = 'raven' - version = '0.0.15' + groupId = 'dev.ravenapp' + artifactId = 'raven-java' + version = '0.0.19' from components.java } } diff --git a/sample-app/src/main/java/sample/App.java b/sample-app/src/main/java/sample/App.java index 8aaa525..9a0ed13 100644 --- a/sample-app/src/main/java/sample/App.java +++ b/sample-app/src/main/java/sample/App.java @@ -1,35 +1,9 @@ package sample; -import com.raven.api.RavenApiClient; -import com.raven.api.client.Authorization; -import com.raven.api.client.device.endpoints.Add; -import com.raven.api.client.device.exceptions.AddException; -import com.raven.api.client.device.types.Device; -import com.raven.api.client.ids.types.AppId; -import com.raven.api.client.ids.types.UserId; +import java.lang.String; public final class App { public static void main(String[] args) { - String appId = System.getenv("RAVEN_APP_ID"); - String authKey = System.getenv("RAVEN_TOKEN"); - Authorization auth = Authorization.of(authKey); - - RavenApiClient ravenApiClient = - new RavenApiClient("api.ravenapp.dev", auth); - - try { - Device device = ravenApiClient.device().add(Add.Request.builder() - .appId(AppId.of(appId)) - .userId(UserId.of("myUser")) - .body(Device.builder() - .fcmToken("abc123") - .id("cdf456") - .notificationsDisabled(false) - .build()) - .build()); - System.out.println("Created a device! The device's Raven ID is " + device.getRavenId()); - } catch (AddException e) { - System.out.println("Failed to create a device" + e.getMessage()); - } + // import com.raven.api.RavenApiClient } -} \ No newline at end of file +}