✅ License validated. Features enabled: ui, network, analytics, persistence If not, you’ll get a clear error (e.g., LicenseException: License key is invalid or expired. ). import com.apeaksoft.toolkit.network.ApiClient import com.apeaksoft.toolkit.ui.CustomButton
classpath = configurations["runtimeClasspath"] mainClass.set("com.apeaksoft.toolkit.license.LicenseVerifierMain") // tiny wrapper class apeaksoft android toolkit registration code
/** * Handles verification of the license key against the remote server. * * The server expects a POST payload: * * "key": "<LICENSE_KEY>", * "machineId": "<MACHINE_ID>" // optional, may be empty string * * * Response (JSON): * false, * "expires": "2027-12-31", * "features": ["ui", "network", "analytics"] * */ object LicenseVerifier ✅ License validated
Create a file apeaksoft_license.properties at the project root (same folder as settings.gradle ). Example content: import com
val response = httpClient.newCall(request).execute() if (!response.isSuccessful) throw LicenseException("Server error ($response.code)")
# APEAKSOFT Toolkit License license.key=AB12CD34EF56GH78IJ90KL12MN34OP56 # Optional – bind to this machine ID (generated by the tool) machine.id=5f4dcc3b5aa765d61d8327deb882cf99 Add it to .gitignore :