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

chore: disable new arch #729

Merged
merged 4 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=true
newArchEnabled=false

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
Expand Down
1 change: 1 addition & 0 deletions src/components/login/SiteSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default ({
<View style={iconTabStyle}>
{sites.map(site => (
<IconButton
key={site}
style={{ opacity: getAnimatedOpacityRef(site) }}
icon={SiteIcon(site, iconSize)}
size={iconSize}
Expand Down
1 change: 0 additions & 1 deletion src/enums/MediaFetch.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export enum Source {
biliaudio = 'biliaudio',
bilivideo = 'bilivideo',
steriatk = 'steriatk',
ytbvideo = 'ytbvideo',
biliBangumi = 'biliBangumi',
biliLive = 'bililive',
Expand Down
16 changes: 15 additions & 1 deletion src/localization/en/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_comment": "src/localization/en/translation.json",
"YTMusic": {
"ChartVideo": "Videos",
"ChartVideo": "MV",
"ChartTrending": "Trending",
"ChartArtist": "Artists",
"ChartGenres": "Genres",
Expand All @@ -19,6 +19,20 @@
"StripePurchaseNote": "!!Please use {{biliMid}} as biliuserID in the purchase page!! \nAnd please restart APM after purchase.",
"BiliUserNotLoggedIn": "You must login via bilibili to purchase premium access."
},
"BiliCategory": {
"top": "Top Songs",
"ranking": "Ranking",
"dynamic": "Feed",
"hot": "Hot Songs",
"new": "New Songs",
"3": "Music",
"28": "Original Score",
"31": "Covers",
"30": "Vocaloid",
"59": "Instrumental",
"193": "MV",
"29": "Live"
},
"appDrawer": {
"homeScreenName": "Home",
"exploreScreenName": "Discover",
Expand Down
10 changes: 6 additions & 4 deletions src/localization/zhcn/translation.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"_comment": "src/localization/en/translation.json",
"YTMusic": {
"ChartVideo": "视频排行",
"ChartTrending": "最热",
"ChartVideo": "MV排行",
"ChartTrending": "油管最热",
"ChartArtist": "艺术家排行",
"ChartGenres": "流派排行",
"ChartSongs": "歌曲排行"
"ChartSongs": "歌手排行"
},
"Billing": {
"PremiumFeaturesIntro": "感谢你对中国管人事业的支持。您赞助的每一分钱将用于购买《博德之门3》。APM PRO将隐藏启动广告。",
Expand All @@ -15,14 +15,16 @@
"thankU": "又要到饭了兄弟们!",
"godBlessU": "太破费了太破费了,好久没有收到这么贵重的礼物了",
"urVeryVeryGorgeous": "最后祝您身体健康万事如意,股票upup",
"StripePurchase": "stripe购买 ",
"StripePurchase": "stripe购买",
"StripePurchaseNote": "!!请在biliID下填入{{biliMid}}!!\n购买完成后请重启APM",
"BiliUserNotLoggedIn": "你必须登录b站才能购买高级功能."
},
"BiliCategory": {
"top": "b站全站音乐榜",
"ranking": "b站音乐区排行榜",
"dynamic": "b站音乐区动态",
"hot": "热歌精选",
"new": "新歌速递",
"3": "音乐",
"28": "原创音乐",
"31": "翻唱",
Expand Down
3 changes: 0 additions & 3 deletions src/utils/BiliSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import biliSearchFetch from '@utils/mediafetch/bilisearch';
import ytbVideoFetch from '@utils/mediafetch/ytbvideo';
import localFetch from '@utils/mediafetch/local';
import { SearchOptions } from '@enums/Storage';
import steriatkFetch from './mediafetch/steriatk';
import biliVideoSimilarFetch from './mediafetch/biliVideoSimilar';
import biliBangumiFetch from './mediafetch/biliBangumi';
import biliAudioAMFetch from './mediafetch/biliAudioAM';
Expand Down Expand Up @@ -226,8 +225,6 @@ const reExtractions: ReExtraction<NoxNetwork.NoxRegexFetch>[] = [
match: biliFavlistFetch.regexSearchMatch2,
fetch: biliFavlistFetch.regexFetch,
},
{ match: steriatkFetch.regexSearchMatch, fetch: steriatkFetch.regexFetch },
{ match: steriatkFetch.regexSearchMatch2, fetch: steriatkFetch.regexFetch },
{
match: ytbMixlistFetch.regexSearchMatch,
fetch: ytbMixlistFetch.regexFetch,
Expand Down
2 changes: 0 additions & 2 deletions src/utils/mediafetch/resolveURL.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import steriatkFetch from './steriatk';
import biliaudioFetch from './biliaudio';
import ytbvideoFetch, { fetchAudioInfo } from '@utils/mediafetch/ytbvideo';
import bililiveFetch from './bililive';
Expand All @@ -21,7 +20,6 @@ type RegResolve = NoxUtils.RegexMatchResolve<

const regexResolveURLs: RegResolve = [
[acfunFetch.regexResolveURLMatch, acfunFetch.resolveURL],
[steriatkFetch.regexResolveURLMatch, steriatkFetch.resolveURL],
[biliaudioFetch.regexResolveURLMatch, biliaudioFetch.resolveURL],
[ytbvideoFetch.regexResolveURLMatch, ytbvideoFetch.resolveURL],
[ytbvideoFetch.regexResolveURLMatch2, ytbvideoFetch.resolveURL],
Expand Down
75 changes: 0 additions & 75 deletions src/utils/mediafetch/steriatk.ts

This file was deleted.

90 changes: 0 additions & 90 deletions src/utils/mediafetch/ytbChannel.ts

This file was deleted.

Loading