Skip to content

Commit

Permalink
chore: Flutter 3.24.3, Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Oct 15, 2024
1 parent c88a0ec commit f05343d
Show file tree
Hide file tree
Showing 25 changed files with 355 additions and 385 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 1.9.10 (Unreleased)
- [升级] Flutter 3.24.0
- [升级] Flutter 3.24.3
- [升级] Package 升级及适配
- [升级] UniMPSDK 4.15
- [修改] 路由管理 fluro 替换为 go_router
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<p align="center">
<a href="/CHANGELOG.md"><img alt="Mood-Example v1.9.10" src="https://img.shields.io/badge/Mood--Example-v1.9.10-3e4663"/></a>
<a href="https://flutter.dev/"><img alt="Flutter v3.24.0" src="https://img.shields.io/badge/Flutter-v3.24.0-0468D7"/></a>
<a href="https://dart.dev/"><img alt="Dart v3.5.0" src="https://img.shields.io/badge/Dart-v3.5.0-04599C"/></a>
<a href="https://flutter.dev/"><img alt="Flutter v3.24.3" src="https://img.shields.io/badge/Flutter-v3.24.3-0468D7"/></a>
<a href="https://dart.dev/"><img alt="Dart v3.5.3" src="https://img.shields.io/badge/Dart-v3.5.3-04599C"/></a>
<a href="https://github.com/AmosHuKe/Mood-Example/blob/main/LICENSE"><img alt="BSD-3-Clause License" src="https://img.shields.io/badge/License-BSD--3--Clause-green"/></a>
</p>

Expand Down Expand Up @@ -100,12 +100,12 @@

Windows:
```
[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [版本 10.0.22621.3007], locale zh-CN)
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [版本 10.0.22621.3007], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5)
[√] Android Studio (version 2024.1)
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
[√] Android Studio (version 2024.2)
[√] IntelliJ IDEA Ultimate Edition (version 2024.2)
[√] VS Code (version 1.92.0)
[√] VS Code (version 1.94.2)
```

macOS:
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
android {
namespace = "com.example.moodexample"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
ndkVersion = "25.1.8937393"

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
6 changes: 2 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
allprojects {
repositories {
// google()
// mavenCentral()
maven{ url "https://maven.aliyun.com/repository/public" }
maven{ url "https://maven.aliyun.com/repository/google" }
google()
mavenCentral()
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
11 changes: 4 additions & 7 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ pluginManagement {
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

repositories {
// google()
// mavenCentral()
// gradlePluginPortal()
maven{ url "https://maven.aliyun.com/repository/public" }
maven{ url "https://maven.aliyun.com/repository/google" }
maven{ url "https://maven.aliyun.com/repository/gradle-plugin" }
google()
mavenCentral()
gradlePluginPortal()
}
}

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "com.android.application" version "8.3.2" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}

Expand Down
46 changes: 46 additions & 0 deletions lib/db/database/mood_info.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/// 心情详细内容表
class MoodInfo {
const MoodInfo._();

/// 表名称
static const String tableName = 'mood_info';

/// 字段名
/// 心情ID
static const String mood_id = 'mood_id';

/// 图标
static const String icon = 'icon';

/// 心情(标题)
static const String title = 'title';

/// 心情程度分数
static const String score = 'score';

/// 心情内容
static const String content = 'content';

/// 创建时间
static const String create_time = 'create_time';

/// 修改时间
static const String update_time = 'update_time';

/// 删除数据库
static const String dropTable = 'DROP TABLE IF EXISTS $tableName';

/// 创建数据库
static const String createTable = '''
CREATE TABLE $tableName (
$mood_id INTEGER PRIMARY KEY,
$icon TEXT NOT NULL,
$title TEXT NOT NULL,
$score INT NOT NULL,
$content TEXT NULL,
$create_time TEXT NOT NULL,
$update_time TEXT NOT NULL
);
''';
}
30 changes: 30 additions & 0 deletions lib/db/database/mood_info_category.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/// 心情类别表
class MoodInfoCategory {
const MoodInfoCategory._();

/// 表名称
static const String tableName = 'mood_info_category';

/// 字段名
/// 类别ID
static const String category_id = 'category_id';

/// 类别图标
static const String icon = 'icon';

/// 类别名称标题
static const String title = 'title';

/// 删除数据库
static const String dropTable = 'DROP TABLE IF EXISTS $tableName';

/// 创建数据库
static const String createTable = '''
CREATE TABLE $tableName (
$category_id INTEGER PRIMARY KEY,
$icon TEXT NOT NULL,
$title TEXT NOT NULL
);
''';
}
44 changes: 0 additions & 44 deletions lib/db/database/table_mood_info.dart

This file was deleted.

28 changes: 0 additions & 28 deletions lib/db/database/table_mood_info_category.dart

This file was deleted.

Loading

0 comments on commit f05343d

Please sign in to comment.