Browse Source

gbk转码依赖更新;

编译运行失败解决;
wr_2024_invoice
wurong 6 months ago
parent
commit
028925e10a
  1. 4
      android/gradle.properties
  2. 2
      lib/retrofit/retrofit_api.dart
  3. 28
      pubspec.lock
  4. 6
      pubspec.yaml

4
android/gradle.properties

@ -1,8 +1,10 @@
#org.gradle.jvmargs=-Xmx1536M #org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx4096m #org.gradle.jvmargs=-Xmx4096m
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
MobSDK.mobEnv=x MobSDK.mobEnv=x
MobSDK.spEdition=FP MobSDK.spEdition=FP
android.injected.testOnly=false android.injected.testOnly=false
org.gradle.jvmargs=-Xmx1536M --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED

2
lib/retrofit/retrofit_api.dart

@ -2,11 +2,11 @@ import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:fast_gbk/fast_gbk.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart'; import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:gbk2utf8/gbk2utf8.dart';
import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/retrofit/data/activity.dart'; import 'package:huixiang/retrofit/data/activity.dart';
import 'package:huixiang/retrofit/data/article.dart'; import 'package:huixiang/retrofit/data/article.dart';

28
pubspec.lock

@ -217,6 +217,14 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.3.1" version: "1.3.1"
fast_gbk:
dependency: "direct main"
description:
name: fast_gbk
sha256: "3f0dc0309986f615404ea8d1fccf00a535dc00ee90b88d71492866bd95586489"
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.0"
ffi: ffi:
dependency: transitive dependency: transitive
description: description:
@ -389,22 +397,14 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "9.2.0" version: "9.2.0"
gbk2utf8:
dependency: "direct main"
description:
name: gbk2utf8
sha256: "83a255e974b970d20538c1661bd5b7ee9120e106fbb10478cffcd515ba480e34"
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.1"
geolocator: geolocator:
dependency: "direct main" dependency: "direct main"
description: description:
name: geolocator name: geolocator
sha256: "01fed879aa87185efebfb1d23de619077bcc7d83ffdebd0aad6f74392f84fb40" sha256: "3018f6a37b1ec3c9dfb1adaa1ce406c0522c293a1a623ead94c32cd93a255fd3"
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "6.2.1" version: "6.1.12"
geolocator_platform_interface: geolocator_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -413,14 +413,6 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.0.9" version: "1.0.9"
geolocator_web:
dependency: transitive
description:
name: geolocator_web
sha256: "9a7f3c5061fb8fb26103fc67e07343eebd4d3b15d18c6d75766e2a1a8b0618f8"
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.1"
gradient_widgets: gradient_widgets:
dependency: "direct main" dependency: "direct main"
description: description:

6
pubspec.yaml

@ -3,7 +3,7 @@ description: 海峡姐妹.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 3.2.22+65 version: 3.2.31+66
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"
@ -41,7 +41,7 @@ dependencies:
permission_handler: ^5.0.1+1 permission_handler: ^5.0.1+1
geolocator: ^6.2.1 geolocator: ^6.1.12
# location: ^3.2.4 # location: ^3.2.4
dio: ^3.0.10 dio: ^3.0.10
@ -56,7 +56,7 @@ dependencies:
flutter_screenutil: 5.0.0+1 flutter_screenutil: 5.0.0+1
bubble_tab_indicator: ^0.1.6 bubble_tab_indicator: ^0.1.6
gbk2utf8: ^1.0.1 fast_gbk: ^1.0.0
visibility_detector: ^0.3.3 visibility_detector: ^0.3.3

Loading…
Cancel
Save