@capacitor-community/fcm 2.0.1 → 3.0.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/CapacitorCommunityFcm.podspec +1 -1
  3. package/README.md +14 -9
  4. package/android/build.gradle +14 -13
  5. package/android/src/main/java/com/getcapacitor/community/fcm/FCMPlugin.java +12 -0
  6. package/dist/esm/definitions.d.ts +15 -0
  7. package/dist/esm/definitions.js.map +1 -1
  8. package/dist/esm/index.js.map +1 -1
  9. package/dist/esm/web.d.ts +3 -0
  10. package/dist/esm/web.js +4 -1
  11. package/dist/esm/web.js.map +1 -1
  12. package/dist/plugin.cjs.js +49 -0
  13. package/dist/plugin.cjs.js.map +1 -0
  14. package/dist/plugin.js +52 -0
  15. package/dist/plugin.js.map +1 -0
  16. package/ios/Plugin/Plugin/Plugin.swift +15 -0
  17. package/ios/Plugin/Podfile +1 -1
  18. package/package.json +59 -33
  19. package/android/.DS_Store +0 -0
  20. package/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
  21. package/android/.gradle/5.6.4/fileHashes/fileHashes.bin +0 -0
  22. package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
  23. package/android/.gradle/5.6.4/gc.properties +0 -0
  24. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  25. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  26. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  27. package/android/.gradle/vcs-1/gc.properties +0 -0
  28. package/android/.idea/codeStyles/Project.xml +0 -113
  29. package/android/.idea/gradle.xml +0 -19
  30. package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_0_0_jar.xml +0 -13
  31. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0_jar.xml +0 -11
  32. package/android/.idea/libraries/Gradle__androidx_test_core_1_2_0_aar.xml +0 -14
  33. package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_2_0_aar.xml +0 -14
  34. package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_2_0_aar.xml +0 -14
  35. package/android/.idea/libraries/Gradle__androidx_test_ext_junit_1_1_1_aar.xml +0 -14
  36. package/android/.idea/libraries/Gradle__androidx_test_monitor_1_2_0_aar.xml +0 -14
  37. package/android/.idea/libraries/Gradle__androidx_test_runner_1_2_0_aar.xml +0 -14
  38. package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml +0 -9
  39. package/android/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml +0 -13
  40. package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml +0 -13
  41. package/android/.idea/libraries/Gradle__junit_junit_4_12_jar.xml +0 -13
  42. package/android/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0_jar.xml +0 -13
  43. package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml +0 -13
  44. package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml +0 -13
  45. package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml +0 -13
  46. package/android/.idea/misc.xml +0 -9
  47. package/android/.idea/modules.xml +0 -9
  48. package/android/.idea/runConfigurations.xml +0 -12
  49. package/android/.idea/vcs.xml +0 -6
  50. package/android/.idea/workspace.xml +0 -89
  51. package/android/.npmignore +0 -1
  52. package/android/android-capacitor-community-fcm.iml +0 -264
  53. package/android/android.iml +0 -108
  54. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  55. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  56. package/android/gradle.properties +0 -21
  57. package/android/gradlew +0 -160
  58. package/android/gradlew.bat +0 -90
  59. package/android/local.properties +0 -8
  60. package/android/proguard-rules.pro +0 -21
  61. package/android/settings.gradle +0 -2
  62. package/android/src/.DS_Store +0 -0
  63. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +0 -27
  64. package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +0 -17
  65. package/ios/.DS_Store +0 -0
