Skip to content

Commit

Permalink
Fix ios project
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Feb 13, 2023
1 parent 52a5fd4 commit 4e944aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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 = "react-native-amap3d"
Expand All @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.platforms = { :ios => "10.0" }
s.source = { :git => "https://github.com/qiuxiang/react-native-amap3d.git", :tag => "#{s.version}" }

s.source_files = "lib/ios/**/*.{h,m,mm,swift}"
s.source_files = "**/*.{h,m,mm,swift}"

s.dependency "React-Core"
s.dependency 'AMap3DMap', "~> 9.5.0"
Expand Down
8 changes: 7 additions & 1 deletion react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
module.exports = {
dependency: { platforms: { android: { sourceDir: "lib/android" } } },
dependency: {
platforms: {
ios: { project: "lib/ios/react-native-amap3d.podspec" },
android: { sourceDir: "lib/android" },
},
},
dependencies: {
"react-native-amap3d": {
root: __dirname,
platforms: {
ios: { podspecPath: __dirname + "/lib/ios/react-native-amap3d.podspec" },
android: {
sourceDir: __dirname + "/lib/android",
packageImportPath: "import qiuxiang.amap3d.AMap3DPackage;",
Expand Down

0 comments on commit 4e944aa

Please sign in to comment.