@capacitor/splash-screen 6.0.0-dev-1924-20231201T193442.0 → 6.0.0-dev-1933-20231204T092338.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 +1 -1
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/SplashScreenPlugin.h +10 -0
- package/ios/Plugin/SplashScreenPlugin.m +9 -0
- package/ios/{Sources/SplashScreenPlugin → Plugin}/SplashScreenPlugin.swift +1 -7
- package/package.json +3 -5
- package/Package.swift +0 -28
- package/ios/Tests/SplashScreenPluginTests/SplashScreenPluginTests.swift +0 -14
- /package/ios/{Sources/SplashScreenPlugin → Plugin}/SplashScreen.swift +0 -0
- /package/ios/{Sources/SplashScreenPlugin → Plugin}/SplashScreenConfig.swift +0 -0
- /package/ios/{Sources/SplashScreenPlugin → Plugin}/SplashScreenSettings.swift +0 -0
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,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>FMWK</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleVersion</key>
|
|
20
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
21
|
+
<key>NSPrincipalClass</key>
|
|
22
|
+
<string></string>
|
|
23
|
+
</dict>
|
|
24
|
+
</plist>
|
|
@@ -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-20231204T092338.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",
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
"android/src/main/",
|
|
11
11
|
"android/build.gradle",
|
|
12
12
|
"dist/",
|
|
13
|
-
"ios/
|
|
14
|
-
"ios/Tests",
|
|
15
|
-
"Package.swift",
|
|
13
|
+
"ios/Plugin/",
|
|
16
14
|
"CapacitorSplashScreen.podspec"
|
|
17
15
|
],
|
|
18
16
|
"author": "Ionic <hi@ionicframework.com>",
|
|
@@ -31,7 +29,7 @@
|
|
|
31
29
|
],
|
|
32
30
|
"scripts": {
|
|
33
31
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
34
|
-
"verify:ios": "
|
|
32
|
+
"verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
|
|
35
33
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
36
34
|
"verify:web": "npm run build",
|
|
37
35
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
package/Package.swift
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// swift-tools-version: 5.9
|
|
2
|
-
import PackageDescription
|
|
3
|
-
|
|
4
|
-
let package = Package(
|
|
5
|
-
name: "CapacitorSplashScreen",
|
|
6
|
-
platforms: [.iOS(.v13)],
|
|
7
|
-
products: [
|
|
8
|
-
.library(
|
|
9
|
-
name: "SplashScreenPlugin",
|
|
10
|
-
targets: ["SplashScreenPlugin"])
|
|
11
|
-
],
|
|
12
|
-
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main")
|
|
14
|
-
],
|
|
15
|
-
targets: [
|
|
16
|
-
.target(
|
|
17
|
-
name: "SplashScreenPlugin",
|
|
18
|
-
dependencies: [
|
|
19
|
-
.product(name: "Capacitor", package: "capacitor6-spm-test"),
|
|
20
|
-
.product(name: "Cordova", package: "capacitor6-spm-test")
|
|
21
|
-
],
|
|
22
|
-
path: "ios/Sources/SplashScreenPlugin"),
|
|
23
|
-
.testTarget(
|
|
24
|
-
name: "SplashScreenPluginTests",
|
|
25
|
-
dependencies: ["SplashScreenPlugin"],
|
|
26
|
-
path: "ios/Tests/SplashScreenPluginTests")
|
|
27
|
-
]
|
|
28
|
-
)
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import XCTest
|
|
2
|
-
@testable import SplashScreenPlugin
|
|
3
|
-
|
|
4
|
-
class SplashScreenTests: XCTestCase {
|
|
5
|
-
override func setUp() {
|
|
6
|
-
super.setUp()
|
|
7
|
-
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
override func tearDown() {
|
|
11
|
-
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
12
|
-
super.tearDown()
|
|
13
|
-
}
|
|
14
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|