ソースを参照

Merge remote-tracking branch 'origin/1.22.0_master' into 1.22.0_master

tags/0.0.9+10^0
PH2 3年前
コミット
a6bfc7e3b7
10個のファイルの変更69行の追加39行の削除
  1. +1
    -1
      android/build.gradle
  2. +27
    -26
      example/android/app/build.gradle
  3. +0
    -0
      example/android/app/libs/AMap_Location_V4.9.0_20200228.jar
  4. +6
    -6
      example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java
  5. +7
    -2
      example/lib/main.dart
  6. +3
    -1
      example/pubspec.yaml
  7. +2
    -0
      lib/dialog/global_dialog/activity_dialog/activity_dialog.dart
  8. +5
    -1
      lib/pages/goods_share_page/goods_share_image/goods_share_image.dart
  9. +14
    -2
      lib/pages/launch_page/launch_page.dart
  10. +4
    -0
      lib/utils/contants.dart

+ 1
- 1
android/build.gradle ファイルの表示

@@ -33,6 +33,6 @@ android {
}

dependencies {
// implementation 'com.amap.api:location:5.2.0'
}
}

+ 27
- 26
example/android/app/build.gradle ファイルの表示

@@ -54,7 +54,7 @@ android {
ndk {
//选择要添加的对应cpu类型的.so库。
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a'
//abiFilters 'armeabi-v7a','x86_64','arm64-v8a'
// abiFilters 'armeabi-v7a','x86_64'
}
}

@@ -109,19 +109,19 @@ android {


// 应用信息配置
// productFlavors {
// // 智夜生活
// zhiying {
// applicationId "cn.zhios.zhiying"
// versionCode 57
// dimension "app"
// versionName '1.3.17'
// // 签名信息
// signingConfig signingConfigs.zhiying
// }
// }
//
// // 打包脚本
productFlavors {
// 智夜生活
zhiying {
applicationId "cn.zhios.zhiying"
versionCode 59
dimension "app"
versionName '1.3.19'
// 签名信息
signingConfig signingConfigs.zhiying
}
}
// 打包脚本
// android.applicationVariants.all { variant ->
// if (variant.buildType.name != "debug") {
// variant.getPackageApplicationProvider().get().outputDirectory = new File(project.rootDir.absolutePath + "/app/build/outputs/apk")
@@ -136,18 +136,18 @@ android {
// }
// }
// }
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.3'
}
}
resolutionStrategy.force 'com.android.support:support-v4:28.0.0'
}
}
//
// configurations.all {
// resolutionStrategy.eachDependency { DependencyResolveDetails details ->
// def requested = details.requested
// if (requested.group == 'com.android.support') {
// if (!requested.name.startsWith("multidex")) {
// details.useVersion '28.0.3'
// }
// }
// resolutionStrategy.force 'com.android.support:support-v4:28.0.0'
// }
// }


}
@@ -186,6 +186,7 @@ dependencies {
implementation 'com.alibaba.sdk.android:nb_trade:4.0.0.16@aar'
implementation 'com.alibaba:fastjson:1.2.41@jar'

implementation 'com.amap.api:location:5.2.0'

}



android/libs/AMap_Location_V4.9.0_20200228.jar → example/android/app/libs/AMap_Location_V4.9.0_20200228.jar ファイルの表示


+ 6
- 6
example/android/app/src/main/java/cn/zhios/zhiying_base_widget_example/MainActivity.java ファイルの表示

