expo-linear-gradient 12.1.0 → 12.1.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
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 12.1.2 — 2023-03-08
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed crashes when R8 or Proguard is enabled. ([#21580](https://github.com/expo/expo/pull/21580) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
19
|
+
## 12.1.1 — 2023-02-09
|
|
20
|
+
|
|
21
|
+
_This version does not introduce any user-facing changes._
|
|
22
|
+
|
|
13
23
|
## 12.1.0 — 2023-02-03
|
|
14
24
|
|
|
15
25
|
### 💡 Others
|
package/README.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
<p>
|
|
2
|
+
<a href="https://docs.expo.dev/versions/latest/sdk/linear-gradient/">
|
|
3
|
+
<img
|
|
4
|
+
src="../../.github/resources/expo-linear-gradient.svg"
|
|
5
|
+
alt="expo-linear-gradient"
|
|
6
|
+
height="64" />
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
2
9
|
|
|
3
10
|
Provides a React component that renders a gradient view.
|
|
4
11
|
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '12.1.
|
|
6
|
+
version = '12.1.2'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -22,7 +22,7 @@ buildscript {
|
|
|
22
22
|
if (ext.has("kotlinVersion")) {
|
|
23
23
|
ext.kotlinVersion()
|
|
24
24
|
} else {
|
|
25
|
-
ext.safeExtGet("kotlinVersion", "1.
|
|
25
|
+
ext.safeExtGet("kotlinVersion", "1.8.10")
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
76
76
|
versionCode 17
|
|
77
|
-
versionName "12.1.
|
|
77
|
+
versionName "12.1.2"
|
|
78
78
|
}
|
|
79
79
|
lintOptions {
|
|
80
80
|
abortOnError false
|
|
@@ -9,6 +9,7 @@ import android.graphics.RectF;
|
|
|
9
9
|
import android.graphics.Shader;
|
|
10
10
|
import android.util.TypedValue;
|
|
11
11
|
import android.view.View;
|
|
12
|
+
import expo.modules.core.interfaces.DoNotStrip;
|
|
12
13
|
|
|
13
14
|
public class LinearGradientView extends View {
|
|
14
15
|
private final Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
|
|
@@ -22,6 +23,8 @@ public class LinearGradientView extends View {
|
|
|
22
23
|
private int[] mSize = {0, 0};
|
|
23
24
|
private float[] mBorderRadii = {0, 0, 0, 0, 0, 0, 0, 0};
|
|
24
25
|
|
|
26
|
+
// Keeps this primary constructor from Proguard/R8 for ViewDefinitionBuilder
|
|
27
|
+
@DoNotStrip
|
|
25
28
|
public LinearGradientView(Context context) {
|
|
26
29
|
super(context);
|
|
27
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-linear-gradient",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.2",
|
|
4
4
|
"description": "Provides a React component that renders a gradient view.",
|
|
5
5
|
"main": "build/LinearGradient.js",
|
|
6
6
|
"types": "build/LinearGradient.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "da905d1c00e6bbf52c37625134758026d7054f3f"
|
|
46
46
|
}
|