kidd3166 hace 1 año
padre
commit
b644e7668d

+ 2 - 0
lib/application.dart

@@ -9,10 +9,12 @@ import 'package:flutter/material.dart';
 import 'package:logger/logger.dart';
 import 'package:package_info/package_info.dart';
 import 'package:permission_handler/permission_handler.dart';
+import 'package:sport/config.dart' as env;
 
 const bool inProduction = const bool.fromEnvironment("dart.vm.product");
 bool isDebugShoe = false;
 String shoeVersion = "";
+env.Config config = env.Config.ENV_DEV;
 
 bool openSocial() {
   // return false;

+ 2 - 0
lib/config_inject.dart

@@ -9,6 +9,7 @@ import 'package:get_it/get_it.dart';
 import 'package:package_info/package_info.dart';
 import 'package:shared_preferences/shared_preferences.dart';
 import 'package:sport/application.dart';
+import 'package:sport/application.dart' as app;
 import 'package:sport/config.dart';
 import 'package:sport/provider/bluetooth.dart';
 import 'package:sport/provider/game_info_model.dart';
@@ -57,6 +58,7 @@ class ConfigInject {
 
   void inject(Config config) {
     isDebugShoe = config.debug;
+    app.config = config;
 
     GetIt getIt = GetIt.instance;
 

+ 2 - 0
lib/pages/game/game_detail.dart

@@ -175,6 +175,8 @@ Future<bool> startGame(BuildContext context, GameInfoData? game, {String? invite
             : true
         : false,
     'debug': isDebugShoe,
+    'server': config.baseUrl,
+    'app': 'com.hiyd.footring',
   };
 
   print("start game $gameType params: $params");

+ 1 - 1
plugin/shoes_sdk/ios/Classes/include/FingerGuessing.h

@@ -80,7 +80,7 @@ private:
 	int right_zupt_extension_time = 0;
 
 
-	const int rssi_threshold = 30;
+	const int rssi_threshold = 25;
 
 
 };

+ 1 - 1
plugin/shoes_sdk/ios/Classes/include/pub.h

@@ -44,7 +44,7 @@ using namespace std;
 
 #define PRESS_MIN 41000
 
-#define GAME_VERSION "0.6.10"
+#define GAME_VERSION "0.6.100"
 
 enum CMD_MOTION
 {