Skip to content

Commit

Permalink
Fix ios project config
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Feb 14, 2023
1 parent d642010 commit 2b73cea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 20 additions & 0 deletions react-native-amap3d.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require "json"

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

Pod::Spec.new do |s|
s.name = "react-native-amap3d"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]

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.dependency "React-Core"
s.dependency 'AMap3DMap', "~> 9.6.0"
end
2 changes: 0 additions & 2 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
module.exports = {
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 2b73cea

Please sign in to comment.