Skip to content

Commit

Permalink
Do not run flipper on old Android versions
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Feb 23, 2024
1 parent 6d120c1 commit ba65000
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ class PretixScan : MultiDexApplication() {
override fun onCreate() {
super.onCreate()

SoLoader.init(this, false)
if (Build.VERSION.SDK_INT > 26) {
SoLoader.init(this, false)

val client: FlipperClient = AndroidFlipperClient.getInstance(this)
flipperInit = FlipperInitializer.initFlipperPlugins(this, client)
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)
val client: FlipperClient = AndroidFlipperClient.getInstance(this)
flipperInit = FlipperInitializer.initFlipperPlugins(this, client)
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)
}

connectivityHelper = ConnectivityHelper(AppConfig(this))

Expand Down

0 comments on commit ba65000

Please sign in to comment.