@domir/react-native-measure-text 0.1.7 → 0.1.8

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.
@@ -54,14 +54,18 @@ afterEvaluate {
54
54
  android {
55
55
  compileSdkVersion safeExtGet("compileSdkVersion", 31)
56
56
 
57
- compileOptions {
58
- sourceCompatibility JavaVersion.VERSION_11
59
- targetCompatibility JavaVersion.VERSION_11
60
- }
57
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
58
+ if (agpVersion.tokenize('.')[0].toInteger() < 8) {
59
+ compileOptions {
60
+ sourceCompatibility JavaVersion.VERSION_11
61
+ targetCompatibility JavaVersion.VERSION_11
62
+ }
61
63
 
62
- kotlinOptions {
63
- jvmTarget = JavaVersion.VERSION_11.majorVersion
64
+ kotlinOptions {
65
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
66
+ }
64
67
  }
68
+
65
69
  namespace "expo.modules.measuretext"
66
70
  defaultConfig {
67
71
  minSdkVersion safeExtGet("minSdkVersion", 21)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domir/react-native-measure-text",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Measure text width synchronously using JSI",
5
5
  "main": "build/ReactNativeMeasureText.js",
6
6
  "types": "build/ReactNativeMeasureText.d.ts",