Package 

Class RetrofitClient

    • Constructor Summary

      Constructors 
      Constructor Description
      RetrofitClient(String baseUrl, String apiKey) CRITICAL WORKAROUND FOR REFLECTION-BASED INSTANTIATIONThe core SDK module uses reflection to dynamically load this RetrofitClient class:
      val cls = Class.forName("com.appstack.attribution.network.RetrofitClient")
      val ctor = cls.constructors.firstOrNull { it.parameterTypes.size == 2 }
      ctor.newInstance(config.endpointBaseUrl, config.apiKey)
      GOTCHA: When using reflection to find constructors by parameter count, we need an explicit constructor that matches exactly what we're looking for.
      RetrofitClient(String baseUrl, String apiKey, OkHttpClient okHttpClient)
    • Method Summary

      Modifier and Type Method Description
      Unit postEvents(EventsBatchPayload payload)
      RemoteConfig fetchRemoteConfig() Retrieve the latest remote configuration for this API key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RetrofitClient

        RetrofitClient(String baseUrl, String apiKey)
        CRITICAL WORKAROUND FOR REFLECTION-BASED INSTANTIATIONThe core SDK module uses reflection to dynamically load this RetrofitClient class:
        val cls = Class.forName("com.appstack.attribution.network.RetrofitClient")
        val ctor = cls.constructors.firstOrNull { it.parameterTypes.size == 2 }
        ctor.newInstance(config.endpointBaseUrl, config.apiKey)
        GOTCHA: When using reflection to find constructors by parameter count, we need an explicit constructor that matches exactly what we're looking for.
      • RetrofitClient

        RetrofitClient(String baseUrl, String apiKey, OkHttpClient okHttpClient)