chore(plugins,ci): remove livekit audio switch patch plugin and simplify build config
Some checks failed
Frontend CI / ota (ios) (push) Has been cancelled
Frontend CI / ota (android) (push) Has been cancelled
Frontend CI / build-and-push-web (push) Failing after 3m58s
Frontend CI / build-android-apk (push) Failing after 45m17s

Remove the LiveKit audio switch patch plugin as it's no longer needed after the JitPack
repository was restricted to GitHub packages only. Simplify CI by removing npm caching and
Android NDK caching/installation steps. Update privacy policy and terms of service to
reflect JPush SDK naming changes.
This commit is contained in:
lafay
2026-06-16 08:38:07 +08:00
parent 4c4d28f0e2
commit c46260e4c0
5 changed files with 15 additions and 104 deletions

View File

@@ -41,7 +41,6 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '25.6.1' node-version: '25.6.1'
cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
@@ -123,28 +122,10 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '25.6.1' node-version: '25.6.1'
cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Cache Android NDK
uses: actions/cache@v4
id: cache-ndk
with:
path: /opt/android/ndk
key: ndk-v2
- name: Install Android NDK
if: steps.cache-ndk.outputs.cache-hit != 'true'
run: |
echo "Existing NDK versions:"
ls /opt/android/ndk/ 2>/dev/null || echo "No NDK dir"
echo "Installing required NDK versions..."
yes | sdkmanager --install "ndk;27.1.12297006" "ndk;27.0.12077973"
echo "NDK after install:"
ls /opt/android/ndk/
- name: Cache Gradle - name: Cache Gradle
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@@ -204,12 +185,7 @@ jobs:
maven { url 'https://developer.huawei.com/repo/' } maven { url 'https://developer.huawei.com/repo/' }
google() google()
mavenCentral() mavenCentral()
maven { maven { url 'https://www.jitpack.io' }
url 'https://www.jitpack.io'
content {
includeGroupByRegex "com\\.github.*"
}
}
} }
} }
@@ -256,12 +232,7 @@ jobs:
maven { url 'https://developer.huawei.com/repo/' } maven { url 'https://developer.huawei.com/repo/' }
google() google()
mavenCentral() mavenCentral()
maven { maven { url 'https://www.jitpack.io' }
url 'https://www.jitpack.io'
content {
includeGroupByRegex "com\\.github.*"
}
}
} }
} }

View File

