react-native-update 10.28.5-beta.0 → 10.28.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.28.5-beta.0",
3
+ "version": "10.28.5",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {
@@ -1,65 +1,41 @@
1
1
  require 'json'
2
2
  require 'rubygems' # Required for version comparison
3
3
 
4
- # Helper function to check Expo version in a package.json
5
- def check_expo_version(package_json_path)
6
- begin
7
- package_json = JSON.parse(File.read(package_json_path))
8
- # Check both dependencies and devDependencies
9
- expo_version_string = package_json['dependencies']&.[]('expo') || package_json['devDependencies']&.[]('expo')
10
-
11
- if expo_version_string
12
- # Extract the first number sequence as the major version
13
- match = expo_version_string.match(/\d+/)
14
- if match
15
- major_version = match[0].to_i
16
- return major_version >= 50
17
- else
18
- # Pod::UI.warn "Could not parse major version from Expo version string: #{expo_version_string}"
19
- end
20
- end
21
- rescue JSON::ParserError, Errno::ENOENT, StandardError => e
22
- # Log error or handle gracefully if package.json is missing or invalid
23
- # Pod::UI.warn "Could not check Expo version from #{package_json_path}: #{e.message}"
24
- end
25
- return false # Default to false if not found or error
26
- end
27
4
 
28
- # Function to determine if it's a valid Expo project (Podfile check + Version Check)
29
- def is_valid_expo_project(podspec_dir)
5
+ new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
6
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
7
+ podspec_dir = File.dirname(__FILE__)
8
+
9
+ Pod::Spec.new do |s|
10
+
30
11
  is_expo_in_podfile = false
31
- # Check Podfile for use_expo_modules!
12
+ is_version_sufficient = false
32
13
  begin
33
- # Use CocoaPods mechanism to find Podfile relative to installation root
14
+ # Check Podfile for use_expo_modules!
34
15
  podfile_path = File.join(Pod::Config.instance.installation_root, 'Podfile')
35
16
  if File.exist?(podfile_path)
36
17
  podfile_content = File.read(podfile_path)
37
18
  is_expo_in_podfile = podfile_content.include?('use_expo_modules!')
38
- else
39
- # Pod::UI.warn "Podfile not found at expected location: #{podfile_path}"
19
+ end
20
+ # Check root package.json for Expo version >= 50
21
+ root_package_json_path = File.join(podspec_dir, '..', '..', 'package.json')
22
+ if File.exist?(root_package_json_path)
23
+ pkg_json = JSON.parse(File.read(root_package_json_path))
24
+ expo_version_string = pkg_json['dependencies']&.[]('expo') || pkg_json['devDependencies']&.[]('expo')
25
+ if expo_version_string
26
+ match = expo_version_string.match(/\d+/)
27
+ if match
28
+ major_version = match[0].to_i
29
+ is_version_sufficient = major_version >= 50
30
+ end
31
+ end
40
32
  end
41
33
  rescue => e
42
- # Silently skip if CocoaPods config is not available or other error
43
- # Pod::UI.warn "Could not check Podfile for use_expo_modules!: #{e.message}"
34
+ # Silently ignore errors during check
44
35
  end
36
+ # Determine final validity
37
+ valid_expo_project = is_expo_in_podfile && is_version_sufficient
45
38
 
46
- # Check root package.json for Expo version >= 50
47
- # Assumes podspec is in node_modules/react-native-update
48
- root_package_json_path = File.join(podspec_dir, '..', '..', 'package.json')
49
- is_version_sufficient = check_expo_version(root_package_json_path)
50
-
51
- # Both conditions must be true
52
- return is_expo_in_podfile && is_version_sufficient
53
- end
54
-
55
- new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
56
- package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
57
- podspec_dir = File.dirname(__FILE__)
58
-
59
- # Determine if it's a valid Expo project based on Podfile and package.json version
60
- valid_expo_project = is_valid_expo_project(podspec_dir)
61
-
62
- Pod::Spec.new do |s|
63
39
  s.name = package['name']
64
40
  s.version = package['version']
65
41
  s.summary = package['description']
@@ -100,7 +76,7 @@ Pod::Spec.new do |s|
100
76
 
101
77
  s.subspec 'RCTPushy' do |ss|
102
78
  ss.source_files = 'ios/RCTPushy/*.{h,m,mm,swift}'
103
- ss.public_header_files = ['ios/RCTPushy/RCTPushy.h']
79
+ ss.public_header_files = ['ios/RCTPushy/*.h']
104
80
  end
105
81
 
106
82
  s.subspec 'HDiffPatch' do |ss|
package/android/.project DELETED
@@ -1,28 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>react-native-update</name>
4
- <comment>Project react-native-update created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- </buildSpec>
14
- <natures>
15
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
16
- </natures>
17
- <filteredResources>
18
- <filter>
19
- <id>1727963310481</id>
20
- <name></name>
21
- <type>30</type>
22
- <matcher>
23
- <id>org.eclipse.core.resources.regexFilterMatcher</id>
24
- <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25
- </matcher>
26
- </filter>
27
- </filteredResources>
28
- </projectDescription>
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>react-native-update</name>
4
- <comment>Project react-native-update created by Buildship.</comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>org.eclipse.jdt.core.javabuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- <buildCommand>
14
- <name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15
- <arguments>
16
- </arguments>
17
- </buildCommand>
18
- </buildSpec>
19
- <natures>
20
- <nature>org.eclipse.jdt.core.javanature</nature>
21
- <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22
- </natures>
23
- <filteredResources>
24
- <filter>
25
- <id>1727963310481</id>
26
- <name></name>
27
- <type>30</type>
28
- <matcher>
29
- <id>org.eclipse.core.resources.regexFilterMatcher</id>
30
- <arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31
- </matcher>
32
- </filter>
33
- </filteredResources>
34
- </projectDescription>
@@ -1,13 +0,0 @@
1
- arguments=--init-script /var/folders/l6/0fn3x28s5s585ld3p04gsy1h0000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/l6/0fn3x28s5s585ld3p04gsy1h0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
2
- auto.sync=false
3
- build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(8.9))
5
- connection.project.dir=
6
- eclipse.preferences.version=1
7
- gradle.user.home=
8
- java.home=/Users/sunny/.sdkman/candidates/java/17.0.9-zulu/zulu-17.jdk/Contents/Home
9
- jvm.arguments=
10
- offline.mode=false
11
- override.workspace.settings=true
12
- show.console.view=true
13
- show.executions.view=true
@@ -1,13 +0,0 @@
1
- {
2
- "platforms": ["apple", "android"],
3
- "apple": {
4
- "modules": ["ExpoPushyModule"],
5
- "reactDelegateHandlers": ["ExpoPushyReactDelegateHandler"],
6
- "podspecPath":"react-native-update.podspec"
7
- },
8
- "android": {
9
- "modules": [
10
- "expo.modules.pushy.ExpoPushyModule"
11
- ]
12
- }
13
- }