diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 6c869d8a..be9f28c0 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -1,8 +1,6 @@ name: build-android -on: - push: - branches-ignore: - - "main" +on: + pull_request: jobs: build-android: runs-on: macos-latest diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index c44567a7..468fee33 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -1,8 +1,7 @@ name: build-ios on: - push: - branches-ignore: - - "main" + pull_request: + jobs: build-ios: runs-on: macos-latest diff --git a/helpers/runtimeticks.ts b/helpers/runtimeticks.ts index de5c5099..4d01be86 100644 --- a/helpers/runtimeticks.ts +++ b/helpers/runtimeticks.ts @@ -1,13 +1,6 @@ import { backgroundRuntime } from "@/App"; import { runOnRuntime } from "react-native-reanimated"; -/** - * Converts the run time seconds of a track to the RunTimeTicks standard set by Emby / Jellyfin - * @param seconds The run time seconds of the item to convert to Jellyfin ticks - * @returns the run time seconds of a track converted to Jellyfin runtimeticks - * - * @see https://emby.media/community/index.php?/topic/63357-runtimeticks-microseconds-milliseconds-or-nanoseconds/ - */ export function convertSecondsToRunTimeTicks(seconds: number) { return runOnRuntime(backgroundRuntime, (runTimeSeconds: number) => { const runTimeMilliseconds = seconds * 1000 * 10000; @@ -16,13 +9,6 @@ export function convertSecondsToRunTimeTicks(seconds: number) { })(seconds); } -/** - * Converts a {@link BaseItemDto}'s RunTimeTicks to seconds - * @param ticks The run time ticks of the item to convert to seconds - * @returns The run time ticks of a track converted to seconds - * - * @see https://emby.media/community/index.php?/topic/63357-runtimeticks-microseconds-milliseconds-or-nanoseconds/ - */ export function convertRunTimeTicksToSeconds(ticks: number) { return runOnRuntime(backgroundRuntime, (runTimeTicks : number) => { const runTimeMilliseconds = runTimeTicks / 10000; diff --git a/package-lock.json b/package-lock.json index 32f98a3b..c3e84629 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "@jellyfin/sdk": "^0.11.0", "@react-native-community/blur": "^4.4.1", "@react-native-community/cli": "^15.1.3", - "@react-native-community/masked-view": "^0.1.11", "@react-native-masked-view/masked-view": "^0.3.1", "@react-navigation/bottom-tabs": "^7.2.0", "@react-navigation/native": "^7.0.14", @@ -3404,17 +3403,6 @@ "node": ">=10" } }, - "node_modules/@react-native-community/masked-view": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@react-native-community/masked-view/-/masked-view-0.1.11.tgz", - "integrity": "sha512-rQfMIGSR/1r/SyN87+VD8xHHzDYeHaJq6elOSCAD+0iLagXkSI2pfA0LmSXP21uw5i3em7GkkRjfJ8wpqWXZNw==", - "deprecated": "Repository was moved to @react-native-masked-view/masked-view", - "license": "MIT", - "peerDependencies": { - "react": ">=16.0", - "react-native": ">=0.57" - } - }, "node_modules/@react-native-masked-view/masked-view": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/@react-native-masked-view/masked-view/-/masked-view-0.3.1.tgz", diff --git a/package.json b/package.json index 9f0575e5..ca8cd20a 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "@jellyfin/sdk": "^0.11.0", "@react-native-community/blur": "^4.4.1", "@react-native-community/cli": "^15.1.3", - "@react-native-community/masked-view": "^0.1.11", "@react-native-masked-view/masked-view": "^0.3.1", "@react-navigation/bottom-tabs": "^7.2.0", "@react-navigation/native": "^7.0.14",