Skip to content

Commit

Permalink
v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Escaper-Park committed Mar 23, 2024
1 parent 4ecea61 commit f3a1b75
Show file tree
Hide file tree
Showing 45 changed files with 1,550 additions and 763 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@

## 업데이트
### v0.2.2
- 채널 동영상에서 성인 인증 동영상이 재생되지 않는 현상 수정
- gif 이모티콘 대응, 채팅이 가끔 나오지 않는 현상 수정
- 채널 동영상에서 연령 인증 동영상이 재생되지 않는 현상 수정
- gif 이모티콘 성능 최적화, 채팅이 가끔 나오지 않는 현상 수정
- 전체 라이브 페이지 추가 (홈 화면 상단 -> 전체 라이브)
- 기타 기능 및 버그 수정

### v0.2.1
- HeadlessWebView로 로그인이 진행되지 않는 분들을 위해 WebView 로그인을 추가했습니다. 가상 키보드에 문제가 있으신 분도 WebView 로그인을 사용해주세요. (설정 -> WebView 로그인)
Expand Down Expand Up @@ -88,7 +90,6 @@ APK 파일을 다운받아서 수동으로 설치합니다.

## Future Works
- 화질 설정 (멀티뷰 성능 이슈)
- 멀티뷰 소리조절
- 멀티뷰 최적화
- 팔로우 추가/제거
- 삼성TV (Tizen OS) 지원 (오래걸림)

- 삼성TV (Tizen OS) 지원 (오래걸림)
15 changes: 11 additions & 4 deletions lib/src/common/constants/api.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '../../features/live/repository/live_repository.dart';

class APIUrl {
static const String _chzzkAPIUrl = 'https://api.chzzk.naver.com';
static const String _naverGameUrl =
Expand Down Expand Up @@ -47,15 +49,16 @@ class APIUrl {
}) =>
'$_chzzkAPIUrl/service/v1/search/channels?keyword=$keyword&offset=$offset&size=$size&withFirstChannelContent=$withFirstChannelContent';

static String popularLive({
static String allLives({
required int? concurrentUserCount,
required int? liveId,
int size = 20,
int size = 18,
LiveSortType sortType = LiveSortType.popular,
}) {
if (concurrentUserCount == null || liveId == null) {
return '$_chzzkAPIUrl/service/v1/lives?size=$size&sortType=POPULAR';
return '$_chzzkAPIUrl/service/v1/lives?size=$size&sortType=${sortType.sortType}';
} else {
return '$_chzzkAPIUrl/service/v1/lives?concurrentUserCount=$concurrentUserCount&liveId=$liveId&sortType=POPULAR';
return '$_chzzkAPIUrl/service/v1/lives?concurrentUserCount=$concurrentUserCount&liveId=$liveId&sortType=${sortType.sortType}';
}
}

Expand Down Expand Up @@ -110,4 +113,8 @@ class APIUrl {

static String chatServer(int serverNo) =>
'wss://kr-ss$serverNo.chat.naver.com/chat';

// Github update check
static String latestApp() =>
'https://api.github.com/repos/Escaper-Park/unofficial_chzzk_android_tv/releases/latest';
}
11 changes: 9 additions & 2 deletions lib/src/common/widgets/header_text.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';

import '../constants/styles.dart';
import 'focused_outline_button.dart';
import './focused_outline_button.dart';

class HeaderText extends StatelessWidget {
/// A subject title header in a screen.
Expand All @@ -11,13 +11,15 @@ class HeaderText extends StatelessWidget {
this.verticalPadding = 12.0,
this.fontSize = 20.0,
this.useShowMoreButton = false,
this.focusNode,
this.onPressed,
});

final String text;
final double verticalPadding;
final double fontSize;
final bool useShowMoreButton;
final FocusNode? focusNode;
final VoidCallback? onPressed;

@override
Expand All @@ -29,6 +31,7 @@ class HeaderText extends StatelessWidget {
children: [
_headerText(),
FocusedOutlineButton(
focusNode: focusNode,
padding: const EdgeInsets.all(5.0),
onPressed: onPressed,
child: const Icon(
Expand All @@ -43,7 +46,11 @@ class HeaderText extends StatelessWidget {

Widget _headerText() {
return Padding(
padding: EdgeInsets.symmetric(vertical: verticalPadding),
padding: EdgeInsets.only(
top: verticalPadding,
bottom: verticalPadding,
left: 5.0,
),
child: Text(
text,
style: TextStyle(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions lib/src/features/channel/model/channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,3 @@ class PersonalData with _$PersonalData {
factory PersonalData.fromJson(Map<String, dynamic> json) =>
_$PersonalDataFromJson(json);
}

@freezed
class PopularChannelPage with _$PopularChannelPage {
factory PopularChannelPage({
required int? concurrentUserCount,
required int? liveId,
}) = _PopularChannelPage;

factory PopularChannelPage.fromJson(Map<String, dynamic> json) =>
_$PopularChannelPageFromJson(json);
}

@freezed
class PopularChannelResponse with _$PopularChannelResponse {
const factory PopularChannelResponse({
required List<Channel>? channels,
required PopularChannelPage? page,
}) = _PopularChannelResponse;
}
Loading

0 comments on commit f3a1b75

Please sign in to comment.