@@ -33,6 +33,6 @@ android { | |||||
} | } | ||||
dependencies { | dependencies { | ||||
// implementation 'com.amap.api:location:5.2.0' | |||||
} | } | ||||
} | } |
@@ -54,7 +54,7 @@ android { | |||||
ndk { | ndk { | ||||
//选择要添加的对应cpu类型的.so库。 | //选择要添加的对应cpu类型的.so库。 | ||||
abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a' | 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 -> | // android.applicationVariants.all { variant -> | ||||
// if (variant.buildType.name != "debug") { | // if (variant.buildType.name != "debug") { | ||||
// variant.getPackageApplicationProvider().get().outputDirectory = new File(project.rootDir.absolutePath + "/app/build/outputs/apk") | // 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.sdk.android:nb_trade:4.0.0.16@aar' | ||||
implementation 'com.alibaba:fastjson:1.2.41@jar' | implementation 'com.alibaba:fastjson:1.2.41@jar' | ||||
implementation 'com.amap.api:location:5.2.0' | |||||
} | } | ||||
@@ -155,9 +155,9 @@ public class MainActivity extends FlutterActivity implements ZhiyingFlutterCommN | |||||
public Map getSetting() { | public Map getSetting() { | ||||
Map map = new HashMap(); | 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 | // 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("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"); | // map.put("token", "123465"); | ||||
return map; | return map; | ||||
@@ -23,6 +23,7 @@ import 'package:zhiying_member_upgrade/register.dart'; | |||||
import 'package:zhiying_equity_card/zhiying_equity_card.dart'; | import 'package:zhiying_equity_card/zhiying_equity_card.dart'; | ||||
import 'package:zhiying_official/register.dart'; | import 'package:zhiying_official/register.dart'; | ||||
import 'package:zhiying_base_widget/zhiying_base_widget.dart'; | import 'package:zhiying_base_widget/zhiying_base_widget.dart'; | ||||
import 'package:zhiying_acquisition/register.dart'; | |||||
void main() { | void main() { | ||||
FlutterError.onError = (FlutterErrorDetails details) { | FlutterError.onError = (FlutterErrorDetails details) { | ||||
@@ -65,6 +66,7 @@ class _MyAppState extends State<MyApp> { | |||||
MemberUpgradeRegister.init(); | MemberUpgradeRegister.init(); | ||||
EquityCardRegister.init(); | EquityCardRegister.init(); | ||||
OfficialRegister.init(); | OfficialRegister.init(); | ||||
AcquisitionRegister.init(); | |||||
print('初始化百川'); | print('初始化百川'); | ||||
FlutterAlibc.initAlibc(version: "", appName: "").then((result) { | FlutterAlibc.initAlibc(version: "", appName: "").then((result) { | ||||
print("白川" + '${result.errorCode} ${result.errorMessage}'); | print("白川" + '${result.errorCode} ${result.errorMessage}'); | ||||
@@ -72,9 +74,12 @@ class _MyAppState extends State<MyApp> { | |||||
MobPushUtil.setCanPush(); | MobPushUtil.setCanPush(); | ||||
EventUtil.instance.on().listen((event) {}); | 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 | @override | ||||
@@ -32,6 +32,8 @@ dev_dependencies: | |||||
path: ../../zhiying_equity_card | path: ../../zhiying_equity_card | ||||
zhiying_official: | zhiying_official: | ||||
path: ../../zhiying_official | path: ../../zhiying_official | ||||
zhiying_acquisition: | |||||
path: ../../zhiying_acquisition | |||||
#微信导师 | #微信导师 | ||||
zhiying_wechat_teacher: | zhiying_wechat_teacher: | ||||
#path: ../zhiying_wechat_teacher | #path: ../zhiying_wechat_teacher | ||||
@@ -42,7 +44,7 @@ dev_dependencies: | |||||
zhiying_moments: | zhiying_moments: | ||||
#path: ../zhiying_moments | #path: ../zhiying_moments | ||||
git: | git: | ||||
ref: 0.2.0 | |||||
ref: 0.2.2 | |||||
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git | url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git | ||||
#会员升级 | #会员升级 | ||||
zhiying_member_upgrade: | zhiying_member_upgrade: | ||||
@@ -14,6 +14,8 @@ class ActivityDialog extends StatelessWidget { | |||||
const ActivityDialog(this.model, {Key key}) : super(key: key); | const ActivityDialog(this.model, {Key key}) : super(key: key); | ||||
static Future show(BuildContext context) async { | static Future show(BuildContext context) async { | ||||
try { | try { | ||||
Map result = await NetUtil.post('/api/v1/mod/pub.flutter.current_activity_dialog', method: NetMethod.GET); | Map result = await NetUtil.post('/api/v1/mod/pub.flutter.current_activity_dialog', method: NetMethod.GET); | ||||
@@ -368,7 +368,7 @@ class _GoodsShareImageContentState extends State<_GoodsShareImageContent> with A | |||||
Loading.show(context); | Loading.show(context); | ||||
ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png); | ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png); | ||||
Uint8List pngBytes = byteData.buffer.asUint8List(); | 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(); | Loading.dismiss(); | ||||
_shareModel.poster = file.readAsBytesSync(); | _shareModel.poster = file.readAsBytesSync(); | ||||
} | } | ||||
@@ -406,6 +406,10 @@ class _GoodsShareImageContentState extends State<_GoodsShareImageContent> with A | |||||
// ============= 复制文案 ================= | // ============= 复制文案 ================= | ||||
Clipboard.setData(ClipboardData(text: _content)); | Clipboard.setData(ClipboardData(text: _content)); | ||||
if(_shareModel.image==null){ | |||||
_shareModel.image=List(); | |||||
} | |||||
showCupertinoModalPopup( | showCupertinoModalPopup( | ||||
context: context, | context: context, | ||||
builder: (context) => ShareAlert( | builder: (context) => ShareAlert( | ||||
@@ -40,12 +40,10 @@ class LaunchPage extends StatefulWidget { | |||||
class _LaunchPageState extends State<LaunchPage> with TickerProviderStateMixin { | class _LaunchPageState extends State<LaunchPage> with TickerProviderStateMixin { | ||||
final GlobalKey navigatorKey = new GlobalKey(); | final GlobalKey navigatorKey = new GlobalKey(); | ||||
int showTime = 0; | int showTime = 0; | ||||
@override | @override | ||||
void initState() { | void initState() { | ||||
validateInit(); | validateInit(); | ||||
super.initState(); | super.initState(); | ||||
} | } | ||||
@@ -56,6 +54,20 @@ class _LaunchPageState extends State<LaunchPage> with TickerProviderStateMixin { | |||||
// I am connected to a wifi network. | // I am connected to a wifi network. | ||||
Logger.debug('ConnectivityResult.wifi'); | Logger.debug('ConnectivityResult.wifi'); | ||||
print('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 { | Application.init().then((_) async { | ||||
///引导页 | ///引导页 | ||||
PackageInfo packageInfo = await PackageInfo.fromPlatform(); | PackageInfo packageInfo = await PackageInfo.fromPlatform(); | ||||
@@ -29,4 +29,8 @@ class Constants { | |||||
//==============================版本号,控制引导页显示=================================== | //==============================版本号,控制引导页显示=================================== | ||||
static String versionNumber = "versionNumber"; | static String versionNumber = "versionNumber"; | ||||
///masterId | |||||
static String masterId="sp_master_id"; | |||||
} | } |