@@ -1,90 +0,0 @@
1
- @if "%DEBUG%" == "" @echo off
2
- @rem ##########################################################################
3
- @rem
4
- @rem Gradle startup script for Windows
5
- @rem
6
- @rem ##########################################################################
7
-
8
- @rem Set local scope for the variables with windows NT shell
9
- if "%OS%"=="Windows_NT" setlocal
10
-
11
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12
- set DEFAULT_JVM_OPTS=
13
-
14
- set DIRNAME=%~dp0
15
- if "%DIRNAME%" == "" set DIRNAME=.
16
- set APP_BASE_NAME=%~n0
17
- set APP_HOME=%DIRNAME%
18
-
19
- @rem Find java.exe
20
- if defined JAVA_HOME goto findJavaFromJavaHome
21
-
22
- set JAVA_EXE=java.exe
23
- %JAVA_EXE% -version >NUL 2>&1
24
- if "%ERRORLEVEL%" == "0" goto init
25
-
26
- echo.
27
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
- echo.
29
- echo Please set the JAVA_HOME variable in your environment to match the
30
- echo location of your Java installation.
31
-
32
- goto fail
33
-
34
- :findJavaFromJavaHome
35
- set JAVA_HOME=%JAVA_HOME:"=%
36
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
-
38
- if exist "%JAVA_EXE%" goto init
39
-
40
- echo.
41
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
- echo.
43
- echo Please set the JAVA_HOME variable in your environment to match the
44
- echo location of your Java installation.
45
-
46
- goto fail
47
-
48
- :init
49
- @rem Get command-line arguments, handling Windowz variants
50
-
51
- if not "%OS%" == "Windows_NT" goto win9xME_args
52
- if "%@eval[2+2]" == "4" goto 4NT_args
53
-
54
- :win9xME_args
55
- @rem Slurp the command line arguments.
56
- set CMD_LINE_ARGS=
57
- set _SKIP=2
58
-
59
- :win9xME_args_slurp
60
- if "x%~1" == "x" goto execute
61
-
62
- set CMD_LINE_ARGS=%*
63
- goto execute
64
-
65
- :4NT_args
66
- @rem Get arguments from the 4NT Shell from JP Software
67
- set CMD_LINE_ARGS=%$
68
-
69
- :execute
70
- @rem Setup the command line
71
-
72
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73
-
74
- @rem Execute Gradle
75
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76
-
77
- :end
78
- @rem End local scope for the variables with windows NT shell
79
- if "%ERRORLEVEL%"=="0" goto mainEnd
80
-
81
- :fail
82
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
- rem the _cmd.exe /c_ return code!
84
- if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85
- exit /b 1
86
-
87
- :mainEnd
88
- if "%OS%"=="Windows_NT" endlocal
89
-
90
- :omega
@@ -1,8 +0,0 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Mon Jun 29 11:05:31 BRT 2020
8
- sdk.dir=/Users/stewan/Library/Android/sdk
@@ -1,21 +0,0 @@
1
- # Add project specific ProGuard rules here.
2
- # You can control the set of applied configuration files using the
3
- # proguardFiles setting in build.gradle.
4
- #
5
- # For more details, see
6
- # http://developer.android.com/guide/developing/tools/proguard.html
7
-
8
- # If your project uses WebView with JS, uncomment the following
9
- # and specify the fully qualified class name to the JavaScript interface
10
- # class:
11
- #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12
- # public *;
13
- #}
14
-
15
- # Uncomment this to preserve the line number information for
16
- # debugging stack traces.
17
- #-keepattributes SourceFile,LineNumberTable
18
-
19
- # If you keep the line number information, uncomment this to
20
- # hide the original source file name.
21
- #-renamesourcefileattribute SourceFile
@@ -1,2 +0,0 @@
1
- include ':capacitor-android'
2
- project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
Binary file
@@ -1,27 +0,0 @@
1
- package com.getcapacitor.android;
2
-
3
- import android.content.Context;
4
-
5
- import androidx.test.platform.app.InstrumentationRegistry;
6
- import androidx.test.ext.junit.runners.AndroidJUnit4;
7
-
8
- import org.junit.Test;
9
- import org.junit.runner.RunWith;
10
-
11
- import static org.junit.Assert.*;
12
-
13
- /**
14
- * Instrumented test, which will execute on an Android device.
15
- *
16
- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
17
- */
18
- @RunWith(AndroidJUnit4.class)
19
- public class ExampleInstrumentedTest {
20
- @Test
21
- public void useAppContext() throws Exception {
22
- // Context of the app under test.
23
- Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24
-
25
- assertEquals("com.getcapacitor.android", appContext.getPackageName());
26
- }
27
- }
@@ -1,17 +0,0 @@
1
- package com.getcapacitor;
2
-
3
- import org.junit.Test;
4
-
5
- import static org.junit.Assert.*;
6
-
7
- /**
8
- * Example local unit test, which will execute on the development machine (host).
9
- *
10
- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
11
- */
12
- public class ExampleUnitTest {
13
- @Test
14
- public void addition_isCorrect() throws Exception {
15
- assertEquals(4, 2 + 2);
16
- }
17
- }
package/ios/.DS_Store DELETED
Binary file