@@ -155,9 +155,9 @@ public class MainActivity extends FlutterActivity implements ZhiyingFlutterCommN
public Map getSetting() {
Map map = new HashMap();
// ///测试
// map.put("domain", "http://inapi.izhyin.cn/");//"http://120.76.175.204:8989");http://47.114.51.254:80 http://inapi.izhyin.cn/
// map.put("master_id", "123456");
// map.put("secret_key", "123456");
map.put("domain", "http://inapi.izhyin.cn/");//"http://120.76.175.204:8989");http://47.114.51.254:80 http://inapi.izhyin.cn/
map.put("master_id", "123456");
map.put("secret_key", "123456");

///正式
// map.put("domain", "http://api.zhios.cn/");//45678910,api.zhios.cn84198689
@@ -165,9 +165,9 @@ public class MainActivity extends FlutterActivity implements ZhiyingFlutterCommN
// map.put("secret_key", "123456");

//客户测试
map.put("domain", "http://admin.asmetymj.com/");//45678910,api.zhios.cn84198689
map.put("master_id", "32053480");
map.put("secret_key", "123456");
// map.put("domain", "http://api.zhios.cn/");//45678910,api.zhios.cn84198689
// map.put("master_id", "13376168");
// map.put("secret_key", "123456");

// map.put("token", "123465");
return map;


+ 7
- 2
example/lib/main.dart ファイルの表示

@@ -23,6 +23,7 @@ import 'package:zhiying_member_upgrade/register.dart';
import 'package:zhiying_equity_card/zhiying_equity_card.dart';
import 'package:zhiying_official/register.dart';
import 'package:zhiying_base_widget/zhiying_base_widget.dart';
import 'package:zhiying_acquisition/register.dart';

void main() {
FlutterError.onError = (FlutterErrorDetails details) {
@@ -65,6 +66,7 @@ class _MyAppState extends State<MyApp> {
MemberUpgradeRegister.init();
EquityCardRegister.init();
OfficialRegister.init();
AcquisitionRegister.init();
print('初始化百川');
FlutterAlibc.initAlibc(version: "", appName: "").then((result) {
print("白川" + '${result.errorCode} ${result.errorMessage}');
@@ -72,9 +74,12 @@ class _MyAppState extends State<MyApp> {
MobPushUtil.setCanPush();

EventUtil.instance.on().listen((event) {});
const bool inProduction = const bool.fromEnvironment("dart.vm.product");
if (!inProduction) {
//debug app不更新 app更新插件
AppUpdateUtil.initXUpdate();
}

// app更新插件
AppUpdateUtil.initXUpdate();
}

@override


+ 3
- 1
example/pubspec.yaml ファイルの表示

@@ -32,6 +32,8 @@ dev_dependencies:
path: ../../zhiying_equity_card
zhiying_official:
path: ../../zhiying_official
zhiying_acquisition:
path: ../../zhiying_acquisition
#微信导师
zhiying_wechat_teacher:
#path: ../zhiying_wechat_teacher
@@ -42,7 +44,7 @@ dev_dependencies:
zhiying_moments:
#path: ../zhiying_moments
git:
ref: 0.2.0
ref: 0.2.2
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git
#会员升级
zhiying_member_upgrade:


+ 2
- 0
lib/dialog/global_dialog/activity_dialog/activity_dialog.dart ファイルの表示

@@ -14,6 +14,8 @@ class ActivityDialog extends StatelessWidget {

const ActivityDialog(this.model, {Key key}) : super(key: key);



static Future show(BuildContext context) async {
try {
Map result = await NetUtil.post('/api/v1/mod/pub.flutter.current_activity_dialog', method: NetMethod.GET);


+ 5
- 1
lib/pages/goods_share_page/goods_share_image/goods_share_image.dart ファイルの表示

@@ -368,7 +368,7 @@ class _GoodsShareImageContentState extends State<_GoodsShareImageContent> with A
Loading.show(context);
ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);
Uint8List pngBytes = byteData.buffer.asUint8List();
File file = await EncodeUtil.compressImage(context,images: pngBytes, size: 400);
File file = await EncodeUtil.compressImage(context, images: pngBytes, size: 400);
Loading.dismiss();
_shareModel.poster = file.readAsBytesSync();
}
@@ -406,6 +406,10 @@ class _GoodsShareImageContentState extends State<_GoodsShareImageContent> with A
// ============= 复制文案 =================
Clipboard.setData(ClipboardData(text: _content));

if(_shareModel.image==null){
_shareModel.image=List();
}

showCupertinoModalPopup(
context: context,
builder: (context) => ShareAlert(


+ 14
- 2
lib/pages/launch_page/launch_page.dart ファイルの表示

@@ -40,12 +40,10 @@ class LaunchPage extends StatefulWidget {
class _LaunchPageState extends State<LaunchPage> with TickerProviderStateMixin {
final GlobalKey navigatorKey = new GlobalKey();


int showTime = 0;

@override
void initState() {

validateInit();
super.initState();
}
@@ -56,6 +54,20 @@ class _LaunchPageState extends State<LaunchPage> with TickerProviderStateMixin {
// I am connected to a wifi network.
Logger.debug('ConnectivityResult.wifi');
print('ConnectivityResult.wifi');

///检查是否覆盖安装
//取masterId
String lasterMasterId = await SharedPreferencesUtil.getStringValue(Constants.masterId, defaultVal: "1");
Map setting = await NativeUtil.getSetting();
String masterId = setting['master_id'];
if (lasterMasterId != "1") {
if (masterId != lasterMasterId) {
await SharedPreferencesUtil.clean();
}
}

SharedPreferencesUtil.setStringValue(Constants.masterId, masterId);

Application.init().then((_) async {
///引导页
PackageInfo packageInfo = await PackageInfo.fromPlatform();


+ 4
- 0
lib/utils/contants.dart ファイルの表示

@@ -29,4 +29,8 @@ class Constants {

//==============================版本号,控制引导页显示===================================
static String versionNumber = "versionNumber";


///masterId
static String masterId="sp_master_id";
}

読み込み中…
キャンセル
保存