Skip to content

Commit c3d48d8

Browse files
committed
init: 构建了基础项目结构
0 parents  commit c3d48d8

36 files changed

+1583
-0
lines changed

.gitignore

+159
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
# Do not remove or rename entries in this file, only add new ones
2+
# See https://github.com/flutter/flutter/issues/128635 for more context.
3+
4+
# Miscellaneous
5+
*.class
6+
*.lock
7+
*.log
8+
*.pyc
9+
*.swp
10+
.DS_Store
11+
.atom/
12+
.buildlog/
13+
.history
14+
.svn/
15+
16+
# IntelliJ related
17+
*.iml
18+
*.ipr
19+
*.iws
20+
.idea/
21+
22+
# Visual Studio Code related
23+
.classpath
24+
.project
25+
.settings/
26+
.vscode/*
27+
28+
# Flutter repo-specific
29+
/bin/cache/
30+
/bin/internal/bootstrap.bat
31+
/bin/internal/bootstrap.sh
32+
/bin/mingit/
33+
/dev/benchmarks/mega_gallery/
34+
/dev/bots/.recipe_deps
35+
/dev/bots/android_tools/
36+
/dev/devicelab/ABresults*.json
37+
/dev/docs/doc/
38+
/dev/docs/api_docs.zip
39+
/dev/docs/flutter.docs.zip
40+
/dev/docs/lib/
41+
/dev/docs/pubspec.yaml
42+
/dev/integration_tests/**/xcuserdata
43+
/dev/integration_tests/**/Pods
44+
/packages/flutter/coverage/
45+
version
46+
analysis_benchmark.json
47+
48+
# packages file containing multi-root paths
49+
.packages.generated
50+
51+
# Flutter/Dart/Pub related
52+
**/doc/api/
53+
.dart_tool/
54+
.flutter-plugins
55+
.flutter-plugins-dependencies
56+
**/generated_plugin_registrant.dart
57+
.packages
58+
.pub-preload-cache/
59+
.pub-cache/
60+
.pub/
61+
build/
62+
flutter_*.png
63+
linked_*.ds
64+
unlinked.ds
65+
unlinked_spec.ds
66+
67+
# Android related
68+
**/android/**/gradle-wrapper.jar
69+
.gradle/
70+
**/android/captures/
71+
**/android/gradlew
72+
**/android/gradlew.bat
73+
**/android/local.properties
74+
**/android/**/GeneratedPluginRegistrant.java
75+
**/android/key.properties
76+
*.jks
77+
78+
# iOS/XCode related
79+
**/ios/**/*.mode1v3
80+
**/ios/**/*.mode2v3
81+
**/ios/**/*.moved-aside
82+
**/ios/**/*.pbxuser
83+
**/ios/**/*.perspectivev3
84+
**/ios/**/*sync/
85+
**/ios/**/.sconsign.dblite
86+
**/ios/**/.tags*
87+
**/ios/**/.vagrant/
88+
**/ios/**/DerivedData/
89+
**/ios/**/Icon?
90+
**/ios/**/Pods/
91+
**/ios/**/.symlinks/
92+
**/ios/**/profile
93+
**/ios/**/xcuserdata
94+
**/ios/.generated/
95+
**/ios/Flutter/.last_build_id
96+
**/ios/Flutter/App.framework
97+
**/ios/Flutter/Flutter.framework
98+
**/ios/Flutter/Flutter.podspec
99+
**/ios/Flutter/Generated.xcconfig
100+
**/ios/Flutter/ephemeral
101+
**/ios/Flutter/app.flx
102+
**/ios/Flutter/app.zip
103+
**/ios/Flutter/flutter_assets/
104+
**/ios/Flutter/flutter_export_environment.sh
105+
**/ios/ServiceDefinitions.json
106+
**/ios/Runner/GeneratedPluginRegistrant.*
107+
108+
# macOS
109+
**/Flutter/ephemeral/
110+
**/Pods/
111+
**/macos/Flutter/GeneratedPluginRegistrant.swift
112+
**/macos/Flutter/ephemeral
113+
**/xcuserdata/
114+
115+
# Windows
116+
**/windows/flutter/generated_plugin_registrant.cc
117+
**/windows/flutter/generated_plugin_registrant.h
118+
**/windows/flutter/generated_plugins.cmake
119+
120+
# Linux
121+
**/linux/flutter/generated_plugin_registrant.cc
122+
**/linux/flutter/generated_plugin_registrant.h
123+
**/linux/flutter/generated_plugins.cmake
124+
125+
# Coverage
126+
coverage/
127+
128+
# Symbols
129+
app.*.symbols
130+
131+
# Exceptions to above rules.
132+
!**/ios/**/default.mode1v3
133+
!**/ios/**/default.mode2v3
134+
!**/ios/**/default.pbxuser
135+
!**/ios/**/default.perspectivev3
136+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
137+
!/dev/ci/**/Gemfile.lock
138+
!.vscode/settings.json
139+
140+
## 上面的内容来自:https://github.com/flutter/flutter/blob/master/.gitignore
141+
142+
# 下面的内容是自己测试的
143+
144+
# 暂时不关注ios、web、windows、mocos、linux等的构建
145+
ios
146+
web
147+
windows
148+
macos
149+
linux
150+
151+
# 统计行插件自己生成的文件夹
152+
.VSCodeCounter
153+
154+
# 一些本地测试的组件页面等
155+
**/_self*
156+
**/*mock*
157+
**/*bak*
158+
**/*demo*
159+
**/*bugreport*

