File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,11 +7,14 @@ After then returns boolean about license status.
77
88## Usage
99``` java
10- public static void main(String . .. args) throws BuilderException {
10+ public static void main(String . .. args) {
1111 License license = new License .LicenseBuilder ()
1212 .setProductName(" Test" )
1313 .setLink(" https://poyrazinan.com.tr/api/plugin/check.php?plugin={product}&ip={ip}" )
1414 .build();
15+ // You can check is something goes wrong with license query.
16+ // All you want to do is surrounding license.run() with try and catch
17+ // which can cause ConnectionFailureException.
1518 boolean status = license. run();
1619 if (! status) {
1720 // If license couldn't found.
@@ -41,7 +44,7 @@ public static void main(String... args) throws BuilderException {
4144 <dependency >
4245 <groupId >com.github.poyrazinan</groupId >
4346 <artifactId >JavaLicense</artifactId >
44- <version >1.0. 1</version >
47+ <version >1.1</version >
4548 <scope >compile</scope >
4649 </dependency >
4750</dependencies >
@@ -53,10 +56,13 @@ repositories {
5356}
5457
5558dependencies {
56- implementation 'com.github.poyrazinan:JavaLicense:1.0. 1'
59+ implementation 'com.github.poyrazinan:JavaLicense:1.1'
5760}
5861```
5962
63+ ### Local Dependency
64+ > You can find jar on releases.
65+
6066## Requirements:
6167
6268* Web API for storing licenses and check.
You can’t perform that action at this time.
0 commit comments