hyzp_ybqx-Commit065:为实现套APP适应多个区县做以下修改,还无法读取统计数据:

一套APP适应多个区县
(1)修改版本号:version: 1.4.8+20220102
R:\FlutterProject\FlutterProject51-hyzp_ybqx\hyzp_ybqx\pubspec.yaml
(2)全局替换(158处),并 flutter pub upgrade
hyzp_ybqx511528_xingwen
为
hyzp_ybqx
(3)将下面文件中的“宜宾市兴文黑烟抓拍”替换为“黑烟车抓拍系統”
R:\FlutterProject\FlutterProject51-hyzp_ybqx\hyzp_ybqx\android\app\src\main\AndroidManifest.xml
(4)修改区县接口信息:
R:\FlutterProject\FlutterProject51-hyzp_ybqx\hyzp_ybqx\lib\components\commonFun.dart
(5)运行 hyzp_ybqx.images_copy.cmd,自动拷贝App的Android、Flutter启动图片
r:\FlutterProject\FlutterProject51-hyzp_ybqx\hyzp_ybqx.images.switch\hyzp_ybqx.images_copy.cmd
(6)关闭Android Studio再重新启动,在Android Studio终端窗口,切换到项目的 lib 目录下,运行 flutter clean
(7)运行调试App,确定区县中心坐标数据:center_latitude、center_longitude
R:\FlutterProject\FlutterProject51-hyzp_ybqx\hyzp_ybqx\lib\components\commonFun.dart
This commit is contained in:
WinUser01
2022-01-02 23:04:07 +08:00
parent cbafb57ce2
commit 66ba345393
67 changed files with 210 additions and 211 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.flutter.hyzp_ybqx511528_xingwen"
applicationId "com.flutter.hyzp_ybqx"
minSdkVersion 21
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
+3 -3
View File
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.flutter.hyzp_ybqx511528_xingwen">
package="com.flutter.hyzp_ybqx">
<!-- * What went wrong:
Execution failed for task ':app:generateDebugBuildConfig'.
> org.xml.sax.SAXParseException; systemId: file:/R:/FlutterProject/FlutterProject33/hyzp_ybqx/android/app/src/main/AndroidManifest.xml; lineNumber: 69; columnNumber: 48; ��Ԫ
@@ -35,9 +35,9 @@
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name="com.flutter.hyzp_ybqx511528_xingwen.MyApplication"
android:name="com.flutter.hyzp_ybqx.MyApplication"
android:icon="@mipmap/ic_launcher"
android:label="宜宾市兴文黑烟抓拍"
android:label="黑烟车抓拍系統"
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true"
tools:replace="android:label">
@@ -1,4 +1,4 @@
package com.flutter.hyzp_ybqx511528_xingwen;
package com.flutter.hyzp_ybqx;
import io.flutter.embedding.android.FlutterActivity;
@@ -1,4 +1,4 @@
package com.flutter.hyzp_ybqx511528_xingwen;
package com.flutter.hyzp_ybqx;
import com.baidu.flutter_bmfbase.BmfMapApplication;
@@ -30,7 +30,7 @@
<item android:top="37.5dp">
<bitmap
android:gravity="top"
android:src="@mipmap/hyzp_ybqx511528_xingwen_launche" />
android:src="@mipmap/hyzp_ybqx_launche" />
</item>
</layer-list>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 857 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

+1 -1
View File
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.flutter.hyzp_ybqx511528_xingwen">
package="com.flutter.hyzp_ybqx">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->