@tagea/capacitor-matrix 0.0.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.
@@ -0,0 +1,10 @@
1
+ import XCTest
2
+ @testable import CapMatrixPlugin
3
+
4
+ class CapMatrixTests: XCTestCase {
5
+ func testMapSyncState() {
6
+ let bridge = CapMatrix()
7
+ // Verify the bridge can be instantiated (basic smoke test)
8
+ XCTAssertNotNil(bridge)
9
+ }
10
+ }
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@tagea/capacitor-matrix",
3
+ "version": "0.0.2",
4
+ "description": "A capacitor plugin wrapping native matrix SDKs",
5
+ "main": "dist/plugin.cjs.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "unpkg": "dist/plugin.js",
9
+ "files": [
10
+ "android/src/main/",
11
+ "android/build.gradle",
12
+ "dist/",
13
+ "ios/Sources",
14
+ "ios/Tests",
15
+ "Package.swift",
16
+ "TremazeCapacitorMatrix.podspec"
17
+ ],
18
+ "author": "tremaze GmbH",
19
+ "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/tremaze/capacitor-matrix.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/tremaze/capacitor-matrix/issues"
26
+ },
27
+ "keywords": [
28
+ "capacitor",
29
+ "plugin",
30
+ "native"
31
+ ],
32
+ "scripts": {
33
+ "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
34
+ "verify:ios": "xcodebuild -scheme TremazeCapacitorMatrix -destination generic/platform=iOS",
35
+ "verify:android": "cd android && ./gradlew clean build test && cd ..",
36
+ "verify:web": "npm run build && npm run test",
37
+ "test": "vitest run",
38
+ "test:watch": "vitest",
39
+ "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
40
+ "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
41
+ "eslint": "eslint . --ext ts",
42
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
43
+ "swiftlint": "node-swiftlint",
44
+ "docgen": "docgen --api MatrixPlugin --output-readme README.md --output-json dist/docs.json",
45
+ "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
46
+ "build:watch": "npx -y nodemon --watch src -e ts --exec \"npm run build || true\"",
47
+ "clean": "rimraf ./dist",
48
+ "watch": "tsc --watch",
49
+ "prepublishOnly": "npm run build"
50
+ },
51
+ "devDependencies": {
52
+ "@capacitor/android": "^8.0.0",
53
+ "@capacitor/core": "^8.0.0",
54
+ "@capacitor/docgen": "^0.3.1",
55
+ "@capacitor/ios": "^8.0.0",
56
+ "@ionic/eslint-config": "^0.4.0",
57
+ "@ionic/prettier-config": "^4.0.0",
58
+ "@ionic/swiftlint-config": "^2.0.0",
59
+ "eslint": "^8.57.1",
60
+ "jsdom": "^28.1.0",
61
+ "prettier": "^3.6.2",
62
+ "prettier-plugin-java": "^2.7.7",
63
+ "rimraf": "^6.1.0",
64
+ "rollup": "^4.53.2",
65
+ "swiftlint": "^2.0.0",
66
+ "typescript": "^5.9.3",
67
+ "vitest": "^4.1.0"
68
+ },
69
+ "peerDependencies": {
70
+ "@capacitor/core": ">=8.0.0"
71
+ },
72
+ "prettier": "@ionic/prettier-config",
73
+ "swiftlint": "@ionic/swiftlint-config",
74
+ "eslintConfig": {
75
+ "extends": "@ionic/eslint-config/recommended"
76
+ },
77
+ "capacitor": {
78
+ "ios": {
79
+ "src": "ios"
80
+ },
81
+ "android": {
82
+ "src": "android"
83
+ }
84
+ },
85
+ "dependencies": {
86
+ "matrix-js-sdk": "^41.1.0"
87
+ }
88
+ }