expo-keep-awake 10.1.1 → 10.2.0

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,12 +10,16 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 10.1.1 — 2022-05-05
13
+ ## 10.2.0 — 2022-07-07
14
14
 
15
15
  ### 🐛 Bug fixes
16
16
 
17
17
  - Fixed `Unable to deactivate keep awake. However, it probably is deactivated already` unhandled promise rejection warning when resuming apps on Android. ([#17319](https://github.com/expo/expo/pull/17319) by [@kudo](https://github.com/kudo))
18
18
 
19
+ ### 💡 Others
20
+
21
+ - Migrated Expo modules definitions to the new naming convention. ([#17193](https://github.com/expo/expo/pull/17193) by [@tsapeta](https://github.com/tsapeta))
22
+
19
23
  ## 10.1.0 — 2022-04-18
20
24
 
21
25
  ### 🎉 New features
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '10.1.1'
6
+ version = '10.2.0'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -74,7 +74,7 @@ android {
74
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
75
75
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
76
76
  versionCode 16
77
- versionName "10.1.1"
77
+ versionName "10.2.0"
78
78
  }
79
79
  lintOptions {
80
80
  abortOnError false
@@ -6,18 +6,18 @@ public final class KeepAwakeModule: Module {
6
6
  private var activeTags = Set<String>()
7
7
 
8
8
  public func definition() -> ModuleDefinition {
9
- name("ExpoKeepAwake")
9
+ Name("ExpoKeepAwake")
10
10
 
11
- function("activate", activate)
12
- function("deactivate", deactivate)
13
- function("isActivated", isActivated)
11
+ AsyncFunction("activate", activate)
12
+ AsyncFunction("deactivate", deactivate)
13
+ AsyncFunction("isActivated", isActivated)
14
14
 
15
- onAppEntersForeground {
15
+ OnAppEntersForeground {
16
16
  if !self.activeTags.isEmpty {
17
17
  setActivated(true)
18
18
  }
19
19
  }
20
- onAppEntersBackground {
20
+ OnAppEntersBackground {
21
21
  if !self.activeTags.isEmpty {
22
22
  setActivated(false)
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-keep-awake",
3
- "version": "10.1.1",
3
+ "version": "10.2.0",
4
4
  "description": "Provides a React component that prevents the screen sleeping when rendered. It also exposes static methods to control the behavior imperatively.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "jest": {
43
43
  "preset": "expo-module-scripts"
44
44
  },
45
- "gitHead": "b9d655c1bed682ad8919e071dd923968773f05b5"
45
+ "gitHead": "e893ff2b01e108cf246cec02318c0df9d6bc603c"
46
46
  }
package/tsconfig.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "outDir": "./build"
6
6
  },
7
7
  "include": ["./src"],
8
- "exclude": ["**/__mocks__/*", "**/__tests__/*"]
8
+ "exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__stories__/*"]
9
9
  }