meta: add podspec file and gradle config (#126)

This commit is contained in:
buhe
2016-11-16 13:32:16 +08:00
committed by Yorkie Liu
parent b982feb3da
commit eff049ddb4
2 changed files with 47 additions and 3 deletions

View File

@@ -14,8 +14,14 @@ android {
}
}
dependencies {
compile 'com.facebook.react:react-native:0.15.+'
compile files('libs/libammsdk.jar')
allprojects {
repositories {
jcenter()
maven { url "$projectDir/../../react-native/android" }
}
}
dependencies {
compile 'com.facebook.react:react-native:+'
compile files('libs/libammsdk.jar')
}

38
ios/RCTWeChat.podspec Normal file
View File

@@ -0,0 +1,38 @@
#
# Be sure to run `pod spec lint RCTPili.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
Pod::Spec.new do |s|
s.name = "RCTWeChat"
s.version = "0.1.0"
s.summary = "React-Native(iOS/Android) functionalities include WeChat Login, Share, Favorite and Payment {QQ: 336021910}"
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
React-Native(iOS/Android) functionalities include WeChat Login, Share, Favorite and Payment {QQ: 336021910}
DESC
s.homepage = "https://github.com/weflex/react-native-wechat"
s.license = "MIT"
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
s.author = { "weflex" => "336021910@qq.com" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/weflex/react-native-wechat.git", :tag => "master" }
s.source_files = "**/*.{h,m}"
s.requires_arc = true
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
s.dependency "React"
s.vendored_libraries = "libWeChatSDK.a"
s.ios.frameworks = 'SystemConfiguration','CoreTelephony'
s.ios.library = 'sqlite3','c++','z'
end