@domir/react-native-measure-text 0.1.4 → 0.1.6

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.
@@ -35,19 +35,12 @@ buildscript {
35
35
  }
36
36
  }
37
37
 
38
- // Creating sources with comments
39
- task androidSourcesJar(type: Jar) {
40
- classifier = 'sources'
41
- from android.sourceSets.main.java.srcDirs
42
- }
43
-
44
38
  afterEvaluate {
45
39
  publishing {
46
40
  publications {
47
41
  release(MavenPublication) {
48
42
  from components.release
49
43
  // Add additional sourcesJar to artifacts
50
- artifact(androidSourcesJar)
51
44
  }
52
45
  }
53
46
  repositories {
@@ -69,7 +62,7 @@ android {
69
62
  kotlinOptions {
70
63
  jvmTarget = JavaVersion.VERSION_11.majorVersion
71
64
  }
72
-
65
+ namespace "expo.modules.measuretext"
73
66
  defaultConfig {
74
67
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
68
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
@@ -79,6 +72,11 @@ android {
79
72
  lintOptions {
80
73
  abortOnError false
81
74
  }
75
+ publishing {
76
+ singleVariant("release") {
77
+ withSourcesJar()
78
+ }
79
+ }
82
80
  }
83
81
 
84
82
  repositories {
@@ -87,5 +85,6 @@ repositories {
87
85
 
88
86
  dependencies {
89
87
  implementation project(':expo-modules-core')
88
+ implementation "com.facebook.react:react-native:+"
90
89
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
91
90
  }
@@ -1,2 +1,2 @@
1
- <manifest package="expo.modules.measuretext">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
2
  </manifest>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domir/react-native-measure-text",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Measure text width synchronously using JSI",
5
5
  "main": "build/ReactNativeMeasureText.js",
6
6
  "types": "build/ReactNativeMeasureText.d.ts",