Skip to content

Commit

Permalink
fix: Renew image split rule
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Feb 9, 2023
1 parent d214379 commit 32ca349
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 15 deletions.
19 changes: 15 additions & 4 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
Jasmine Comic
=============

一个简单易用的二次元浏览器,同时支持支持 Android / iOS / MacOS / Windows / Linux.
一个简单易用的二次元浏览器,同时支持支持 Android / iOS / MacOS / Windows.


1. 此APP内容存在限制级别内容(露骨/血腥/暴力)。
1. 此APP内容存在限制级别内容(露骨/血腥/暴力)。
2. 您在下载使用代码或安装包之前,请务必悉知当地法规,是否允许使用或传播包含上述内容的软件。
3. 仓库作者不会在除Github以外的地方发布软件的代码或安装包,不对分发代码或软件承担责任。因传播载造成的法律问题或纠纷, 需行为人自行处理。



## 软件截图

#### 浏览器
Expand All @@ -35,7 +36,7 @@ Jasmine Comic
- [x] 用户
- [x] 登录/注册
- [x] 设备优化
- [x] 安卓的高刷新率屏幕的支持
- [x] 安卓的高刷新率屏幕的支持

## 技术架构

Expand All @@ -46,7 +47,17 @@ flutter实现了高性能的跨平台界面渲染,rust实现了安全以及高
![](images/technologies.png)

## 请您遵守使用规则
软件副本分发以及代码使用规则规则

- 本仓库代码供学习交流使用, 个人或企业不可用于商业用途, 不可上架任何商店。
- 不要发送本仓库的Assets任何社区内或发给个人。
- 本软fork或者其他方式产生的仓库或复制了本仓库代码releases。
- 不要在任何其他 **二次元软件****聊天社区****开发社区** 内, 发布有关本软件的链接或信息, 对于观点不同产生的分歧作者不站队任何立场。
- 不要发送本软件安装包到 **任何社区内** , 不要将APK/IPA/ZIP/DMG发送包括任何聊天软件内的群聊功能。 分享本软件时, 在社区中使用Github中提供的Releases页面的链接, 或使用私聊窗口发送。

源代码使用规则

- 对本仓库的fork需要保留本仓库的链接, 以引导用户在主要仓库进行讨论。

责任声明

- 作者仅分享编程技术, 不分发软件, 不对分发软件承担任何后果。 因传播载造成的法律问题或纠纷, 需行为人自行承担, 请您遵守当地法以及副本接受方(社区或人)所在地区的法律。
15 changes: 8 additions & 7 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,29 @@
</queries>

<application
android:label="jasmine"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="jasmine"
android:requestLegacyExternalStorage="true">
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
Expand Down
2 changes: 1 addition & 1 deletion ci/version.code.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.9
v1.4.1
4 changes: 2 additions & 2 deletions ci/version.info.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
v1.3.9
v1.4.1

- [x] 🚀 remove anime when volumes button controller touch
- [x] 🚀 renew
4 changes: 4 additions & 0 deletions lib/basic/entities.dart
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,13 @@ class PreLoginResponse {
required this.preSet,
required this.preLogin,
required this.selfInfo,
required this.message,
});

late final bool preSet;
late final bool preLogin;
late final SelfInfo? selfInfo;
late final String? message;

PreLoginResponse.fromJson(Map<String, dynamic> json) {
preSet = json['pre_set'];
Expand All @@ -608,13 +610,15 @@ class PreLoginResponse {
} else {
selfInfo = null;
}
message = json['message'];
}

Map<String, dynamic> toJson() {
final _data = <String, dynamic>{};
_data['pre_set'] = preSet;
_data['pre_login'] = preLogin;
_data['self_info'] = selfInfo?.toJson();
_data['message'] = message;
return _data;
}
}
Expand Down
6 changes: 6 additions & 0 deletions lib/basic/methods.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ class Methods {
);
}

Future logout() async {
return SelfInfo.fromJson(
jsonDecode(await _invoke("logout", "")),
);
}

Future<CommentResponse> commentResponse(int aid, String comment) async {
return CommentResponse.fromJson(jsonDecode(await _invoke("comment", {
"aid": aid,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: jasmine comic browser

publish_to: 'none'

version: 1.3.9+11
version: 1.4.1+12

environment:
sdk: ">=2.15.1 <3.0.0"
Expand Down

0 comments on commit 32ca349

Please sign in to comment.