.metadata

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "761747bfc538b5af34aa0d3fac380f1bc331ec49"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
17+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
18+
- platform: android
19+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
20+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
21+
- platform: ios
22+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
23+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
24+
- platform: linux
25+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
26+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
27+
- platform: macos
28+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
29+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
30+
- platform: web
31+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
32+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
33+
- platform: windows
34+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
35+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SWMate
2+
3+
Smart Work Mate
4+
5+
一个包含极简的记账、幸运转盘随机菜品的日常生活工具,和使用 AI 大模型为基础的智能助手类 flutter 应用。
6+
7+
## Getting Started
8+
9+
This project is a starting point for a Flutter application.
10+
11+
A few resources to get you started if this is your first Flutter project:
12+
13+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
14+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
15+
16+
For help getting started with Flutter development, view the
17+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
18+
samples, guidance on mobile development, and a full API reference.

analysis_options.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

android/app/build.gradle

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id "dev.flutter.flutter-gradle-plugin"
6+
}
7+
8+
def localProperties = new Properties()
9+
def localPropertiesFile = rootProject.file("local.properties")
10+
if (localPropertiesFile.exists()) {
11+
localPropertiesFile.withReader("UTF-8") { reader ->
12+
localProperties.load(reader)
13+
}
14+
}
15+
16+
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
17+
if (flutterVersionCode == null) {
18+
flutterVersionCode = "1"
19+
}
20+
21+
def flutterVersionName = localProperties.getProperty("flutter.versionName")
22+
if (flutterVersionName == null) {
23+
flutterVersionName = "1.0"
24+
}
25+
26+
android {
27+
namespace = "com.swm.swmate"
28+
compileSdk = flutter.compileSdkVersion
29+
ndkVersion = flutter.ndkVersion
30+
31+
compileOptions {
32+
sourceCompatibility = JavaVersion.VERSION_1_8
33+
targetCompatibility = JavaVersion.VERSION_1_8
34+
}
35+
36+
// 在构建应用时打包压缩的原生库
37+
// https://developer.android.com/build/releases/past-releases/agp-4-2-0-release-notes?hl=zh-cn#compress-native-libs-dsl
38+
packagingOptions {
39+
jniLibs {
40+
useLegacyPackaging true
41+
}
42+
}
43+
44+
45+
defaultConfig {
46+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47+
applicationId = "com.swm.swmate"
48+
// You can update the following values to match your application needs.
49+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50+
51+
// minSdk = flutter.minSdkVersion
52+
minSdk 26
53+
targetSdk = flutter.targetSdkVersion
54+
versionCode = flutterVersionCode.toInteger()
55+
versionName = flutterVersionName
56+
}
57+
58+
buildTypes {
59+
release {
60+
// TODO: Add your own signing config for the release build.
61+
// Signing with the debug keys for now, so `flutter run --release` works.
62+
signingConfig = signingConfigs.debug
63+
}
64+
}
65+
}
66+
67+
flutter {
68+
source = "../.."
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>

0 commit comments

Comments
 (0)