@capacitor/toast 1.0.7 → 4.0.0-beta.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/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.0.0-beta.2](https://github.com/ionic-team/capacitor-plugins/compare/4.0.0-beta.0...4.0.0-beta.2) (2022-07-08)
7
+
8
+ **Note:** Version bump only for package @capacitor/toast
9
+
10
+
11
+
12
+
13
+
14
+ # 4.0.0-beta.0 (2022-06-27)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * add es2017 lib to tsconfig ([#180](https://github.com/ionic-team/capacitor-plugins/issues/180)) ([2c3776c](https://github.com/ionic-team/capacitor-plugins/commit/2c3776c38ca025c5ee965dec10ccf1cdb6c02e2f))
20
+ * correct addListeners links ([#655](https://github.com/ionic-team/capacitor-plugins/issues/655)) ([f9871e7](https://github.com/ionic-team/capacitor-plugins/commit/f9871e7bd53478addb21155e148829f550c0e457))
21
+ * inline source code in esm map files ([#760](https://github.com/ionic-team/capacitor-plugins/issues/760)) ([a960489](https://github.com/ionic-team/capacitor-plugins/commit/a960489a19db0182b90d187a50deff9dfbe51038))
22
+ * remove postpublish scripts ([#656](https://github.com/ionic-team/capacitor-plugins/issues/656)) ([ed6ac49](https://github.com/ionic-team/capacitor-plugins/commit/ed6ac499ebf4a47525071ccbfc36c27503e11f60))
23
+ * support deprecated types from Capacitor 2 ([#139](https://github.com/ionic-team/capacitor-plugins/issues/139)) ([2d7127a](https://github.com/ionic-team/capacitor-plugins/commit/2d7127a488e26f0287951921a6db47c49d817336))
24
+
25
+
26
+ ### Features
27
+
28
+ * add commonjs output format ([#179](https://github.com/ionic-team/capacitor-plugins/issues/179)) ([8e9e098](https://github.com/ionic-team/capacitor-plugins/commit/8e9e09862064b3f6771d7facbc4008e995d9b463))
29
+ * set targetSDK default value to 31 ([#824](https://github.com/ionic-team/capacitor-plugins/issues/824)) ([3ee10de](https://github.com/ionic-team/capacitor-plugins/commit/3ee10de98067984c1a4e75295d001c5a895c47f4))
30
+ * set targetSDK default value to 32 ([#970](https://github.com/ionic-team/capacitor-plugins/issues/970)) ([fa70d96](https://github.com/ionic-team/capacitor-plugins/commit/fa70d96f141af751aae53ceb5642c46b204f5958))
31
+ * Toast plugin ([#52](https://github.com/ionic-team/capacitor-plugins/issues/52)) ([b52dc47](https://github.com/ionic-team/capacitor-plugins/commit/b52dc471291bcf6ad54ed1ffde6ecf3327ecd747))
32
+ * Upgrade gradle to 7.4 ([#826](https://github.com/ionic-team/capacitor-plugins/issues/826)) ([5db0906](https://github.com/ionic-team/capacitor-plugins/commit/5db0906f6264287c4f8e69dbaecf19d4d387824b))
33
+ * Use java 11 ([#910](https://github.com/ionic-team/capacitor-plugins/issues/910)) ([5acb2a2](https://github.com/ionic-team/capacitor-plugins/commit/5acb2a288a413492b163e4e97da46a085d9e4be0))
34
+
35
+
36
+
37
+
38
+
39
+ ## [1.0.8](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/toast@1.0.7...@capacitor/toast@1.0.8) (2022-02-10)
40
+
41
+ **Note:** Version bump only for package @capacitor/toast
42
+
43
+
44
+
45
+
46
+
6
47
  ## [1.0.7](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/toast@1.0.6...@capacitor/toast@1.0.7) (2022-01-19)
7
48
 
8
49
 
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'toast/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '12.0'
14
+ s.ios.deployment_target = '13.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
package/README.md CHANGED
@@ -9,6 +9,10 @@ npm install @capacitor/toast
9
9
  npx cap sync
10
10
  ```
11
11
 
12
+ ## PWA Notes
13
+
14
+ [PWA Elements](https://capacitorjs.com/docs/web/pwa-elements) are required for the Toast plugin to work.
15
+
12
16
  ## Example
13
17
 
14
18
  ```typescript
@@ -55,10 +59,10 @@ Shows a Toast on the screen
55
59
 
56
60
  #### ShowOptions
57
61
 
58
- | Prop | Type | Description | Default | Since |
59
- | -------------- | ------------------------------------------ | ----------------------------------------------------------------- | --------------------- | ----- |
60
- | **`text`** | <code>string</code> | Text to display on the Toast | | 1.0.0 |
61
- | **`duration`** | <code>'short' \| 'long'</code> | Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms) | <code>'short'</code> | 1.0.0 |
62
- | **`position`** | <code>'top' \| 'center' \| 'bottom'</code> | Postion of the Toast | <code>'bottom'</code> | 1.0.0 |
62
+ | Prop | Type | Description | Default | Since |
63
+ | -------------- | ------------------------------------------ | ---------------------------------------------------------------------------------- | --------------------- | ----- |
64
+ | **`text`** | <code>string</code> | Text to display on the Toast | | 1.0.0 |
65
+ | **`duration`** | <code>'short' \| 'long'</code> | Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms) | <code>'short'</code> | 1.0.0 |
66
+ | **`position`** | <code>'top' \| 'center' \| 'bottom'</code> | Position of the Toast. On Android 12 and newer all toasts are shown at the bottom. | <code>'bottom'</code> | 1.0.0 |
63
67
 
64
68
  </docgen-api>
@@ -1,8 +1,8 @@
1
1
  ext {
2
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.1'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.2.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.2'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.3.0'
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
6
6
  }
7
7
 
8
8
  buildscript {
@@ -11,17 +11,17 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:4.2.1'
14
+ classpath 'com.android.tools.build:gradle:7.2.1'
15
15
  }
16
16
  }
17
17
 
18
18
  apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 30
21
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
22
22
  defaultConfig {
23
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
24
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 30
23
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
24
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
25
25
  versionCode 1
26
26
  versionName "1.0"
27
27
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -36,15 +36,14 @@ android {
36
36
  abortOnError false
37
37
  }
38
38
  compileOptions {
39
- sourceCompatibility JavaVersion.VERSION_1_8
40
- targetCompatibility JavaVersion.VERSION_1_8
39
+ sourceCompatibility JavaVersion.VERSION_11
40
+ targetCompatibility JavaVersion.VERSION_11
41
41
  }
42
42
  }
43
43
 
44
44
  repositories {
45
45
  google()
46
46
  mavenCentral()
47
- jcenter()
48
47
  }
49
48
 
50
49
 
package/dist/docs.json CHANGED
@@ -79,7 +79,7 @@
79
79
  "name": "since"
80
80
  }
81
81
  ],
82
- "docs": "Postion of the Toast",
82
+ "docs": "Position of the Toast.\n\nOn Android 12 and newer all toasts are shown at the bottom.",
83
83
  "complexTypes": [],
84
84
  "type": "'top' | 'center' | 'bottom' | undefined"
85
85
  }
@@ -21,7 +21,9 @@ export interface ShowOptions {
21
21
  */
22
22
  duration?: 'short' | 'long';
23
23
  /**
24
- * Postion of the Toast
24
+ * Position of the Toast.
25
+ *
26
+ * On Android 12 and newer all toasts are shown at the bottom.
25
27
  *
26
28
  * @default 'bottom'
27
29
  * @since 1.0.0
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ToastPlugin {\n /**\n * Shows a Toast on the screen\n *\n * @since 1.0.0\n */\n show(options: ShowOptions): Promise<void>;\n}\n\nexport interface ShowOptions {\n /**\n * Text to display on the Toast\n *\n * @since 1.0.0\n */\n text: string;\n\n /**\n * Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms)\n *\n * @default 'short'\n * @since 1.0.0\n */\n duration?: 'short' | 'long';\n\n /**\n * Postion of the Toast\n *\n * @default 'bottom'\n * @since 1.0.0\n */\n position?: 'top' | 'center' | 'bottom';\n}\n\n/**\n * @deprecated Use `ToastShowOptions`.\n * @since 1.0.0\n */\nexport type ToastShowOptions = ShowOptions;\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ToastPlugin {\n /**\n * Shows a Toast on the screen\n *\n * @since 1.0.0\n */\n show(options: ShowOptions): Promise<void>;\n}\n\nexport interface ShowOptions {\n /**\n * Text to display on the Toast\n *\n * @since 1.0.0\n */\n text: string;\n\n /**\n * Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms)\n *\n * @default 'short'\n * @since 1.0.0\n */\n duration?: 'short' | 'long';\n\n /**\n * Position of the Toast.\n *\n * On Android 12 and newer all toasts are shown at the bottom.\n *\n * @default 'bottom'\n * @since 1.0.0\n */\n position?: 'top' | 'center' | 'bottom';\n}\n\n/**\n * @deprecated Use `ToastShowOptions`.\n * @since 1.0.0\n */\nexport type ToastShowOptions = ShowOptions;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/toast",
3
- "version": "1.0.7",
3
+ "version": "4.0.0-beta.2",
4
4
  "description": "The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
32
- "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
32
+ "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
33
33
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
34
34
  "verify:web": "npm run build",
35
35
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
@@ -45,10 +45,10 @@
45
45
  "publish:cocoapod": "pod trunk push ./CapacitorToast.podspec --allow-warnings"
46
46
  },
47
47
  "devDependencies": {
48
- "@capacitor/android": "^3.0.0",
49
- "@capacitor/core": "^3.0.0",
48
+ "@capacitor/android": "next",
49
+ "@capacitor/core": "next",
50
50
  "@capacitor/docgen": "0.0.18",
51
- "@capacitor/ios": "^3.0.0",
51
+ "@capacitor/ios": "next",
52
52
  "@ionic/eslint-config": "^0.3.0",
53
53
  "@ionic/prettier-config": "~1.0.1",
54
54
  "@ionic/swiftlint-config": "^1.1.2",
@@ -61,7 +61,7 @@
61
61
  "typescript": "~4.1.5"
62
62
  },
63
63
  "peerDependencies": {
64
- "@capacitor/core": "^3.0.0"
64
+ "@capacitor/core": "next"
65
65
  },
66
66
  "prettier": "@ionic/prettier-config",
67
67
  "swiftlint": "@ionic/swiftlint-config",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "f18ee6482e1ec8e5fb0290d51f598397133af990"
82
+ "gitHead": "32240b675c12a774920c07a86b4483ecec7a9c8d"
83
83
  }