Skip to content

Commit

Permalink
更新版本0.5.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
PYFer committed May 9, 2024
1 parent eba4b84 commit 230c157
Show file tree
Hide file tree
Showing 659 changed files with 72,231 additions and 49,590 deletions.
6 changes: 2 additions & 4 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* https://github.com/facebook/react-native
*
* @format
* @flow
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/

import React, {Component} from 'react';
Expand All @@ -14,7 +12,7 @@ type Props = {};
export default class App extends Component<Props> {
render() {
return (
<PolyvNavigation ></PolyvNavigation>
<PolyvNavigation ></PolyvNavigation>
);
}
}
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@

### <!--Fixed-->

## [0.5.0] - 2024-05-09

- Android:

升级SDK到2.21.2

- iOS:

升级SDK到2.21.1

- RN:

RN 版本升级至0.71.8

## [0.4.5] - 2021-04-23

- android:
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '>= 2.6.10'

gem 'cocoapods', '>= 1.11.3'
104 changes: 104 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.7)
base64
nkf
rexml
activesupport (6.1.7.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
claide (1.1.0)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.6.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.3.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.8.0)
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
netrc (~> 0.11)
public_suffix (~> 4.0)
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (2.1)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.2.3)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.16.3)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
json (2.7.2)
minitest (5.22.3)
molinillo (0.8.0)
nanaimo (0.3.0)
nap (1.1.0)
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.2.6)
ruby-macho (2.5.1)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xcodeproj (1.24.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
zeitwerk (2.6.13)

PLATFORMS
ruby

DEPENDENCIES
cocoapods (>= 1.11.3)

RUBY VERSION
ruby 2.6.10p210

BUNDLED WITH
1.17.2
90 changes: 43 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PolyvRNVodDemo 支持 Android + iOS, 是专为 ReactNative 技术开发者定

### 1.1 支持设备

Android 4.1.0 (API 16) 以上 或 iOS 9.0 以上
Android 4.1.0 (API 16) 以上 或 iOS 11.0 以上

### 1.2 接入条件

Expand All @@ -19,8 +19,8 @@ Android 4.1.0 (API 16) 以上 或 iOS 9.0 以上

RN 版本是基于原生 demo + sdk 开发的,iOS 与 android 对应版本,及 SDK 版本更新日志链接如下:

- iOS SDK 对应版本为 v2.13.1,[版本更新日志](https://github.com/polyv/polyv-ios-vod-sdk/releases)
- android SDK 对应版本为 v2.13.1[版本更新日志](https://github.com/easefun/polyv-android-sdk-2.0-demo/releases)
- iOS SDK 对应版本为 v2.21.1,[版本更新日志](https://github.com/polyv/polyv-ios-vod-sdk/releases)
- Android SDK 对应版本为 v2.21.2[版本更新日志](https://github.com/easefun/polyv-android-sdk-2.0-demo/releases)

## 2. 快速开始

Expand Down Expand Up @@ -99,28 +99,37 @@ npm install
2. 在 package.json 文件中配置依赖。

```json
"dependencies": {
"react": "16.6.3",
"react-native": "^0.58.6",

//polyv/demo里需要的依赖(如不需要可删除)
"dependencies": {
"@react-navigation/material-top-tabs": "^6.6.13",
"@react-navigation/native": "^6.1.17",
"@react-navigation/stack": "^6.3.29",
"axios": "^0.18.0",
"bower": "^1.8.8",
"jest-haste-map": "^24.5.0",
"loadash": "^1.0.0",
"native-base": "^2.12.1",
"react-art": "^16.8.4",
"react-dom": "^16.8.4",
"react-native-gesture-handler": "^1.1.0",
"react-native-web": "^0.10.1",
"react-navigation": "^3.3.2"
"native-base": "^3.4.12",
"react": "18.2.0",
"react-native": "0.71.8",
"react-native-gesture-handler": "^2.16.0",
"react-native-pager-view": "^6.3.0",
"react-native-safe-area-context": "^4.9.0",
"react-native-screens": "^3.30.1",
"react-native-svg": "^14.1.0",
"react-native-tab-view": "^3.5.2"
},
"devDependencies": {
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "24.3.1",
"jest": "24.3.1",
"metro-react-native-babel-preset": "0.53.0",
"react-test-renderer": "16.6.3"
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native-community/eslint-config": "^3.2.0",
"@tsconfig/react-native": "^2.0.2",
"@types/jest": "^29.2.1",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.9",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4"
},
```

Expand All @@ -131,7 +140,7 @@ npm install

0.4.0起建议使用初始化方法`setToken`,该方法是一个异步有返回结果的函数。推荐使用 https 接口,从服务端获取加密串,APP 本地解密(开发者设计自己的加解密方式)得到 `useId``readtoken``writetoken``secretkey` ,再使用该方法配置用户信息。

低于0.4.0的可以继续使用`init`方法初始化,他也是异步有返回结果的函数。
低于0.4.0的可以使用`init`方法初始化,他也是异步有返回结果的函数。

```javascript
/*
Expand Down Expand Up @@ -431,36 +440,23 @@ iOS 端工程的原生插件代码全部包含在 ios/PolyvVodRnModule文件夹

2)如果目标项目原来有Podfile 文件,只需要把 Polyv vod rn sdk 所需要的配置拷贝到 ios/Podfile文件 中;

3)如果存在 RNGestureHandler 的配置行,需要删除或者注释掉;

4)在命令行环境进入ios 目录,执行 pod install 命令;
3)在命令行环境进入ios 目录,添加点播SDK,执行 pod install 命令;

```java
project 'PolyvVodRnDemo.xcodeproj'

platform :ios, '8.0'
inhibit_all_warnings!

target 'PolyvVodRnDemo' do

# Polyv vod rn sdk
# Polyv vod rn sdk
pod 'XRCarouselView', '~> 2.6.1'
pod 'YYWebImage', '~> 1.0.5'
pod 'FDStackView', '~> 1.0.1'
pod 'PLVMasonry', '~> 1.1.2'
pod 'PolyvVodSDK', '2.13.1'
pod 'LBLelinkKit', '~> 30226'
pod 'PLVVodDanmu', '~> 0.0.1'
pod 'PLVSubtitle', '~> 0.1.0'

# 执行 npm install命令之后,有可能会自动生成下面这一行配置。需要把这一行配置删掉或者注释掉;
# pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
# Polyv vod rn sdk 2.13.1
# pod 'PolyvVodSDK', '2.13.1'

# Polyv vod rn sdk 2.21.1
pod 'PLVAliHttpDNS', '~> 1.10.0'
pod 'SSZipArchive', '~> 2.1.5'
pod 'PolyvVodSDK', '2.21.1', :subspecs => ['Core','Player']

end
pod 'PLVVodDanmu', '~> 0.0.1'
pod 'PLVSubtitle', '~> 0.1.0'
```

4. 集成react-native-gesture-handler插件(如果RN端没有集成react-native-gesture-handler,可跳过本步骤)

1)把Demo项目的 ios/PolyvVodRnDemo/react-native-gesture-handler文件夹 拷贝到 目标项目的 ios 目录下;

2)在XCode中,把上述文件夹增加(Add Files)到项目中;
1 change: 0 additions & 1 deletion __tests__/App.js → __tests__/App-test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* @format
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/

import 'react-native';
Expand Down
59 changes: 0 additions & 59 deletions android/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions android/.project

This file was deleted.

2 changes: 0 additions & 2 deletions android/.settings/org.eclipse.buildship.core.prefs

This file was deleted.

6 changes: 0 additions & 6 deletions android/app/.classpath

This file was deleted.

Loading

0 comments on commit 230c157

Please sign in to comment.