Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
Fix build old arch on Android
  • Loading branch information
retyui committed Aug 1, 2023
1 parent b80ba16 commit 6ccb0ce
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.retyui.widgetpicker

import android.os.Build
import androidx.annotation.RequiresApi
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
Expand All @@ -17,11 +20,11 @@ class WidgetPickerModule(
override fun getName() = NAME

@ReactMethod(isBlockingSynchronousMethod = true)
override fun isRequestPinAppWidgetSupported() = moduleImpl.isRequestPinAppWidgetSupported()
fun isRequestPinAppWidgetSupported() = moduleImpl.isRequestPinAppWidgetSupported()

@ReactMethod
@RequiresApi(Build.VERSION_CODES.O)
override fun requestPinAppWidget(widgetClassKey: String, promise: Promise) = moduleImpl.requestPinAppWidget(widgetClassKey, promise)
fun requestPinAppWidget(widgetClassKey: String, promise: Promise) = moduleImpl.requestPinAppWidget(widgetClassKey, promise)

companion object {
const val NAME = WidgetPickerModuleImpl.NAME
Expand Down

0 comments on commit 6ccb0ce

Please sign in to comment.