@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.
@@ -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 package="expo.modules.measuretext">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
2
  </manifest>
@@ -1,5 +1,5 @@
1
1
  {
2
- "platforms": ["ios", "android", "web"],
2
+ "platforms": ["ios", "android"],
3
3
  "ios": {
4
4
  "modules": ["ReactNativeMeasureTextModule"]
5
5
  },
@@ -23,10 +23,5 @@ Pod::Spec.new do |s|
23
23
  'SWIFT_COMPILATION_MODE' => 'wholemodule'
24
24
  }
25
25
 
26
- if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0')
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",
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 tsc",
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
- "expo-module-scripts": "^2.1.1",
39
- "expo-modules-core": "^0.11.4"
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": "*",