Skip to content

Commit

Permalink
解决 #749
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Jul 18, 2022
1 parent d24f2ab commit c187c27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 7c00 <[email protected]>
Copyright (c) 2022 7c00 <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"lib/android/src",
"lib/android/build.gradle",
"lib/ios",
"react-native.config.js"
"react-native.config.js",
"react-native-amap3d.podspec"
],
"homepage": "https://github.com/qiuxiang/react-native-amap3d",
"repository": {
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 = "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 = "**/*.{h,m,mm,swift}"
s.source_files = "lib/ios/**/*.{h,m,mm,swift}"

s.dependency "React-Core"
s.dependency 'AMap3DMap', "~> 9.2.1"
Expand Down
7 changes: 1 addition & 6 deletions react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
module.exports = {
dependency: {
platforms: {
ios: { project: "lib/ios/react-native-amap3d.podspec" },
android: { sourceDir: "lib/android" },
},
},
dependency: { platforms: { android: { sourceDir: "lib/android" } } },
dependencies: {
"react-native-amap3d": {
root: __dirname,
Expand Down

0 comments on commit c187c27

Please sign in to comment.