@@ -68,7 +68,6 @@
"plugins": [ "plugins": [
"./plugins/withCmakeJobLimit", "./plugins/withCmakeJobLimit",
"./plugins/withJcorePatch", "./plugins/withJcorePatch",
"./plugins/withLivekitAudioswitchPatch",
"./plugins/withSigning", "./plugins/withSigning",
"./plugins/withMainActivityConfigChange", "./plugins/withMainActivityConfigChange",
[ [

View File

@@ -1,40 +0,0 @@
const { withDangerousMod } = require('@expo/config-plugins');
const fs = require('fs');
const path = require('path');
// @livekit/react-native depends on com.github.davidliu:audioswitch via JitPack.
// That JitPack artifact returns 403 Forbidden (repo/commit no longer accessible).
// The original upstream com.twilio:audioswitch is published on Maven Central.
// This plugin patches livekit's build.gradle during prebuild to swap the
// JitPack dependency for the Maven Central one.
const withLivekitAudioswitchPatch = (config) =>
withDangerousMod(config, [
'android',
async (config) => {
const root = config.modRequest.projectRoot;
const gradlePath = path.join(
root,
'node_modules',
'@livekit',
'react-native',
'android',
'build.gradle',
);
if (!fs.existsSync(gradlePath)) return config;
let content = fs.readFileSync(gradlePath, 'utf-8');
const oldDep = /api\s+'com\.github\.davidliu:audioswitch:[a-f0-9]+'/;
const newDep = `api 'com.twilio:audioswitch:1.1.5'`;
if (oldDep.test(content)) {
content = content.replace(oldDep, newDep);
fs.writeFileSync(gradlePath, content);
console.log('[withLivekitAudioswitchPatch] replaced davidliu JitPack audioswitch with com.twilio:audioswitch:1.1.5');
}
return config;
},
]);
module.exports = withLivekitAudioswitchPatch;

View File

@@ -159,37 +159,18 @@ const PRIVACY_SECTIONS = [
title: '七、第三方SDK目录', title: '七、第三方SDK目录',
content: `为了保障App的稳定运行或实现特定功能我们可能接入第三方SDK。截至本隐私政策更新之日我们主要使用以下服务 content: `为了保障App的稳定运行或实现特定功能我们可能接入第三方SDK。截至本隐私政策更新之日我们主要使用以下服务
1. 极光推送JPush 1. 极光推送 - JPush SDK - Android
• 提供方:深圳市和讯华谷信息技术有限公司 所属系统安卓、iOS
• 使用目的:实现消息推送功能,向您的设备发送通知提醒 第三方公司名称:深圳市和讯华谷信息技术有限公司
收集的个人信息:设备标识符Registration ID、Android ID、IMEI、OAID、设备型号、操作系统版本、IP地址、应用列表信息 第三方收集的个人信息类型
• 隐私政策https://www.jiguang.cn/privacy 1. 设备标识符Registration ID、Android ID、IMEI、OAID2. 设备型号、操作系统版本3. IP地址4. 应用列表信息
我们从第三方获取的个人信息设备标识符Registration ID
2. Expo推送服务 第三方可能调用的权限:无
• 提供方Expo650 Industries, Inc. 实现功能及场景描述:消息推送
• 使用目的:辅助消息推送通道管理 处理目的:实现消息推送功能,向您的设备发送通知提醒
• 收集的个人信息设备推送令牌Push Token、设备标识符 处理方式SDK采集
联系方式:官网 https://www.jiguang.cn/
3. WorkManagerAndroid系统组件 第三方隐私政策链接https://www.jiguang.cn/license/privacy
• 提供方Google LLC
• 使用目的:在用户同意自启动后,执行后台消息同步任务
• 收集的个人信息:无额外个人信息收集
• 隐私政策https://policies.google.com/privacy
4. expo-task-manager / expo-background-task
• 提供方Expo650 Industries, Inc.
• 使用目的:在用户同意自启动后,管理后台任务调度
• 收集的个人信息:无额外个人信息收集
5. expo-notifications
• 提供方Expo650 Industries, Inc.
• 使用目的:在用户同意自启动后,恢复通知服务
• 收集的个人信息:设备推送令牌
6. expo-callkit-telecom
• 提供方Expo650 Industries, Inc.
• 使用目的:通话功能相关服务
• 收集的个人信息:无额外个人信息收集
如您后续接入其他第三方SDK如微信登录、分享等功能我们将在本章节更新相关说明并告知您对应SDK收集的信息类型和用途。更新后的SDK目录将在应用内公布请以最新版本为准。`, 如您后续接入其他第三方SDK如微信登录、分享等功能我们将在本章节更新相关说明并告知您对应SDK收集的信息类型和用途。更新后的SDK目录将在应用内公布请以最新版本为准。`,
}, },

View File

@@ -103,7 +103,7 @@ const TERMS_SECTIONS = [
6.3 我们将采取合理的技术和管理措施保护您的个人信息安全,但不对因不可抗力或第三方原因导致的信息泄露承担责任。 6.3 我们将采取合理的技术和管理措施保护您的个人信息安全,但不对因不可抗力或第三方原因导致的信息泄露承担责任。
6.4 本应用集成了极光推送JPush等第三方SDK用于实现消息推送等功能。第三方SDK可能会收集和处理您的设备标识符、设备信息等必要数据。具体的第三方SDK信息请参见《隐私政策》中的"第三方SDK目录"章节。`, 6.4 本应用集成了极光推送 - JPush SDK - Android等第三方SDK用于实现消息推送等功能。第三方SDK可能会收集和处理您的设备标识符、设备信息等必要数据。具体的第三方SDK信息请参见《隐私政策》中的"第三方SDK目录"章节。`,
}, },
{ {
title: '七、免责声明', title: '七、免责声明',