Giter VIP home page Giter VIP logo

android-sdk's Introduction

Statsig Android SDK

Release

The Statsig Android SDK for single user client environments. If you need a SDK for another language or server environment, check out our other SDKs.

Statsig helps you move faster with feature gates (feature flags), and/or dynamic configs. It also allows you to run A/B/n tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, check out our product and create an account at statsig.com.

Getting Started

Check out our SDK docs to get started.

android-sdk's People

Contributors

caraesten avatar daniel-statsig avatar jkw-statsig avatar kenny-statsig avatar pablobaxter avatar sroyal-statsig avatar statsig-kong[bot] avatar tore-statsig avatar weihao-statsig avatar xinlili-statsig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

android-sdk's Issues

Failed log requests before Statsig is initialized cause a crash

Stack trace:

Fatal Exception: androidx.datastore.preferences.protobuf.n1: lateinit property sharedPrefs has not been initialized
       at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(BuildersKt__Builders_commonKt.java:169)
       at kotlinx.coroutines.BuildersKt.withContext(BuildersKt.java:1)
       at com.statsig.androidsdk.StatsigNetworkImpl.addFailedLogRequest(StatsigNetwork.kt:149)
       at com.statsig.androidsdk.StatsigNetworkImpl.access$getDispatcherProvider$p(StatsigNetwork.kt:69)
       at com.statsig.androidsdk.StatsigNetworkImpl$postRequest$2.invokeSuspend(StatsigNetworkImpl.java:220)
       at com.statsig.androidsdk.StatsigNetworkImpl$apiPostLogs$$inlined$postRequest$1.invokeSuspend(StatsigNetwork.kt:220)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
       at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:2)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:570)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

Could have been introduced here when moving setup off the main dispatcher and onto io?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.