expo-battery 7.0.0 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 7.1.1 — 2023-02-09
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
17
+ ## 7.1.0 — 2023-02-03
18
+
19
+ ### 💡 Others
20
+
21
+ - On Android bump `compileSdkVersion` and `targetSdkVersion` to `33`. ([#20721](https://github.com/expo/expo/pull/20721) by [@lukmccall](https://github.com/lukmccall))
22
+
13
23
  ## 7.0.0 — 2022-10-25
14
24
 
15
25
  ### 🛠 Breaking changes
package/README.md CHANGED
@@ -1,10 +1,17 @@
1
- # expo-battery
1
+ <p>
2
+ <a href="https://docs.expo.dev/versions/latest/sdk/battery/">
3
+ <img
4
+ src="../../.github/resources/expo-battery.svg"
5
+ alt="expo-battery"
6
+ height="64" />
7
+ </a>
8
+ </p>
2
9
 
3
10
  Provide battery information for the physical device.
4
11
 
5
12
  # API documentation
6
13
 
7
- - [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/battery.md)
14
+ - [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/battery.mdx)
8
15
 
9
16
  # Installation in managed Expo projects
10
17
 
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '7.0.0'
6
+ version = '7.1.1'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -22,7 +22,7 @@ buildscript {
22
22
  if (ext.has("kotlinVersion")) {
23
23
  ext.kotlinVersion()
24
24
  } else {
25
- ext.safeExtGet("kotlinVersion", "1.6.10")
25
+ ext.safeExtGet("kotlinVersion", "1.8.10")
26
26
  }
27
27
  }
28
28
 
@@ -59,7 +59,7 @@ afterEvaluate {
59
59
  }
60
60
 
61
61
  android {
62
- compileSdkVersion safeExtGet("compileSdkVersion", 31)
62
+ compileSdkVersion safeExtGet("compileSdkVersion", 33)
63
63
 
64
64
  compileOptions {
65
65
  sourceCompatibility JavaVersion.VERSION_11
@@ -72,9 +72,9 @@ android {
72
72
 
73
73
  defaultConfig {
74
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
- targetSdkVersion safeExtGet("targetSdkVersion", 31)
75
+ targetSdkVersion safeExtGet("targetSdkVersion", 33)
76
76
  versionCode 11
77
- versionName '7.0.0'
77
+ versionName '7.1.1'
78
78
  }
79
79
  lintOptions {
80
80
  abortOnError false
@@ -1,4 +1,4 @@
1
- export declare type PowerState = {
1
+ export type PowerState = {
2
2
  /**
3
3
  * A number between `0` and `1`, inclusive, or `-1` if the battery level is unknown.
4
4
  */
@@ -30,19 +30,19 @@ export declare enum BatteryState {
30
30
  */
31
31
  FULL = 3
32
32
  }
33
- export declare type BatteryLevelEvent = {
33
+ export type BatteryLevelEvent = {
34
34
  /**
35
35
  * A number between `0` and `1`, inclusive, or `-1` if the battery level is unknown.
36
36
  */
37
37
  batteryLevel: number;
38
38
  };
39
- export declare type BatteryStateEvent = {
39
+ export type BatteryStateEvent = {
40
40
  /**
41
41
  * An enum value representing the battery state.
42
42
  */
43
43
  batteryState: BatteryState;
44
44
  };
45
- export declare type PowerModeEvent = {
45
+ export type PowerModeEvent = {
46
46
  /**
47
47
  * A boolean value, `true` if lowPowerMode is on, `false` if lowPowerMode is off
48
48
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Battery.types.d.ts","sourceRoot":"","sources":["../src/Battery.types.ts"],"names":[],"mappings":"AACA,oBAAY,UAAU,GAAG;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAGF,oBAAY,YAAY;IACtB;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,SAAS,IAAA;IACT;;OAEG;IACH,QAAQ,IAAA;IACR;;OAEG;IACH,IAAI,IAAA;CACL;AAGD,oBAAY,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,oBAAY,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAGF,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"Battery.types.d.ts","sourceRoot":"","sources":["../src/Battery.types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAGF,oBAAY,YAAY;IACtB;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,SAAS,IAAA;IACT;;OAEG;IACH,QAAQ,IAAA;IACR;;OAEG;IACH,IAAI,IAAA;CACL;AAGD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAGF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-battery",
3
- "version": "7.0.0",
3
+ "version": "7.1.1",
4
4
  "description": "Provides battery information for the physical device, as well as corresponding event listeners.",
5
5
  "main": "build/Battery.js",
6
6
  "types": "build/Battery.d.ts",
@@ -36,5 +36,5 @@
36
36
  "peerDependencies": {
37
37
  "expo": "*"
38
38
  },
39
- "gitHead": "eab2b09c735fb0fc2bf734a3f29a6593adba3838"
39
+ "gitHead": "1f8a6a09570fd451378565ca34933018ce48454e"
40
40
  }