File tree 5 files changed +14
-8
lines changed
java/com/reactnativeshadowview 5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ def getExtOrIntegerDefault(name) {
26
26
}
27
27
28
28
android {
29
+ def agpVersion = com.android.Version . ANDROID_GRADLE_PLUGIN_VERSION
30
+ if (agpVersion. tokenize(' .' )[0 ]. toInteger() >= 7 ) {
31
+ namespace " com.reactnativeshadowview"
32
+ }
33
+
29
34
compileSdkVersion getExtOrIntegerDefault(' compileSdkVersion' )
30
35
buildToolsVersion getExtOrDefault(' buildToolsVersion' )
31
36
defaultConfig {
@@ -122,10 +127,11 @@ repositories {
122
127
}
123
128
124
129
def kotlin_version = getExtOrDefault(' kotlinVersion' )
130
+ def ktx_version = getExtOrDefault(' ktxVersion' )
125
131
126
132
dependencies {
127
133
// noinspection GradleDynamicVersion
128
134
api ' com.facebook.react:react-native:+'
129
135
implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
130
- implementation " androidx.core:core-ktx:$k otlin_version "
136
+ implementation " androidx.core:core-ktx:$k tx_version "
131
137
}
Original file line number Diff line number Diff line change 1
1
ShadowView_kotlinVersion =1.5.0
2
+ ShadowView_ktxVersion =1.7.0
2
3
ShadowView_compileSdkVersion =29
3
4
ShadowView_buildToolsVersion =29.0.2
4
5
ShadowView_targetSdkVersion =29
Original file line number Diff line number Diff line change 1
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.reactnativeshadowview" >
3
-
1
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
4
2
</manifest >
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ open class ShadowLayout @JvmOverloads constructor(
260
260
shadow_y_shift / shadow_downscale / cssRatio
261
261
)
262
262
263
- override fun draw (canvas : Canvas ? ) {
263
+ override fun draw (canvas : Canvas ) {
264
264
canvas ? : return
265
265
if (isInEditMode) {
266
266
super .draw(canvas)
@@ -272,7 +272,7 @@ open class ShadowLayout @JvmOverloads constructor(
272
272
if (shadow_cast_only_background) {
273
273
background.bounds = viewBounds
274
274
background?.draw(blurCanvas!! )
275
- } else super .draw(blurCanvas)
275
+ } else super .draw(blurCanvas!! )
276
276
}
277
277
if (realRadius > 0f ) { // Do not blur if no radius
278
278
val (script) = getScript()
@@ -289,3 +289,4 @@ open class ShadowLayout @JvmOverloads constructor(
289
289
}
290
290
291
291
}
292
+
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @dimaportenko/react-native-shadow-view" ,
3
- "version" : " 0.1.4 " ,
3
+ "version" : " 0.1.6 " ,
4
4
"description" : " React Native library with Android native view which supports same shadows styles as iOS " ,
5
5
"main" : " lib/commonjs/index" ,
6
6
"module" : " lib/module/index" ,
37
37
" android"
38
38
],
39
39
"repository" : " https://github.com/dimaportenko/react-native-shadow-view" ,
40
- "author" :
" Dima Portenko <[email protected] > (https://github.com/dimaportenko)" ,
40
+ "author" : " Dima Portenko (https://github.com/dimaportenko)" ,
41
41
"license" : " MIT" ,
42
42
"bugs" : {
43
43
"url" : " https://github.com/dimaportenko/react-native-shadow-view/issues"
You can’t perform that action at this time.
0 commit comments