This repository was archived by the owner on Oct 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/nl/martijndwars/webpush/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77 <modelVersion >4.0.0</modelVersion >
88
9- <groupId >dev.blanke</groupId >
9+ <groupId >dev.blanke.webpush </groupId >
1010 <artifactId >webpush-project</artifactId >
11- <version >5.1.2 -SNAPSHOT</version >
11+ <version >6.0.0 -SNAPSHOT</version >
1212 <packaging >pom</packaging >
1313
1414 <modules >
4040 </pluginManagement >
4141 </build >
4242
43+ <distributionManagement >
44+ <repository >
45+ <id >github</id >
46+ <url >https://maven.pkg.github.com/andreblanke/webpush-java</url >
47+ </repository >
48+ </distributionManagement >
49+
4350</project >
Original file line number Diff line number Diff line change 77 <modelVersion >4.0.0</modelVersion >
88
99 <parent >
10- <groupId >dev.blanke</groupId >
10+ <groupId >dev.blanke.webpush </groupId >
1111 <artifactId >webpush-project</artifactId >
12- <version >5.1.2 -SNAPSHOT</version >
12+ <version >6.0.0 -SNAPSHOT</version >
1313 </parent >
1414
1515 <artifactId >webpush-cli</artifactId >
1616
1717 <dependencies >
1818 <dependency >
19- <groupId >dev.blanke</groupId >
19+ <groupId >dev.blanke.webpush </groupId >
2020 <artifactId >webpush</artifactId >
21- <version >5.1.2 -SNAPSHOT</version >
21+ <version >6.0.0 -SNAPSHOT</version >
2222 </dependency >
2323 <dependency >
2424 <groupId >com.beust</groupId >
Original file line number Diff line number Diff line change 22
33import com .beust .jcommander .Parameter ;
44import com .beust .jcommander .Parameters ;
5+
56import nl .martijndwars .webpush .Subscription ;
67
78@ Parameters (separators = "=" , commandDescription = "Send a push notification" )
Original file line number Diff line number Diff line change 11package nl .martijndwars .webpush .cli .handlers ;
22
3- import nl .martijndwars .webpush .Utils ;
4- import nl .martijndwars .webpush .cli .commands .GenerateKeyCommand ;
3+ import java .io .File ;
4+ import java .io .FileOutputStream ;
5+ import java .io .IOException ;
6+ import java .io .OutputStreamWriter ;
7+ import java .security .*;
8+ import java .util .Base64 ;
9+
510import org .bouncycastle .jce .ECNamedCurveTable ;
611import org .bouncycastle .jce .interfaces .ECPrivateKey ;
712import org .bouncycastle .jce .interfaces .ECPublicKey ;
1015import org .bouncycastle .util .io .pem .PemObject ;
1116import org .bouncycastle .util .io .pem .PemWriter ;
1217
13- import java .io .File ;
14- import java .io .FileOutputStream ;
15- import java .io .IOException ;
16- import java .io .OutputStreamWriter ;
17- import java .security .*;
18- import java .util .Base64 ;
18+ import nl .martijndwars .webpush .Utils ;
19+ import nl .martijndwars .webpush .cli .commands .GenerateKeyCommand ;
1920
20- public class GenerateKeyHandler implements HandlerInterface {
21+ public class GenerateKeyHandler implements Handler {
2122
2223 private final GenerateKeyCommand generateKeyCommand ;
2324
Original file line number Diff line number Diff line change 1+ package nl .martijndwars .webpush .cli .handlers ;
2+
3+ public interface Handler {
4+
5+ void run () throws Exception ;
6+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77import nl .martijndwars .webpush .Subscription ;
88import nl .martijndwars .webpush .cli .commands .SendNotificationCommand ;
99
10- public class SendNotificationHandler implements HandlerInterface {
10+ public class SendNotificationHandler implements Handler {
1111
1212 private final SendNotificationCommand sendNotificationCommand ;
1313
Original file line number Diff line number Diff line change 77 <modelVersion >4.0.0</modelVersion >
88
99 <parent >
10- <groupId >dev.blanke</groupId >
10+ <groupId >dev.blanke.webpush </groupId >
1111 <artifactId >webpush-project</artifactId >
12- <version >5.1.2 -SNAPSHOT</version >
12+ <version >6.0.0 -SNAPSHOT</version >
1313 </parent >
1414
1515 <artifactId >webpush</artifactId >
You canβt perform that action at this time.
0 commit comments