@domir/react-native-measure-text 0.1.3 → 0.1.5
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/android/build.gradle +6 -10
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/expo/.DS_Store +0 -0
- package/expo-module.config.json +1 -1
- package/ios/ReactNativeMeasureText.podspec +1 -6
- package/package.json +9 -5
- package/android/src/main/java/expo/modules/.DS_Store +0 -0
- /package/android/src/main/java/expo/{modules.measuretext → modules/measuretext}/ReactNativeMeasureTextModule.kt +0 -0
package/android/build.gradle
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
apply plugin: 'kotlin-android'
|
|
3
|
-
apply plugin: 'kotlin-android-extensions'
|
|
4
3
|
apply plugin: 'maven-publish'
|
|
5
4
|
|
|
6
5
|
group = 'expo.modules.measuretext'
|
|
@@ -36,19 +35,12 @@ buildscript {
|
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
// Creating sources with comments
|
|
40
|
-
task androidSourcesJar(type: Jar) {
|
|
41
|
-
classifier = 'sources'
|
|
42
|
-
from android.sourceSets.main.java.srcDirs
|
|
43
|
-
}
|
|
44
|
-
|
|
45
38
|
afterEvaluate {
|
|
46
39
|
publishing {
|
|
47
40
|
publications {
|
|
48
41
|
release(MavenPublication) {
|
|
49
42
|
from components.release
|
|
50
43
|
// Add additional sourcesJar to artifacts
|
|
51
|
-
artifact(androidSourcesJar)
|
|
52
44
|
}
|
|
53
45
|
}
|
|
54
46
|
repositories {
|
|
@@ -70,7 +62,7 @@ android {
|
|
|
70
62
|
kotlinOptions {
|
|
71
63
|
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
|
72
64
|
}
|
|
73
|
-
|
|
65
|
+
namespace "expo.modules.measuretext"
|
|
74
66
|
defaultConfig {
|
|
75
67
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
76
68
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
@@ -80,6 +72,11 @@ android {
|
|
|
80
72
|
lintOptions {
|
|
81
73
|
abortOnError false
|
|
82
74
|
}
|
|
75
|
+
publishing {
|
|
76
|
+
singleVariant("release") {
|
|
77
|
+
withSourcesJar()
|
|
78
|
+
}
|
|
79
|
+
}
|
|
83
80
|
}
|
|
84
81
|
|
|
85
82
|
repositories {
|
|
@@ -88,6 +85,5 @@ repositories {
|
|
|
88
85
|
|
|
89
86
|
dependencies {
|
|
90
87
|
implementation project(':expo-modules-core')
|
|
91
|
-
implementation "com.facebook.react:react-native:+"
|
|
92
88
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
|
|
93
89
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<manifest
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
2
|
</manifest>
|
|
Binary file
|
package/expo-module.config.json
CHANGED
|
@@ -23,10 +23,5 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
'SWIFT_COMPILATION_MODE' => 'wholemodule'
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
s.source_files = "**/*.h"
|
|
28
|
-
s.vendored_frameworks = "#{s.name}.xcframework"
|
|
29
|
-
else
|
|
30
|
-
s.source_files = "**/*.{h,m,swift}"
|
|
31
|
-
end
|
|
26
|
+
s.source_files = "**/*.{h,m,swift}"
|
|
32
27
|
end
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domir/react-native-measure-text",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Measure text width synchronously using JSI",
|
|
5
5
|
"main": "build/ReactNativeMeasureText.js",
|
|
6
6
|
"types": "build/ReactNativeMeasureText.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "expo-module
|
|
8
|
+
"build": "expo-module build",
|
|
9
9
|
"clean": "expo-module clean",
|
|
10
10
|
"lint": "expo-module lint",
|
|
11
11
|
"test": "expo-module test",
|
|
12
12
|
"prepublishOnly": "expo-module prepublishOnly",
|
|
13
|
-
"expo-module": "expo-module"
|
|
13
|
+
"expo-module": "expo-module",
|
|
14
|
+
"open:ios": "open -a \"Xcode\" example/ios",
|
|
15
|
+
"open:android": "open -a \"Android Studio\" example/android"
|
|
14
16
|
},
|
|
15
17
|
"keywords": [
|
|
16
18
|
"react-native",
|
|
@@ -35,8 +37,10 @@
|
|
|
35
37
|
"expo-module.config.json"
|
|
36
38
|
],
|
|
37
39
|
"devDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
+
"@types/react": "^18.0.25",
|
|
41
|
+
"@types/react-native": "^0.70.6",
|
|
42
|
+
"expo-module-scripts": "^3.0.4",
|
|
43
|
+
"expo-modules-core": "^1.1.1"
|
|
40
44
|
},
|
|
41
45
|
"peerDependencies": {
|
|
42
46
|
"expo": "*",
|
|
Binary file
|
|
File without changes
|