Selectively Enabling the SDK

In some cases you may wish to disable Specto—for example during CI, or for certain build types.


On Android, this can be done during the initialization call:

class MyApplication : Application() {

    override fun onCreate() {

        Specto.init(this) {

        // …
class MyApplication extends Application {
    public void onCreate() {

        Specto.init(this, new SpectoConfiguration.Builder()
        // …

If disabled, all other calls to Specto functions will do nothing. Specto cannot be re-enabled until the application is recreated.


On iOS, we recommend that you simply do not call Specto.setUp(APIKey:) at app startup if you don't want to enable the SDK. Any calls to Specto APIs will be a no-op.