Skip to content

Commit

Permalink
Merge pull request #981 from microsoft/fix/podInstall
Browse files Browse the repository at this point in the history
Fix Autolinking for React Native 0.69
  • Loading branch information
DmitriyKirakosyan authored Jul 6, 2022
2 parents 6e98143 + af5387b commit fceb22c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 21 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Version 4.4.5 (Under development)

### App Center

* **[Fix]** Fix Autolinking for React Native 0.69.

___

## Version 4.4.4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, '../package.json')))
package = JSON.parse(File.read(File.join(__dir__, './package.json')))

Pod::Spec.new do |s|
s.name = package['name']
Expand All @@ -12,7 +12,7 @@ Pod::Spec.new do |s|

s.author = { 'Microsoft' => 'appcentersdk@microsoft.com' }
s.source = { :git => "https://github.com/microsoft/appcenter-sdk-react-native.git" }
s.source_files = "AppCenterReactNativeAnalytics/**/*.{h,m}"
s.source_files = "ios/AppCenterReactNativeAnalytics/**/*.{h,m}"
s.platform = :ios, '9.0'
s.requires_arc = true

Expand Down
6 changes: 1 addition & 5 deletions appcenter-analytics/react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
const path = require('path');

module.exports = {
dependency: {
platforms: {
ios: {
podspecPath: path.join(__dirname, 'ios', 'appcenter-analytics.podspec')
},
ios: {},
android: {
packageInstance: 'new AppCenterReactNativeAnalyticsPackage(getApplication(), getResources().getString(R.string.appCenterAnalytics_whenToEnableAnalytics))'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, '../package.json')))
package = JSON.parse(File.read(File.join(__dir__, './package.json')))

Pod::Spec.new do |s|
s.name = package['name']
Expand All @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.author = { 'Microsoft' => 'appcentersdk@microsoft.com' }

s.source = { :git => "https://github.com/microsoft/appcenter-sdk-react-native.git" }
s.source_files = "AppCenterReactNativeCrashes/**/*.{h,m}"
s.source_files = "ios/AppCenterReactNativeCrashes/**/*.{h,m}"
s.platform = :ios, '9.0'
s.requires_arc = true

Expand Down
6 changes: 1 addition & 5 deletions appcenter-crashes/react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
const path = require('path');

module.exports = {
dependency: {
platforms: {
ios: {
podspecPath: path.join(__dirname, 'ios', 'appcenter-crashes.podspec')
},
ios: {},
android: {
packageInstance: 'new AppCenterReactNativeCrashesPackage(getApplication(), getResources().getString(R.string.appCenterCrashes_whenToSendCrashes))'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, '../package.json')))
package = JSON.parse(File.read(File.join(__dir__, './package.json')))

Pod::Spec.new do |s|
# The name is hardcoded due to a name conflict, resulting in the error 'Errno::ENOENT - No such file or directory @ rb_sysopen - appcenter.podspec.json' error.
Expand All @@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.author = { 'Microsoft' => 'appcentersdk@microsoft.com' }

s.source = { :git => "https://github.com/microsoft/appcenter-sdk-react-native.git" }
s.source_files = "AppCenterReactNative/**/*.{h,m}"
s.source_files = "ios/AppCenterReactNative/**/*.{h,m}"
s.platform = :ios, '9.0'
s.requires_arc = true

Expand Down
6 changes: 1 addition & 5 deletions appcenter/react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
const path = require('path');

module.exports = {
dependency: {
platforms: {
ios: {
podspecPath: path.join(__dirname, 'ios', 'appcenter-core.podspec')
},
ios: {},
android: {
packageInstance: 'new AppCenterReactNativePackage(getApplication())'
}
Expand Down

0 comments on commit fceb22c

Please sign in to comment.