Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
auto_track_plugin
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
顾海波
2025-06-12 15:29:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c69ddf06777daada60f49133771f7afa73634712
c69ddf06
1 parent
c7f73288
【优化】修改获取设备信息时机
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
lib/auto_track/config/manager.dart
lib/auto_track/config/manager.dart
View file @
c69ddf0
...
...
@@ -26,11 +26,6 @@ class AutoTrackConfigManager {
_appName
=
value
.
appName
;
_pkgName
=
value
.
packageName
;
});
DeviceInfoPlugin
().
deviceInfo
.
then
((
value
)
{
_deviceInfo
=
value
.
data
;
_baseDeviceInfo
=
value
;
// _updateDeviceId();
});
}
String
_appVersion
=
''
;
...
...
@@ -96,7 +91,11 @@ class AutoTrackConfigManager {
void
enableAutoTrack
(
bool
enable
)
{
_autoTrackEnable
=
enable
;
if
(
enable
){
_updateDeviceId
();
DeviceInfoPlugin
().
deviceInfo
.
then
((
value
)
{
_deviceInfo
=
value
.
data
;
_baseDeviceInfo
=
value
;
_updateDeviceId
();
});
}
//获取token
getToken
(
false
);
...
...
Please
register
or
login
to post a comment