@capacitor/splash-screen 6.0.0-dev-1924-20231129T201538.0 → 6.0.0-dev-1933-20231201T111452.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/android/build.gradle
CHANGED
|
@@ -16,7 +16,7 @@ buildscript {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
dependencies {
|
|
19
|
-
classpath 'com.android.tools.build:gradle:8.2.0
|
|
19
|
+
classpath 'com.android.tools.build:gradle:8.2.0'
|
|
20
20
|
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
21
21
|
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
|
|
22
22
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#import <UIKit/UIKit.h>
|
|
2
|
+
|
|
3
|
+
//! Project version number for Plugin.
|
|
4
|
+
FOUNDATION_EXPORT double PluginVersionNumber;
|
|
5
|
+
|
|
6
|
+
//! Project version string for Plugin.
|
|
7
|
+
FOUNDATION_EXPORT const unsigned char PluginVersionString[];
|
|
8
|
+
|
|
9
|
+
// In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import <Capacitor/Capacitor.h>
|
|
3
|
+
|
|
4
|
+
// Define the plugin using the CAP_PLUGIN Macro, and
|
|
5
|
+
// each method the plugin supports using the CAP_PLUGIN_METHOD macro.
|
|
6
|
+
CAP_PLUGIN(SplashScreenPlugin, "SplashScreen",
|
|
7
|
+
CAP_PLUGIN_METHOD(show, CAPPluginReturnPromise);
|
|
8
|
+
CAP_PLUGIN_METHOD(hide, CAPPluginReturnPromise);
|
|
9
|
+
)
|
|
@@ -2,13 +2,7 @@ import Foundation
|
|
|
2
2
|
import Capacitor
|
|
3
3
|
|
|
4
4
|
@objc(SplashScreenPlugin)
|
|
5
|
-
public class SplashScreenPlugin: CAPPlugin
|
|
6
|
-
public let identifier = "SplashScreenPlugin"
|
|
7
|
-
public let jsName = "SplashScreen"
|
|
8
|
-
public let pluginMethods: [CAPPluginMethod] = [
|
|
9
|
-
CAPPluginMethod(name: "show", returnType: CAPPluginReturnPromise),
|
|
10
|
-
CAPPluginMethod(name: "hide", returnType: CAPPluginReturnPromise),
|
|
11
|
-
]
|
|
5
|
+
public class SplashScreenPlugin: CAPPlugin {
|
|
12
6
|
private var splashScreen: SplashScreen?
|
|
13
7
|
|
|
14
8
|
override public func load() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/splash-screen",
|
|
3
|
-
"version": "6.0.0-dev-
|
|
3
|
+
"version": "6.0.0-dev-1933-20231201T111452.0",
|
|
4
4
|
"description": "The Splash Screen API provides methods for showing or hiding a Splash image.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|