@capacitor/filesystem 8.1.0 → 8.1.1-dev.spm

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.
@@ -1,4 +1,5 @@
1
1
  ext {
2
+ capacitorVersion = System.getenv('CAPACITOR_VERSION')
2
3
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
4
  androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
4
5
  androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
@@ -11,15 +12,26 @@ buildscript {
11
12
  repositories {
12
13
  google()
13
14
  mavenCentral()
15
+ maven {
16
+ url = "https://plugins.gradle.org/m2/"
17
+ }
14
18
  }
15
19
  dependencies {
16
20
  classpath 'com.android.tools.build:gradle:8.13.0'
17
21
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
22
+ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
23
+ classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
24
+ }
18
25
  }
19
26
  }
20
27
 
21
28
  apply plugin: 'com.android.library'
22
29
  apply plugin: 'kotlin-android'
30
+ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
31
+ apply plugin: 'io.github.gradle-nexus.publish-plugin'
32
+ apply from: file('../../../scripts/android/publish-root.gradle')
33
+ apply from: file('../../../scripts/android/publish-module.gradle')
34
+ }
23
35
 
24
36
  android {
25
37
  namespace = "com.capacitorjs.plugins.filesystem"
@@ -44,6 +56,9 @@ android {
44
56
  sourceCompatibility JavaVersion.VERSION_21
45
57
  targetCompatibility JavaVersion.VERSION_21
46
58
  }
59
+ publishing {
60
+ singleVariant("release")
61
+ }
47
62
  }
48
63
 
49
64
  kotlin {
@@ -58,8 +73,14 @@ repositories {
58
73
 
59
74
  dependencies {
60
75
  implementation fileTree(dir: 'libs', include: ['*.jar'])
76
+
77
+ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
78
+ implementation "com.capacitorjs:core:$capacitorVersion"
79
+ } else {
80
+ implementation project(':capacitor-android')
81
+ }
82
+
61
83
  implementation "io.ionic.libs:ionfilesystem-android:1.1.0"
62
- implementation project(':capacitor-android')
63
84
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
64
85
 
65
86
  implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/filesystem",
3
- "version": "8.1.0",
3
+ "version": "8.1.1-dev.spm",
4
4
  "description": "The Filesystem API provides a NodeJS-like API for working with files on the device.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
34
- "verify:ios": "xcodebuild -scheme CapacitorFilesystem -destination generic/platform=iOS",
34
+ "verify:ios": "cd ../.. && xcodebuild -scheme CapacitorFilesystem -destination generic/platform=iOS",
35
35
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
36
36
  "verify:web": "npm run build",
37
37
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
@@ -44,7 +44,9 @@
44
44
  "clean": "rimraf ./dist",
45
45
  "watch": "tsc --watch",
46
46
  "prepublishOnly": "npm run build",
47
- "publish:cocoapod": "pod trunk push ./CapacitorFilesystem.podspec --allow-warnings"
47
+ "publish:cocoapod": "pod trunk push ./CapacitorFilesystem.podspec --allow-warnings",
48
+ "prepack": "cp ../../Package.swift Package.swift && node -e 'const fs=require(\"fs\");let s=fs.readFileSync(\"Package.swift\",\"utf8\").split(\"packages/capacitor-plugin/\").join(\"\");fs.writeFileSync(\"Package.swift\",s);'",
49
+ "postpack": "rm -f Package.swift"
48
50
  },
49
51
  "dependencies": {
50
52
  "@capacitor/synapse": "^1.0.4"