Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase podspec #89

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
/android/build
# VSCode
.vscode/
typings/
typings.json

# Node
node_modules/

# Xcode
*.xcuserstate
ios/Podfile.lock
ios/Pods/
ios/RCTQQAPI.xcworkspace/xcuserdata/
ios/RCTQQAPI.xcodeproj/xcuserdata/

# Android
.idea
.gradle
local.properties
*.iml
android/app/build
android/update/library/build
android/gradle/
android/gradlew
android/gradlew.bat

# Watchman
.watchmanconfig

*.log
.nvm
package-lock.json

# OS X
.DS_Store
11 changes: 11 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare module "react-native-qq" {
export interface LoginInfo {
access_token: string
expires_in: number
oauth_consumer_key: string,
errCode: number,
openid: string
}
export function login (key: string): Promise<LoginInfo>
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

This file was deleted.

This file was deleted.

5 changes: 5 additions & 0 deletions ios/RCTQQAPI/RCTQQAPI.m
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,9 @@ - (void)tencentDidNotNetWork
{
}

+ (BOOL)requiresMainQueueSetup
{
return YES;
}

@end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-qq",
"version": "3.0.0",
"version": "2.0.5",
"description": "QQ Login&Share support in React Native.",
"main": "index.js",
"scripts": {
Expand Down
28 changes: 28 additions & 0 deletions react-native-qq.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Be sure to run `pod spec lint react-native-qq.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/
#

require "json"

package = JSON.parse(File.read('package.json'))

Pod::Spec.new do |s|

s.name = "react-native-qq"
s.version = package["version"]
s.summary = package["description"]
s.author = 'tdzl2003'
s.homepage = package["homepage"]
s.license = package["license"]
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/EternalChildren/react-native-qq.git"}
s.source_files = "ios/**/*.{h,m}"
s.vendored_frameworks = 'ios/RCTQQAPI/TencentOpenAPI.framework'
s.libraries = 'iconv', 'sqlite3', 'c++', 'z'
s.dependency "React"

end