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

Release 0.13.0 #303

Merged
merged 214 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
8700cd6
Update README.md with Support information
bitbalint Sep 22, 2023
3aebe79
Update README.md
bitbalint Sep 25, 2023
40b7f0a
Update README.md
bitbalint Sep 25, 2023
c056c55
Update README.md
bitbalint Sep 25, 2023
002ce3e
Update README.md
bitbalint Sep 25, 2023
a22cc76
Update README.md
bitbalint Sep 25, 2023
083b12f
Update README.md
bitbalint Sep 25, 2023
ceb909f
Update README.md
bitbalint Sep 25, 2023
6aa5dec
Update README.md
bitbalint Sep 25, 2023
637b6e0
Update README.md
bitbalint Sep 25, 2023
cba54f5
Merge pull request #266 from bitmovin/main
strangesource Sep 25, 2023
6f189f6
Merge branch 'main' into development
strangesource Sep 25, 2023
3d332e9
updated issue template
SInCE Sep 25, 2023
97e37e1
Update config.yml
SInCE Sep 25, 2023
953ed6e
Merge pull request #267 from bitmovin/feature/issue-template-update
christophaigner Sep 26, 2023
addacf2
chore: initial implementation android
jonathanm-tkf Sep 26, 2023
a2df415
Update README.md
bitbalint Sep 28, 2023
fedc08e
Merge pull request #263 from bitmovin/update-readme-with-support-info
bitbalint Sep 28, 2023
d56929f
chore(ios): update ios player version to 3.45.0
Oct 2, 2023
19bc57e
Merge pull request #271 from bitmovin/update_ios_player_to_3.45.0
rolandkakonyi Oct 2, 2023
d45c1a0
chore(android): update android player version to 3.46.0+jason
Oct 2, 2023
a726523
Merge pull request #272 from bitmovin/update_android_player_to_3.46.0…
matamegger Oct 3, 2023
e036f27
chore: add missing comment for Android permissions
rolandkakonyi Oct 3, 2023
18b9b10
chore: enable building with yarn example ios --simulator on Apple Sil…
rolandkakonyi Oct 3, 2023
c907447
chore: add missing permissions to the example iOS application for cas…
rolandkakonyi Oct 3, 2023
e57e9ac
chore: remove hard coded Apple Development Team ID from the example p…
rolandkakonyi Oct 3, 2023
546ae99
Merge pull request #274 from bitmovin/fix-ios-simulator-run-from-cli-…
rolandkakonyi Oct 3, 2023
de0fdf5
Merge pull request #275 from bitmovin/remove-hard-coded-development-t…
rolandkakonyi Oct 4, 2023
6b6e782
chore: add ktlint plugin
zigavehovec Oct 9, 2023
67fb106
chore: add ktlint CI check
zigavehovec Oct 9, 2023
f0ff04a
chore: update documentation
zigavehovec Oct 9, 2023
8e45d07
chore: apply ktlint formatting
zigavehovec Oct 9, 2023
4cddf08
chore(ios): update ios player version to 3.46.0
Oct 9, 2023
c0e615a
Merge pull request #277 from bitmovin/update_ios_player_to_3.46.0
rolandkakonyi Oct 9, 2023
23089a4
chore: typo
zigavehovec Oct 9, 2023
134cc70
chore: better formatting
zigavehovec Oct 9, 2023
d9c97b2
chore: better formatting
zigavehovec Oct 9, 2023
5d6e5f3
feat(apidocs): add yarn docs command to generate API documentation
rolandkakonyi Oct 9, 2023
bc9fa39
chore: better formatting
zigavehovec Oct 9, 2023
84d4619
Merge pull request #276 from bitmovin/PRN-48/add-lint-to-kotlin-code
zigavehovec Oct 9, 2023
1802917
Merge pull request #279 from bitmovin/PRN-48/apply-ktlint-formatting
zigavehovec Oct 9, 2023
9659883
chore: update ima sdk and player version
zigavehovec Oct 9, 2023
7a8253e
chore: add changelog
zigavehovec Oct 9, 2023
9339f61
feat(apidocs): add automation
rolandkakonyi Oct 9, 2023
f831f4c
Merge branch 'development' into add-docs-generation-workflow
rolandkakonyi Oct 9, 2023
6872cd7
chore: add placeholder GitHub Actions workflow for docs generation
rolandkakonyi Oct 9, 2023
6da3136
Merge branch 'development' into add-docs-generation-workflow
rolandkakonyi Oct 9, 2023
1ea8ab8
feat(apidocs): install dependencies for example app
rolandkakonyi Oct 9, 2023
d406a01
feat(apidocs): generate and publish documentation on finishing release
rolandkakonyi Oct 9, 2023
6c1652b
feat(apidocs): add changelog entry
rolandkakonyi Oct 9, 2023
a018287
Merge branch 'development' into add-api-docs-generation-command
rolandkakonyi Oct 9, 2023
fe6cc86
Merge branch 'add-api-docs-generation-command' into add-docs-generati…
rolandkakonyi Oct 9, 2023
f7ad28c
feat(apidocs): add missing empty line
rolandkakonyi Oct 9, 2023
7adbe1e
Merge branch 'add-api-docs-generation-command' into add-docs-generati…
rolandkakonyi Oct 9, 2023
3af8c9d
feat(apidocs): exclude all symbols from example app
rolandkakonyi Oct 9, 2023
3cde97a
Merge branch 'add-api-docs-generation-command' into add-docs-generati…
rolandkakonyi Oct 9, 2023
8a7eeee
Merge pull request #281 from bitmovin/update-ima-sdk
zigavehovec Oct 10, 2023
b7d7087
feat(apidocs): fix API docs warnings
rolandkakonyi Oct 10, 2023
899d1d5
feat(apidocs): turn on treat warnings as errors
rolandkakonyi Oct 10, 2023
1411673
feat(apidocs): improve SideLoadedSubtitleTrack API
rolandkakonyi Oct 10, 2023
15dba96
feat(apidocs): add missing API docs
rolandkakonyi Oct 10, 2023
1939db8
feat(apidocs): validate docs on CI
rolandkakonyi Oct 10, 2023
fca06a0
feat(apidocs): simplify docs command
rolandkakonyi Oct 10, 2023
cc84241
feat(apidocs): add API reference link to README
rolandkakonyi Oct 10, 2023
f7711bf
feat(apidocs): fix descriptions for SourceLoadEvent and SourceLoadedE…
rolandkakonyi Oct 10, 2023
b185096
feat(apidocs): fix descriptions for onSourceLoad and onSourceLoaded
rolandkakonyi Oct 10, 2023
cc2f6bb
feat(apidocs): improve wording
rolandkakonyi Oct 10, 2023
53e6c3f
feat(apidocs): improve wording
rolandkakonyi Oct 10, 2023
de43273
feat(apidocs): improve wording
rolandkakonyi Oct 10, 2023
736513c
feat(apidocs): improve wording
rolandkakonyi Oct 10, 2023
c73c55d
feat(apidocs): simplify SideLoadedSubtitleTrack definition
rolandkakonyi Oct 10, 2023
9178d96
feat(pipconfig): introduce PictureInPictureConfig
rolandkakonyi Oct 11, 2023
3652f97
feat(pipconfig): extract PictureInPictureConfig to separate file
rolandkakonyi Oct 11, 2023
57ec494
feat(pipconfig): fix code style
rolandkakonyi Oct 11, 2023
87f0505
feat(pipconfig): remove extra whitespaces
rolandkakonyi Oct 11, 2023
f789c6f
feat(pipconfig): fix fallback value handling for PIP config
rolandkakonyi Oct 11, 2023
3de99a0
feat(pipconfig): link exact replacement property for deprecation
rolandkakonyi Oct 11, 2023
628229b
feat(pipconfig): add changelog entry
rolandkakonyi Oct 11, 2023
386630c
Merge pull request #280 from bitmovin/add-api-docs-generation-command
rolandkakonyi Oct 11, 2023
5dc6d5f
Merge branch 'development' into add-docs-generation-workflow
rolandkakonyi Oct 11, 2023
90b13a1
feat(pipconfig): move PictureInPictureConfig
rolandkakonyi Oct 11, 2023
ef06578
feat(pipconfig): fix warning
rolandkakonyi Oct 11, 2023
7872455
feat(pipconfig): clean up Android PiP handler setup
rolandkakonyi Oct 11, 2023
0b2460f
feat(pipconfig): clean up Android PiP enabled flag handling
rolandkakonyi Oct 11, 2023
1da9922
feat(pipconfig): fix ktlint warnings
rolandkakonyi Oct 11, 2023
ebb7495
Merge pull request #282 from bitmovin/add-docs-generation-workflow
rolandkakonyi Oct 11, 2023
80a0b72
Merge pull request #283 from bitmovin/fix-api-docs-problems
rolandkakonyi Oct 11, 2023
8507fa0
feat(apidocs): improve wording
rolandkakonyi Oct 11, 2023
5681080
feat(apidocs): improve documentation of seek and timeshift events
rolandkakonyi Oct 11, 2023
543bdc0
Merge branch 'development' into add-missing-api-docs
rolandkakonyi Oct 11, 2023
72e319e
Merge pull request #284 from bitmovin/add-missing-api-docs
rolandkakonyi Oct 11, 2023
94a4ddc
Merge branch 'development' into pip-isEnabled
rolandkakonyi Oct 11, 2023
a42b11e
Merge pull request #285 from bitmovin/validate-docs-on-ci
rolandkakonyi Oct 12, 2023
ae24ef2
feat(pipconfig): fix Android PiP handler creation
rolandkakonyi Oct 12, 2023
22fc34e
feat(pipconfig): fix API docs
rolandkakonyi Oct 12, 2023
8676960
Merge pull request #286 from bitmovin/pip-isEnabled
rolandkakonyi Oct 12, 2023
7977892
feat: implementation ios and android
jonathanm-tkf Oct 12, 2023
4cbff81
Merge branch 'development' into feature/scalingMode
jonathanm-tkf Oct 12, 2023
0ae5e2b
feat(pipavailability): onPictureInPictureAvailabilityChanged event is…
rolandkakonyi Oct 12, 2023
a4789b0
feat: fix android ktlint
jonathanm-tkf Oct 12, 2023
34ff483
feat(shouldEnterOnBackground): introduce `shouldEnterOnBackground` flag
123mpozzi Oct 12, 2023
5af84dc
feat(shouldEnterOnBackground): add typecheck for `PictureInPictureCon…
123mpozzi Oct 12, 2023
a0ed3b9
feat(shouldEnterOnBackground): update PiP basic example
123mpozzi Oct 12, 2023
9b92185
feat(shouldEnterOnBackground): add iOS version check
123mpozzi Oct 12, 2023
7bd19c2
Update android/src/main/java/com/bitmovin/player/reactnative/RNPlayer…
jonathanm-tkf Oct 12, 2023
aa9ecba
feat: fix android ktlint
jonathanm-tkf Oct 12, 2023
636a5de
feat(shouldEnterOnBackground): fix casing in useTVGestures docs
123mpozzi Oct 13, 2023
0da1e6d
feat(shouldEnterOnBackground): fix tvOS and iOS version build
123mpozzi Oct 13, 2023
153bcdb
feat(pipavailability): fix iOS and tvOS build for Xcode 14
rolandkakonyi Oct 13, 2023
a4db682
feat(shouldEnterOnBackground): remove android changes
123mpozzi Oct 13, 2023
162a840
feat(shouldEnterOnBackground): add CHANGELOG entry
123mpozzi Oct 13, 2023
0610305
feat(shouldEnterOnBackground): adapt PiP sample screen to enable test…
rolandkakonyi Oct 13, 2023
bbca803
feat(shouldEnterOnBackground): add comment to clarify
123mpozzi Oct 13, 2023
c814ef7
feat(pipavailability): improve Swift code style
rolandkakonyi Oct 13, 2023
9ab15bd
feat(pipavailability): fix indentation
rolandkakonyi Oct 13, 2023
b52c949
feat(pipavailability): remove extra line
rolandkakonyi Oct 13, 2023
2ae29fb
Merge pull request #288 from bitmovin/pip-shouldEnterOnBackground
123mpozzi Oct 13, 2023
75cce8c
Merge branch 'development' into pip-availability-changed-event-for-ios
rolandkakonyi Oct 13, 2023
98c04e5
Merge pull request #287 from bitmovin/pip-availability-changed-event-…
rolandkakonyi Oct 13, 2023
ae73e5c
Update src/components/PlayerView/index.tsx
jonathanm-tkf Oct 13, 2023
93ff4af
Update src/components/PlayerView/index.tsx
jonathanm-tkf Oct 13, 2023
efa4217
Update ios/RNPlayerViewManager.swift
jonathanm-tkf Oct 13, 2023
54d1102
feat(pipenterleave): add PiP enter/leave API
rolandkakonyi Oct 13, 2023
c62f759
feat(pipenterleave): update example app to showcase PiP enter/leave
rolandkakonyi Oct 13, 2023
80cd79a
feat(pipenterleave): add changelog entry and API docs
rolandkakonyi Oct 13, 2023
543aa4c
chore(android): update android player version to 3.48.0+jason
Oct 16, 2023
5d6e0f5
Merge pull request #290 from bitmovin/update_android_player_to_3.48.0…
matamegger Oct 16, 2023
c8b522e
feat(swiftlint): add swiftlint dependency
rolandkakonyi Oct 16, 2023
f96d445
feat(swiftlint): add swiftlint rules
rolandkakonyi Oct 16, 2023
90c35ca
feat(swiftlint): add swiftlint linting to example apps build process
rolandkakonyi Oct 16, 2023
37d9f93
feat(swiftlint): extend contribution guide with SwiftLint related sec…
rolandkakonyi Oct 16, 2023
86f3aca
feat(swiftlint): add SwiftLint to pre-commit hook
rolandkakonyi Oct 16, 2023
8f94074
feat(pipenterleave): fix state synchronization in example app
rolandkakonyi Oct 16, 2023
5e20a61
feat(pipenterleave): improve Swift code-style
rolandkakonyi Oct 16, 2023
d2dc63a
feat(pipenterleave): improve CHANGELOG entry
rolandkakonyi Oct 16, 2023
cf28d6d
feat(pipenterleave): improve Kotlin code-style
rolandkakonyi Oct 16, 2023
2bfc0e8
feat(pipenterleave): fix missing events on Android
rolandkakonyi Oct 16, 2023
c0aa501
feat(pipenterleave): extend documentation for onPictureInPictureEnter…
rolandkakonyi Oct 16, 2023
dba50c2
feat(bufferapi): add bufferApi types
123mpozzi Oct 16, 2023
0f840ec
feat(bufferapi): extend PlayerConfig with bufferConfig
123mpozzi Oct 16, 2023
e0aa0c6
feat(docs): add jsdoc links to mentioned objects inside PlayerConfig
123mpozzi Oct 16, 2023
8347db0
feat(bufferapi): add BufferConfig and BufferMediaTypeConfig to kt con…
123mpozzi Oct 16, 2023
94b0872
feat(bufferapi): update BufferConfig.ts with Android only properties
123mpozzi Oct 16, 2023
45ac752
feat(bufferapi): add BufferConfig and BufferMediaTypeConfig to swift …
123mpozzi Oct 16, 2023
f90694c
feat(bufferapi): export bufferConfig
123mpozzi Oct 16, 2023
0d49eab
feat(swiftlint-warnings): fix SwiftLint warnings
rolandkakonyi Oct 16, 2023
dede077
feat(swiftlint): exclude pods
rolandkakonyi Oct 16, 2023
6231aba
Merge branch 'integrate-swiftlint' into fix-swiftlint-warnings
rolandkakonyi Oct 16, 2023
2190ffd
feat(swiftlintci): run SwiftLint on CI to validate changes
rolandkakonyi Oct 16, 2023
794fe7b
feat(swiftlintci): fix action path
rolandkakonyi Oct 16, 2023
cc9b11a
Merge pull request #270 from take0ffmedia/feature/scalingMode
rolandkakonyi Oct 17, 2023
a12f2bb
feat(CHANGELOG): add CHANGELOG entry
123mpozzi Oct 17, 2023
fd6f38c
feat(bufferapi): update docs on `BufferMediaTypeConfig.forwardDuration`
123mpozzi Oct 17, 2023
33def97
feat(bufferapi): remove `MediaType`, `BufferType`, `BufferLevel`
123mpozzi Oct 17, 2023
47c19d9
feat(CHANGELOG): Update CHANGELOG.md
123mpozzi Oct 17, 2023
6ef8afa
feat(bufferapi): update doc on `PlayerConfig.bufferConfig`
123mpozzi Oct 17, 2023
5f90dc3
Run SwiftLint only on Mac
rolandkakonyi Oct 17, 2023
2df1a16
Run brew bundle during bootstrap
rolandkakonyi Oct 17, 2023
a286abd
Merge branch 'development' into integrate-swiftlint
rolandkakonyi Oct 17, 2023
7a5895b
Merge branch 'integrate-swiftlint' into fix-swiftlint-warnings
rolandkakonyi Oct 17, 2023
25fdf63
feat(swiftlint-warnings): fix SwiftLint warnings
rolandkakonyi Oct 17, 2023
76dd163
Merge branch 'fix-swiftlint-warnings' into swiftlint-on-ci
rolandkakonyi Oct 17, 2023
de059bc
feat(swiftlintci): run brew bundle install on CI
rolandkakonyi Oct 17, 2023
2468c01
feat(pipenterleave): improve Kotlin code style
rolandkakonyi Oct 17, 2023
efcb35d
feat(pipenterleave): fix state handling in PiP sample
rolandkakonyi Oct 17, 2023
d343bf3
Merge branch 'development' into pip-enter-leave-programmatically
rolandkakonyi Oct 17, 2023
5ad192c
Merge pull request #293 from bitmovin/integrate-swiftlint
rolandkakonyi Oct 17, 2023
7b8c7bc
Merge pull request #292 from bitmovin/fix-swiftlint-warnings
rolandkakonyi Oct 17, 2023
f2f9d5d
chore(deps): bump @babel/traverse from 7.18.8 to 7.23.2 in /example
dependabot[bot] Oct 17, 2023
31ba779
Merge branch 'development' into pip-enter-leave-programmatically
rolandkakonyi Oct 17, 2023
3332c4f
Merge pull request #294 from bitmovin/swiftlint-on-ci
rolandkakonyi Oct 17, 2023
4b48143
chore: fix iOS deployment target warnings on pods
rolandkakonyi Oct 17, 2023
7b9b835
Merge pull request #291 from bitmovin/bufferapi-types-and-config
123mpozzi Oct 17, 2023
5371d5f
Merge branch 'development' into pip-enter-leave-programmatically
rolandkakonyi Oct 17, 2023
eb5705c
chore: fix project warnings
rolandkakonyi Oct 17, 2023
0e3b9ab
chore: refactor Podfile for readability
rolandkakonyi Oct 18, 2023
620028e
chore: disable script sandboxing
rolandkakonyi Oct 18, 2023
4ee0d8d
chore: fix project warnings
rolandkakonyi Oct 18, 2023
1549368
Merge pull request #295 from bitmovin/dependabot/npm_and_yarn/example…
dependabot[bot] Oct 18, 2023
7c2c708
chore(deps): bump @babel/traverse from 7.18.6 to 7.23.2
dependabot[bot] Oct 18, 2023
e87b9e6
Merge pull request #296 from bitmovin/dependabot/npm_and_yarn/babel/t…
dependabot[bot] Oct 18, 2023
a320f82
Merge pull request #297 from bitmovin/ios-project-improvements
rolandkakonyi Oct 18, 2023
ffd1b76
Merge pull request #289 from bitmovin/pip-enter-leave-programmatically
rolandkakonyi Oct 18, 2023
e60f50f
chore: add missing changelog entry for scaling mode and rephrase Buff…
rolandkakonyi Oct 18, 2023
d3590d0
Merge branch 'development' of github.com:bitmovin/bitmovin-player-rea…
rolandkakonyi Oct 18, 2023
f580652
feat: add PlayerViewConfig public API
strangesource Oct 18, 2023
4e9cf65
feat: add Android parsing for new PlayerViewConfig
strangesource Oct 18, 2023
8b6d92a
feat: add iOS parsing for new PlayerViewConfig
strangesource Oct 18, 2023
848851e
chore: format kotlin code
strangesource Oct 18, 2023
6c89276
chore: split interfaces and implementations for player and player view
rolandkakonyi Oct 18, 2023
6e2482d
chore: fix documentation
strangesource Oct 18, 2023
5da2868
chore: fix documentation
strangesource Oct 18, 2023
b705aab
docs: add changelog entry
strangesource Oct 18, 2023
5df34f3
chore: split interfaces and implementations for player and player view
rolandkakonyi Oct 18, 2023
168956d
Update ios/RCTConvert+BitmovinPlayer.swift
strangesource Oct 18, 2023
1c3366f
Update ios/RNPlayerViewManager.swift
strangesource Oct 18, 2023
3ac5020
Update src/components/PlayerView/playerViewConfig.ts
strangesource Oct 18, 2023
d6b6c85
chore: fix documentation link
strangesource Oct 18, 2023
70628eb
Update ios/RCTConvert+BitmovinPlayer.swift
strangesource Oct 18, 2023
064a95b
Update src/components/PlayerView/playerViewConfig.ts
strangesource Oct 18, 2023
25b37d4
Merge pull request #299 from bitmovin/allow-speed-selection-disabling
strangesource Oct 18, 2023
1910ba4
chore: fix function name in BasicAnalytics sample
strangesource Oct 19, 2023
c68292b
Merge pull request #301 from bitmovin/untracked/fix-analytics-functio…
strangesource Oct 19, 2023
8bf4c7a
Merge branch 'development' into typescript-improvements
rolandkakonyi Oct 19, 2023
ffb593e
chore: improve API docs
rolandkakonyi Oct 19, 2023
cc32c2e
Merge pull request #300 from bitmovin/typescript-improvements
rolandkakonyi Oct 19, 2023
c6dc947
feat(pipconfigplayerviewconfig): move PictureInPictureConfig to Playe…
rolandkakonyi Oct 19, 2023
168bf99
Merge branch 'development' into move-pip-config-to-playerviewconfig
rolandkakonyi Oct 19, 2023
a8b4edc
feat(pipconfigplayerviewconfig): fix merge
rolandkakonyi Oct 19, 2023
0f5277d
feat(pipconfigplayerviewconfig): remove unneeded property declaration
rolandkakonyi Oct 20, 2023
e233e73
feat(pipconfigplayerviewconfig): refactor RNPlayerViewConfigWrapper
rolandkakonyi Oct 20, 2023
e22eb83
feat(pipconfigplayerviewconfig): rework changelog after moving Pictur…
rolandkakonyi Oct 20, 2023
4a00ec7
Merge pull request #302 from bitmovin/move-pip-config-to-playerviewco…
rolandkakonyi Oct 20, 2023
51881ee
chore: prepare release 0.13.0
Oct 20, 2023
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
94 changes: 0 additions & 94 deletions .github/ISSUE_TEMPLATE/bug_template.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Report a Bug
url: https://dashboard.bitmovin.com/support/tickets
about: Report a Bug you encountered in our Player React Native SDK in your Bitmovin Customer Dashboard.
- name: Feature Requests
url: https://community.bitmovin.com/t/how-to-submit-a-feature-request-to-us/1463
about: Learn how to suggest new features for our Player SDKs.
Expand Down
88 changes: 88 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,65 @@ concurrency:
cancel-in-progress: true

jobs:
code-style-typescript:
name: Code style Typescript
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node and npm registry
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'

- name: Install node_modules
run: yarn install --frozen-lockfile

- name: Lint Typescript
run: yarn lint

code-style-android:
name: Code style Android
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'

- name: Set up Gradle cache
uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/development' }}

- name: Check code style
run: ./gradlew ktlintCheck
working-directory: android

code-style-ios:
name: Code style iOS
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.1'

- name: Install dependencies
run: brew bundle install

- name: Check code style
run: swiftlint --strict

test-build-typescript:
name: Build Typescript
runs-on: ubuntu-latest
Expand All @@ -38,6 +97,29 @@ jobs:
- name: Compile TypeScript
run: yarn typescript

test-build-docs:
name: Build API docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node and npm registry
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'

- name: Install node_modules
run: yarn install --frozen-lockfile

- name: Install node_modules (example/)
run: yarn install --frozen-lockfile --cwd example

- name: Build docs
run: yarn docs

test-build-android:
name: Build Android
runs-on: ubuntu-latest
Expand Down Expand Up @@ -97,6 +179,9 @@ jobs:
- name: Install node_modules (example/)
run: yarn install --frozen-lockfile --cwd example

- name: Install dependencies
run: brew bundle install

- name: Restore Pods cache
id: pods-cache-restore
uses: actions/cache/restore@v3
Expand Down Expand Up @@ -156,6 +241,9 @@ jobs:
- name: Install node_modules (example/)
run: yarn install --frozen-lockfile --cwd example

- name: Install dependencies
run: brew bundle install

- name: Restore Pods cache
id: pods-cache-restore
uses: actions/cache/restore@v3
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/finish-release-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
- closed
branches:
- main

env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8

concurrency:
group: finish-release-train-${{ github.ref_name }}
cancel-in-progress: true

jobs:
create_pr:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/v')
Expand Down Expand Up @@ -88,3 +91,13 @@ jobs:
tag: v${{ needs.create_pr.outputs.version_number }}
token: ${{ secrets.GITHUB_TOKEN }}
body: ${{ steps.changelog.outputs.release_notes }}

publish_documentation:
needs: [publish_release]
name: Generate API Documentation
uses: ./.github/workflows/generate-documentation.yml
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GCS_ACCOUNT: ${{ secrets.GCS_ACCOUNT }}
CF_TOKEN: ${{ secrets.CF_TOKEN }}
CF_ZONEID: ${{ secrets.CF_ZONEID }}
65 changes: 65 additions & 0 deletions .github/workflows/generate-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Generate documentation
on:
workflow_call:
secrets:
GH_TOKEN:
description: GitHub token to access player-ci repo for CI scripts
required: true
GCS_ACCOUNT:
description: Google Cloud Storage account for uploading API docs
required: true
CF_TOKEN:
description: CloudFlare token for API docs cache purging
required: true
CF_ZONEID:
description: CloudFlare zone ID for API docs cache purging
required: true

workflow_dispatch:

env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8

jobs:
generate-documentation:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GC_SACCOUNT: ${{ secrets.GCS_ACCOUNT }}
CF_TOKEN: ${{ secrets.CF_TOKEN }}
CF_ZONEID: ${{ secrets.CF_ZONEID }}

name: Generate documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup node and npm registry
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org/'
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Install dependencies (example/)
run: yarn example install --frozen-lockfile

- name: Detect version using jq
run: |
echo "PCI_BRANCH=$(jq -r '.version' package.json)" >> $GITHUB_ENV

- name: Generate documentation
run: yarn docs

- name: Install CI scripts
run: |
curl -sS -H "Authorization: token ${GH_TOKEN}" -L https://raw.githubusercontent.com/bitmovin-engineering/player-ci/master/install.sh | bash

- name: Upload to CDN
run: node ./ci_scripts/src/uploadToGcs.js reactnative ../../docs/generated

- name: Purge CDN cache
run: node ./ci_scripts/src/purgeCloudflarePath.js 'reactnative'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ android/keystores/debug.keystore

# generated by bob
lib/

# generated API documentation
docs/generated
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if [[ "$(uname -m)" == arm64 ]]; then
export PATH="/opt/homebrew/bin:$PATH"
fi

yarn lint-staged

if [ "$(uname)" == "Darwin" ]; then
swiftlint lint --strict
fi
Loading