expo-libvlc-player 3.1.1 → 3.1.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/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: "com.android.library"
|
|
2
2
|
|
|
3
3
|
group = "expo.modules.libvlcplayer"
|
|
4
|
-
version = "3.1.
|
|
4
|
+
version = "3.1.2"
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -27,7 +27,7 @@ android {
|
|
|
27
27
|
namespace "expo.modules.libvlcplayer"
|
|
28
28
|
defaultConfig {
|
|
29
29
|
versionCode 1
|
|
30
|
-
versionName "3.1.
|
|
30
|
+
versionName "3.1.2"
|
|
31
31
|
consumerProguardFiles("proguard-rules.pro")
|
|
32
32
|
}
|
|
33
33
|
lintOptions {
|
|
@@ -54,6 +54,14 @@ class LibVlcPlayerModule : Module() {
|
|
|
54
54
|
MediaPlayerManager.onModuleDestroy()
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
OnActivityEntersForeground {
|
|
58
|
+
MediaPlayerManager.onModuleForeground()
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
OnActivityEntersBackground {
|
|
62
|
+
MediaPlayerManager.onModuleBackground()
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
View(LibVlcPlayerView::class) {
|
|
58
66
|
Events(playerEvents)
|
|
59
67
|
|
|
@@ -154,13 +162,5 @@ class LibVlcPlayerModule : Module() {
|
|
|
154
162
|
view.dismiss()
|
|
155
163
|
}
|
|
156
164
|
}
|
|
157
|
-
|
|
158
|
-
OnActivityEntersForeground {
|
|
159
|
-
MediaPlayerManager.onModuleForeground()
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
OnActivityEntersBackground {
|
|
163
|
-
MediaPlayerManager.onModuleBackground()
|
|
164
|
-
}
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -38,7 +38,7 @@ public class LibVlcPlayerModule: Module {
|
|
|
38
38
|
public func definition() -> ModuleDefinition {
|
|
39
39
|
Name("ExpoLibVlcPlayer")
|
|
40
40
|
|
|
41
|
-
AsyncFunction("triggerAlert") {
|
|
41
|
+
AsyncFunction("triggerAlert") {
|
|
42
42
|
LocalNetworkManager.shared.triggerLocalNetworkPrivacyAlert()
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -46,6 +46,14 @@ public class LibVlcPlayerModule: Module {
|
|
|
46
46
|
MediaPlayerManager.shared.onModuleDestroy()
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
OnAppEntersForeground {
|
|
50
|
+
MediaPlayerManager.shared.onModuleForeground()
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
OnAppEntersBackground {
|
|
54
|
+
MediaPlayerManager.shared.onModuleBackground()
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
View(LibVlcPlayerView.self) {
|
|
50
58
|
Events(playerEvents)
|
|
51
59
|
|
|
@@ -141,13 +149,5 @@ public class LibVlcPlayerModule: Module {
|
|
|
141
149
|
view.dismiss()
|
|
142
150
|
}
|
|
143
151
|
}
|
|
144
|
-
|
|
145
|
-
OnAppEntersForeground {
|
|
146
|
-
MediaPlayerManager.shared.onModuleForeground()
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
OnAppEntersBackground {
|
|
150
|
-
MediaPlayerManager.shared.onModuleBackground()
|
|
151
|
-
}
|
|
152
152
|
}
|
|
153
153
|
}
|