val response = httpClient.newCall(request).execute() if (!response.isSuccessful) throw LicenseException("Server error ($response.code)")
// Kotlin DSL tasks.register<JavaExec>("validateApeaksoftLicense") group = "verification" description = "Validates the APEAKSOFT Toolkit license." apeaksoft android toolkit registration code
class MainActivity : AppCompatActivity() { val response = httpClient
Now you can run: