File tree 3 files changed +11
-8
lines changed
shared/src/iosMain/kotlin/com/kgurgul/cpuinfo/data/provider
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 350
350
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
351
351
CODE_SIGN_IDENTITY = "Apple Development";
352
352
CODE_SIGN_STYLE = Automatic;
353
- CURRENT_PROJECT_VERSION = 3 ;
353
+ CURRENT_PROJECT_VERSION = 4 ;
354
354
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
355
355
DEVELOPMENT_TEAM = B6LJ2PS259;
356
356
ENABLE_PREVIEWS = YES;
369
369
"$(inherited)",
370
370
"@executable_path/Frameworks",
371
371
);
372
- MARKETING_VERSION = 1.1 .0;
372
+ MARKETING_VERSION = 1.2 .0;
373
373
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_ID}${TEAM_ID}";
374
374
PRODUCT_NAME = "${APP_NAME}";
375
375
PROVISIONING_PROFILE_SPECIFIER = "";
388
388
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
389
389
CODE_SIGN_IDENTITY = "Apple Development";
390
390
CODE_SIGN_STYLE = Automatic;
391
- CURRENT_PROJECT_VERSION = 3 ;
391
+ CURRENT_PROJECT_VERSION = 4 ;
392
392
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
393
393
DEVELOPMENT_TEAM = B6LJ2PS259;
394
394
ENABLE_PREVIEWS = YES;
407
407
"$(inherited)",
408
408
"@executable_path/Frameworks",
409
409
);
410
- MARKETING_VERSION = 1.1 .0;
410
+ MARKETING_VERSION = 1.2 .0;
411
411
ONLY_ACTIVE_ARCH = NO;
412
412
PRODUCT_BUNDLE_IDENTIFIER = "${BUNDLE_ID}${TEAM_ID}";
413
413
PRODUCT_NAME = "${APP_NAME}";
Original file line number Diff line number Diff line change 17
17
<key >CFBundlePackageType </key >
18
18
<string >$(PRODUCT_BUNDLE_PACKAGE_TYPE) </string >
19
19
<key >CFBundleShortVersionString </key >
20
- <string >1.1 .0 </string >
20
+ <string >1.2 .0 </string >
21
21
<key >CFBundleVersion </key >
22
- <string >3 </string >
22
+ <string >4 </string >
23
23
<key >LSRequiresIPhoneOS </key >
24
24
<true />
25
25
<key >UIApplicationSceneManifest </key >
Original file line number Diff line number Diff line change @@ -48,8 +48,11 @@ actual class HardwareDataProvider actual constructor() {
48
48
return buildList {
49
49
UIDevice .currentDevice.batteryMonitoringEnabled = true
50
50
add(getString(Res .string.battery) to " " )
51
- val batteryLevel = (UIDevice .currentDevice.batteryLevel * 100 ).round2()
52
- add(getString(Res .string.level) to " $batteryLevel %" )
51
+ val batteryLevel = UIDevice .currentDevice.batteryLevel
52
+ if (batteryLevel != - 1f ) {
53
+ val batteryLevelPercentage = (batteryLevel * 100 ).round2()
54
+ add(getString(Res .string.level) to " $batteryLevelPercentage %" )
55
+ }
53
56
add(getString(Res .string.battery_state) to getBatteryState())
54
57
UIDevice .currentDevice.batteryMonitoringEnabled = false
55
58
You can’t perform that action at this time.
0 commit comments