expo-blur 13.0.1 → 13.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '13.0.
|
|
4
|
+
version = '13.0.2'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -14,7 +14,7 @@ android {
|
|
|
14
14
|
namespace "expo.modules.blur"
|
|
15
15
|
defaultConfig {
|
|
16
16
|
versionCode 1
|
|
17
|
-
versionName "13.0.
|
|
17
|
+
versionName "13.0.2"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -7,7 +7,6 @@ import android.os.Build
|
|
|
7
7
|
import android.view.ViewGroup
|
|
8
8
|
import eightbitlab.com.blurview.BlurView
|
|
9
9
|
import eightbitlab.com.blurview.RenderEffectBlur
|
|
10
|
-
import eightbitlab.com.blurview.RenderScriptBlur
|
|
11
10
|
import expo.modules.blur.enums.BlurMethod
|
|
12
11
|
import expo.modules.blur.enums.TintStyle
|
|
13
12
|
import expo.modules.kotlin.AppContext
|
|
@@ -25,12 +24,13 @@ class ExpoBlurView(context: Context, appContext: AppContext) : ExpoView(context,
|
|
|
25
24
|
it.layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
|
|
26
25
|
|
|
27
26
|
val decorView = (appContext.currentActivity ?: throw Exceptions.MissingActivity()).window?.decorView
|
|
28
|
-
val rootView = decorView?.findViewById(android.R.id.content)
|
|
27
|
+
val rootView = decorView?.findViewById<ViewGroup>(android.R.id.content) ?: throw Exceptions.MissingRootView()
|
|
29
28
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
|
30
29
|
it.setupWith(rootView, RenderEffectBlur())
|
|
31
30
|
.setFrameClearDrawable(decorView.background)
|
|
32
31
|
} else {
|
|
33
|
-
|
|
32
|
+
@Suppress("DEPRECATION")
|
|
33
|
+
it.setupWith(rootView, eightbitlab.com.blurview.RenderScriptBlur(context))
|
|
34
34
|
.setFrameClearDrawable(decorView.background)
|
|
35
35
|
}
|
|
36
36
|
addView(it)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-blur",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.2",
|
|
4
4
|
"description": "A component that renders a native blur view on iOS and falls back to a semi-transparent view on Android. A common usage of this is for navigation bars, tab bars, and modals.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"expo": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "87bd0dfa8b784a834191195ca174a00dd30ee5b7"
|
|
47
47
|
}
|