Skip to content

Commit

Permalink
feat: del xddir add telebook
Browse files Browse the repository at this point in the history
  • Loading branch information
BenderBlog committed Aug 10, 2023
1 parent 34160cf commit 9df7535
Show file tree
Hide file tree
Showing 19 changed files with 282 additions and 1,190 deletions.
11 changes: 11 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,15 @@ flutter {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.android.material:material:1.9.0'
}

ext.abiCodes = ["x86_64": 1, "armeabi-v7a": 2, "arm64-v8a": 3]
import com.android.build.OutputFile
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def abiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
if (abiVersionCode != null) {
output.versionCodeOverride = variant.versionCode * 10 + abiVersionCode
}
}
}
22 changes: 22 additions & 0 deletions lib/model/telephone.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2023 BenderBlog Rodriguez.
// SPDX-License-Identifier: MPL-2.0

class TeleyInformation {
TeleyInformation({
required this.title,
this.northAddress,
this.southAddress,
this.northTeley,
this.southTeley,
this.isNorth = false,
this.isSouth = false,
});

String title;
bool? isNorth;
bool? isSouth;
String? northAddress;
String? southAddress;
String? northTeley;
String? southTeley;
}
95 changes: 0 additions & 95 deletions lib/model/xidian_directory/cafeteria_window_item.dart

This file was deleted.

56 changes: 0 additions & 56 deletions lib/model/xidian_directory/cafeteria_window_item.g.dart

This file was deleted.

46 changes: 0 additions & 46 deletions lib/model/xidian_directory/shop_information.dart

This file was deleted.

46 changes: 0 additions & 46 deletions lib/model/xidian_directory/shop_information.g.dart

This file was deleted.

52 changes: 0 additions & 52 deletions lib/model/xidian_directory/telephone.dart

This file was deleted.

10 changes: 1 addition & 9 deletions lib/page/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:watermeter/page/homepage/homepage.dart';
import 'package:watermeter/page/setting/setting.dart';
import 'package:watermeter/page/widget.dart';
import 'package:watermeter/page/xdu_planet/xdu_planet_page.dart';
import 'package:watermeter/page/xidian_directory/xidian_directory.dart';
import 'package:watermeter/repository/network_session.dart';

class PageInformation {
Expand Down Expand Up @@ -39,18 +38,12 @@ class _HomePageState extends State<HomePage> {
),
PageInformation(
index: 1,
name: "西电目录",
icon: Icons.store,
iconChoice: Icons.store_outlined,
),
PageInformation(
index: 2,
name: "XDU Planet",
icon: Icons.rss_feed,
iconChoice: Icons.rss_feed_outlined,
),
PageInformation(
index: 3,
index: 2,
name: "设置",
icon: Icons.settings,
iconChoice: Icons.settings_outlined,
Expand All @@ -59,7 +52,6 @@ class _HomePageState extends State<HomePage> {

static final _page = [
const MainPage(),
const XidianDirWindow(),
const XDUPlanetPage(),
const SettingWindow(),
];
Expand Down

0 comments on commit 9df7535

Please sign in to comment.