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:41:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a74a3a7f5bf6d3581b3d909df8aabf6dc16b0524
a74a3a7f
1 parent
c69ddf06
【优化】修改获取包信息时机
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
lib/auto_track/config/manager.dart
lib/auto_track/config/manager.dart
View file @
a74a3a7
...
...
@@ -21,11 +21,7 @@ class AutoTrackConfigManager {
static
final
AutoTrackConfigManager
instance
=
AutoTrackConfigManager
.
_
();
AutoTrackConfigManager
.
_
()
{
PackageInfo
.
fromPlatform
().
then
(
(
value
)
{
_appVersion
=
value
.
version
;
_appName
=
value
.
appName
;
_pkgName
=
value
.
packageName
;
});
}
String
_appVersion
=
''
;
...
...
@@ -91,6 +87,11 @@ class AutoTrackConfigManager {
void
enableAutoTrack
(
bool
enable
)
{
_autoTrackEnable
=
enable
;
if
(
enable
){
PackageInfo
.
fromPlatform
().
then
(
(
value
)
{
_appVersion
=
value
.
version
;
_appName
=
value
.
appName
;
_pkgName
=
value
.
packageName
;
});
DeviceInfoPlugin
().
deviceInfo
.
then
((
value
)
{
_deviceInfo
=
value
.
data
;
_baseDeviceInfo
=
value
;
...
...
Please
register
or
login
to post a comment