Skip to content

Commit 05694af

Browse files
committed
bump to k0.8.9
1 parent 5914e86 commit 05694af

9 files changed

Lines changed: 93 additions & 22 deletions

File tree

.github/workflows/ios-android.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: ios-IJKMediaFramework
2+
3+
on:
4+
# push:
5+
# branches: [master]
6+
# pull_request:
7+
# branches: [master]
8+
workflow_dispatch:
9+
inputs:
10+
beta:
11+
type: boolean
12+
description: publish beta edition
13+
default: true
14+
required: false
15+
jobs:
16+
build:
17+
name: ijkplayer
18+
runs-on: macos-14
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
with:
24+
submodules: recursive
25+
- name: Prepare Beta Version
26+
if: ${{ inputs.beta == true }}
27+
run: |
28+
grep -m 1 VERSION_NAME= version.sh | awk -F = '{printf "VERSION=%s",$2}' | xargs > constants.env
29+
echo "RELEAE_DATE=$(TZ=UTC-8 date +'%y%m%d%H%M%S')" >> constants.env
30+
echo "TAG=k"$(grep "VERSION" constants.env | cut -d'=' -f2)"-beta-"$(grep "RELEAE_DATE" constants.env | cut -d'=' -f2) >> constants.env
31+
cat constants.env
32+
- name: Prepare Normal Version
33+
if: ${{ inputs.beta == false }}
34+
run: |
35+
grep -m 1 VERSION_NAME= version.sh | awk -F = '{printf "TAG=k%s",$2}' | xargs > constants.env
36+
cat constants.env
37+
- name: Export Env
38+
uses: cardinalby/export-env-action@v2
39+
with:
40+
envFile: 'constants.env'
41+
- name: Download Pre Compiled Dependencies
42+
run: cd ios && ./install-ffmpeg.sh
43+
- name: Build iOS Framework
44+
run: cd ios && ./build-framework.sh
45+
- name: Make xcframework
46+
run: cd ios/xcframewrok && ./make-xcframework.sh
47+
- name: Make podspec
48+
run: cd ios/xcframewrok && ./make-podspec.sh "${{ env.TAG }}"
49+
- name: Make Distribution Resources
50+
run: |
51+
mkdir dist
52+
cp NEWS.md dist
53+
cp README.md dist
54+
cp COPYING.LGPLv3 dist/LICENSE
55+
cp -pPR ios/xcframewrok/IJKMediaFramework.xcframework dist
56+
cd dist
57+
zip -ryq IJKMediaFramework.zip ./*
58+
- name: Download Pre Compiled Dependencies
59+
run: cd android && ./install-ffmpeg.sh
60+
- name: Build android arr
61+
run: cd android && ./build-aar.sh
62+
- name: Upload Release Asset
63+
env:
64+
GH_TOKEN: ${{ github.token }}
65+
run: |
66+
branch=$(git branch --show-current)
67+
gh release create ${{ env.TAG }} --target $branch -t "👏👏 ijkplayer ${{ env.TAG }}" dist/IJKMediaFramework.zip ios/xcframewrok/IJKMediaFramework.spec.json android/ijkplayer/ijkplayer-cmake/build/outputs/aar/*.*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
- ios
2828

2929
```
30-
pod "IJKMediaFramework", :podspec => 'https://github.com/debugly/ijkplayer/releases/download/k0.8.8-beta-250325175641/IJKMediaFramework.spec.json'
30+
pod "IJKMediaFramework", :podspec => 'https://github.com/debugly/ijkplayer/releases/download/k0.8.9/IJKMediaFramework.spec.json'
3131
```
3232

3333
- android
3434

3535
```
36-
https://github.com/debugly/ijkplayer/releases/download/k0.8.8-beta-250326100747/ijkplayer-cmake-release.aar
36+
https://github.com/debugly/ijkplayer/releases/download/k0.8.9/ijkplayer-cmake-release.aar
3737
```
3838

3939
更多版本,查看 [Releases](https://github.com/debugly/ijkplayer/releases) 页面。

android/ijkplayer/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ ext {
3030

3131
targetSdkVersion = 25
3232

33-
versionCode = 800800
34-
versionName = "0.8.8"
33+
versionCode = 800900
34+
versionName = "0.8.9"
3535
}
3636

3737
wrapper {

android/ijkplayer/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=0.8.8
21-
VERSION_CODE=800800
20+
VERSION_NAME=0.8.9
21+
VERSION_CODE=800900
2222
GROUP=tv.danmaku.ijk.media
2323

2424
# http://central.sonatype.org/pages/requirements.html

android/ijkplayer/ijkplayer-example/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ dependencies {
4949
// implementation 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
5050
// implementation 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.8'
5151

52-
// all32Compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
53-
// all32Compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
54-
// all32Compile 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
52+
// all32Compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.9'
53+
// all32Compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.9'
54+
// all32Compile 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.9'
5555

56-
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.8'
57-
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.8'
58-
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.8'
59-
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.8'
60-
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.8'
56+
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-armv5:0.8.9'
57+
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.9'
58+
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-arm64:0.8.9'
59+
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.9'
60+
// all64Compile 'tv.danmaku.ijk.media:ijkplayer-x86_64:0.8.9'
6161

6262
// armv5Compile project(':player-armv5')
6363
// armv7aCompile project(':player-armv7a')

android/ijkplayer/ijkplayer-exo/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies {
2828
compile 'com.google.android.exoplayer:exoplayer:r1.5.11'
2929

3030
compile project(':ijkplayer-java')
31-
// compile 'tv.danmaku.ijk.media:ijkplayer-java:0.8.8'
31+
// compile 'tv.danmaku.ijk.media:ijkplayer-java:0.8.9'
3232
}
3333

3434
gradle.startParameter.taskNames.each { task ->

ios/IJKMediaPlayer/IJKMediaPlayer.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@
10231023
CLANG_WARN_UNREACHABLE_CODE = YES;
10241024
CODE_SIGN_IDENTITY = "Apple Development";
10251025
CODE_SIGN_STYLE = Manual;
1026-
CURRENT_PROJECT_VERSION = 0.8.8;
1026+
CURRENT_PROJECT_VERSION = 0.8.9;
10271027
DEBUG_INFORMATION_FORMAT = dwarf;
10281028
DEFINES_MODULE = YES;
10291029
DEVELOPMENT_TEAM = "";
@@ -1108,7 +1108,7 @@
11081108
CLANG_WARN_UNREACHABLE_CODE = YES;
11091109
CODE_SIGN_IDENTITY = "Apple Development";
11101110
CODE_SIGN_STYLE = Manual;
1111-
CURRENT_PROJECT_VERSION = 0.8.8;
1111+
CURRENT_PROJECT_VERSION = 0.8.9;
11121112
DEFINES_MODULE = YES;
11131113
DEVELOPMENT_TEAM = "";
11141114
DYLIB_COMPATIBILITY_VERSION = 1;

version.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
VERSION_CODE=800800
6-
VERSION_NAME=0.8.8
5+
VERSION_CODE=800900
6+
VERSION_NAME=0.8.9
77
VERSION_TARGET=$1
88

99
do_version_readme() {
@@ -12,11 +12,15 @@ do_version_readme() {
1212
# | sed "s/\(#compile 'tv.danmaku.ijk.media:ijkplayer-java:#\)[[:digit:]][[:digit:].]*\(#'#\)/\1:$VERSION_NAME\2/" \
1313
# > README.md.new
1414

15+
# cat README.md \
16+
# | sed "s/\(compile \'tv.danmaku.ijk.media:ijkplayer-[[:alnum:]_]*:\)[[:digit:].]*[[:digit:]]/\1$VERSION_NAME/g" \
17+
# | sed "s/\(git checkout -B latest k\)[[:digit:]][[:digit:].]*/\1$VERSION_NAME/g" \
18+
# > README.md.new
19+
1520
cat README.md \
16-
| sed "s/\(compile \'tv.danmaku.ijk.media:ijkplayer-[[:alnum:]_]*:\)[[:digit:].]*[[:digit:]]/\1$VERSION_NAME/g" \
17-
| sed "s/\(git checkout -B latest k\)[[:digit:]][[:digit:].]*/\1$VERSION_NAME/g" \
21+
| sed "s#\(.*download/k\)\([[:alnum:].-]*\)\(/IJKMediaFramework.spec.json\)#\1$VERSION_NAME\3#g" \
22+
| sed "s#\(.*download/k\)\([[:alnum:].-]*\)\(/ijkplayer-cmake-release.aar\)#\1$VERSION_NAME\3#g" \
1823
> README.md.new
19-
2024
mv -f README.md.new README.md
2125
}
2226

0 commit comments

Comments
 (0)