Skip to content

Commit 446fcd9

Browse files
Mudassar TariqMudassar Tariq
authored andcommitted
release: prepare v1.0.0
0 parents  commit 446fcd9

50 files changed

Lines changed: 4892 additions & 0 deletions

Some content is hidden

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

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target/
2+
/.idea/
3+
*.iml
4+

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## 1.0.0
4+
5+
- First Kotlin SDK release for the IPGeolocation.io IP Location API.
6+
- Added typed and raw support for:
7+
- `/v3/ipgeo`
8+
- `/v3/ipgeo-bulk`
9+
- Added config and request validation, response metadata, JSON helpers, and typed exceptions.
10+
- Added local unit tests, live integration tests, and live field-parity tests.

CONTRIBUTING.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Contributing Guide
2+
3+
This repository contains the public Kotlin SDK package for the IPGeolocation.io IP Location API.
4+
5+
## Prerequisites
6+
7+
- Java 8+
8+
- Maven 3.8+
9+
10+
For local development and release verification, use JDK 21 LTS if it is available.
11+
If Maven runs on JDK 25 with Kotlin `2.1.21`, you may see `sun.misc.Unsafe` warnings from the Kotlin compiler jars.
12+
That warning is coming from the current Kotlin toolchain, not from this SDK code.
13+
14+
## Setup
15+
16+
```bash
17+
mvn clean compile
18+
```
19+
20+
If Maven is picking a newer JDK and printing Kotlin compiler `Unsafe` warnings, point Maven at JDK 21 before running the build:
21+
22+
```bash
23+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
24+
export PATH="$JAVA_HOME/bin:$PATH"
25+
mvn clean compile
26+
```
27+
28+
## Run Tests
29+
30+
Run full public test suite:
31+
32+
```bash
33+
mvn clean verify
34+
```
35+
36+
Run all tests without cleaning:
37+
38+
```bash
39+
mvn test
40+
```
41+
42+
Run one test class:
43+
44+
```bash
45+
mvn -Dtest=IpGeolocationClientParsingTest test
46+
```
47+
48+
Run one test method:
49+
50+
```bash
51+
mvn -Dtest=IpGeolocationClientParsingTest#parsesSingleLookupResponseAndMetadata test
52+
```
53+
54+
## Live API Tests (Optional)
55+
56+
Live tests consume API credits and are disabled by default.
57+
58+
```bash
59+
IPGEO_RUN_LIVE_TESTS=true \
60+
IPGEO_FREE_KEY=... \
61+
IPGEO_PAID_KEY=... \
62+
mvn -Dtest=IpGeolocationLiveIntegrationTest test
63+
```
64+
65+
Optional live hardening tests compare raw API JSON to the typed SDK model and consume additional credits.
66+
67+
```bash
68+
IPGEO_RUN_LIVE_HARDENING=true \
69+
IPGEO_PAID_KEY=... \
70+
mvn -Dtest=IpGeolocationLiveFieldParityTest test
71+
```
72+
73+
## Release Dry Run
74+
75+
Build the release artifacts without signing:
76+
77+
```bash
78+
mvn -Prelease -Dgpg.skip=true clean verify
79+
```
80+
81+
## Coding and PR Notes
82+
83+
- Keep changes focused and include tests for behavior changes.
84+
- Do not commit real API keys, tokens, or secrets.
85+
- Use clear commit messages, for example:
86+
- `feat: add raw bulk xml support`
87+
- `fix: preserve nested error.message in bulk results`
88+
- `test: add live parity coverage for user_agent fields`

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 IPGeolocation
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)