expo-modules-core 0.6.1 → 0.6.2
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,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.6.2 — 2021-12-15
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Add `onNewIntent` and `onBackPressed` support to `ReactActivityLifecycleListener`. ([#15550](https://github.com/expo/expo/pull/15550) by [@Kudo](https://github.com/Kudo))
|
|
18
|
+
|
|
13
19
|
## 0.6.1 — 2021-12-08
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '0.6.
|
|
6
|
+
version = '0.6.2'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -58,7 +58,7 @@ android {
|
|
|
58
58
|
targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
|
59
59
|
consumerProguardFiles 'proguard-rules.pro'
|
|
60
60
|
versionCode 1
|
|
61
|
-
versionName "0.6.
|
|
61
|
+
versionName "0.6.2"
|
|
62
62
|
}
|
|
63
63
|
lintOptions {
|
|
64
64
|
abortOnError false
|
package/android/src/main/java/expo/modules/core/interfaces/ReactActivityLifecycleListener.java
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
package expo.modules.core.interfaces;
|
|
2
2
|
|
|
3
3
|
import android.app.Activity;
|
|
4
|
+
import android.content.Intent;
|
|
4
5
|
import android.os.Bundle;
|
|
5
6
|
|
|
6
7
|
public interface ReactActivityLifecycleListener {
|
|
@@ -11,4 +12,26 @@ public interface ReactActivityLifecycleListener {
|
|
|
11
12
|
default void onPause(Activity activity) {}
|
|
12
13
|
|
|
13
14
|
default void onDestroy(Activity activity) {}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Called when {@link com.facebook.react.ReactActivity} received `onNewIntent`
|
|
18
|
+
* Every listener will receive this callback.
|
|
19
|
+
* `ReactActivityDelegateWrapper.onNewIntent` will get `true` if there's some module returns `true`
|
|
20
|
+
*
|
|
21
|
+
* @return true if this module wants to return `true` from `ReactActivityDelegateWrapper.onNewIntent`
|
|
22
|
+
*/
|
|
23
|
+
default boolean onNewIntent(Intent intent) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Called when {@link com.facebook.react.ReactActivity} received `onBackPressed`
|
|
29
|
+
* Every listener will receive this callback.
|
|
30
|
+
* `ReactActivityDelegateWrapper.onBackPressed` will get `true` if there's some module returns `true`
|
|
31
|
+
*
|
|
32
|
+
* @return true if this module wants to return `true` from `ReactActivityDelegateWrapper.onBackPressed`
|
|
33
|
+
*/
|
|
34
|
+
default boolean onBackPressed() {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
14
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "The core of Expo Modules architecture",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@testing-library/react-hooks": "^7.0.1",
|
|
43
43
|
"expo-module-scripts": "^2.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "779a011c9a6a436d3e69df0f8f7d1a4703fb297a"
|
|
46
46
|
}
|