@capgo/native-market 1.0.4

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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/NativeMarket.podspec +13 -0
  3. package/README.md +196 -0
  4. package/android/.classpath +6 -0
  5. package/android/android.iml +109 -0
  6. package/android/build.gradle +55 -0
  7. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  8. package/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  9. package/android/gradle.properties +21 -0
  10. package/android/gradlew +160 -0
  11. package/android/gradlew.bat +90 -0
  12. package/android/proguard-rules.pro +21 -0
  13. package/android/settings.gradle +2 -0
  14. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +27 -0
  15. package/android/src/main/AndroidManifest.xml +5 -0
  16. package/android/src/main/java/com/getcapacitor/community/nativemarket/NativeMarket.java +131 -0
  17. package/android/src/main/res/layout/bridge_layout_main.xml +15 -0
  18. package/android/src/main/res/values/colors.xml +3 -0
  19. package/android/src/main/res/values/strings.xml +3 -0
  20. package/android/src/main/res/values/styles.xml +3 -0
  21. package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +17 -0
  22. package/dist/docs.json +160 -0
  23. package/dist/esm/definitions.d.ts +67 -0
  24. package/dist/esm/definitions.js +2 -0
  25. package/dist/esm/definitions.js.map +1 -0
  26. package/dist/esm/index.d.ts +4 -0
  27. package/dist/esm/index.js +7 -0
  28. package/dist/esm/index.js.map +1 -0
  29. package/dist/esm/web.d.ts +19 -0
  30. package/dist/esm/web.js +19 -0
  31. package/dist/esm/web.js.map +1 -0
  32. package/ios/Plugin/Info.plist +24 -0
  33. package/ios/Plugin/Plugin.h +10 -0
  34. package/ios/Plugin/Plugin.m +12 -0
  35. package/ios/Plugin/Plugin.swift +68 -0
  36. package/ios/Plugin.xcodeproj/project.pbxproj +556 -0
  37. package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  38. package/ios/PluginTests/Info.plist +22 -0
  39. package/ios/PluginTests/PluginTests.swift +35 -0
  40. package/ios/Podfile +16 -0
  41. package/package.json +66 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) COPYRIGHT_YEAR COPYRIGHT_HOLDER
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,13 @@
1
+
2
+ Pod::Spec.new do |s|
3
+ s.name = 'NativeMarket'
4
+ s.version = '0.0.1'
5
+ s.summary = 'A native market plugin for linking to google play / Apple store.'
6
+ s.license = 'MIT'
7
+ s.homepage = 'https://github.com/riderx/native-market'
8
+ s.author = 'Priyank Patel <priyank.patel@stackspace.ca>'
9
+ s.source = { :git => 'https://github.com/riderx/native-market', :tag => s.version.to_s }
10
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
11
+ s.ios.deployment_target = '12.0'
12
+ s.dependency 'Capacitor'
13
+ end
package/README.md ADDED
@@ -0,0 +1,196 @@
1
+ # Capacitor Native Market Plugin
2
+
3
+ Capacitor community plugin for native market for Play Store/App Store.
4
+
5
+ ## Maintainers
6
+
7
+ | Maintainer | GitHub | Social | Sponsoring Company |
8
+ | --------------- | ----------------------------------- | ----------------------------------------------------- | ------------------ |
9
+ | Martin Donadieu | [riderx](https://github.com/riderx) | [@martindonadieu](https://twitter.com/martindonadieu) | |
10
+
11
+ Maintenance Status: Actively Maintained
12
+
13
+ ## Installation
14
+
15
+ To use npm
16
+
17
+ ```bash
18
+ npm install @capgo/native-market
19
+ ```
20
+
21
+ To use yarn
22
+
23
+ ```bash
24
+ yarn add @capgo/native-market
25
+ ```
26
+
27
+ Sync native files
28
+
29
+ ```bash
30
+ npx cap sync
31
+ ```
32
+
33
+ iOS Platform: No further action required.
34
+
35
+ Android Platform: No further action required.
36
+
37
+ ## Configuration
38
+
39
+ No configuration required for this plugin
40
+
41
+ ## Supported methods
42
+
43
+ | Name | Android | iOS | Web |
44
+ | :------------------- | :------ | :-- | :-- |
45
+ | openStoreListing | ✅ | ✅ | ❌ |
46
+ | openDevPage | ✅ | ❌ | ❌ |
47
+ | openCollection | ✅ | ❌ | ❌ |
48
+ | openEditorChoicePage | ✅ | ❌ | ❌ |
49
+ | search | ✅ | ✅ | ❌ |
50
+
51
+ ## Usage
52
+
53
+ ```typescript
54
+ import { NativeMarket } from "@capgo/native-market";
55
+
56
+ /**
57
+ * This method will launch link in Play/App Store.
58
+ * @param appId - ID of your application. Eg. com.example.app
59
+ * @returns void
60
+ */
61
+ NativeMarket.openStoreListing({
62
+ appId: "com.example.app",
63
+ });
64
+
65
+ /**
66
+ * This method will deep-link directly to an Play/App store listing page.
67
+ * @param devId - ID of developer. Eg. com.example.app
68
+ * @returns void
69
+ */
70
+ NativeMarket.openDevPage({
71
+ devId: "5700313618786177705",
72
+ });
73
+
74
+ /**
75
+ * This method will link users to a collection or top charts.
76
+ * @param name - name of the collection. Click [here](https://developer.android.com/distribute/marketing-tools/linking-to-google-play#OpeningCollection) for android options.
77
+ * @returns void
78
+ */
79
+ NativeMarket.openCollection({
80
+ name: "featured",
81
+ });
82
+
83
+ /**
84
+ * This method will link users to Editor's choice page.
85
+ * @param editorChoice - ID of your application. Eg. editorial_fitness_apps_us
86
+ * @returns void
87
+ */
88
+ NativeMarket.openEditorChoicePage({
89
+ editorChoice: "editorial_fitness_apps_us",
90
+ });
91
+
92
+ /**
93
+ * This method will link users to custom search query.
94
+ * @param editorChoice - terms to be searched in Play/App store.
95
+ * @returns void
96
+ */
97
+ NativeMarket.search({
98
+ terms: "capacitor",
99
+ });
100
+ ```
101
+
102
+ <docgen-api>
103
+ <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
104
+
105
+ ### openStoreListing(...)
106
+
107
+ ```typescript
108
+ openStoreListing(options: { appId: string; }) => Promise<void>
109
+ ```
110
+
111
+ This method will launch link in Play/App Store.
112
+
113
+ | Param | Type |
114
+ | ------------- | ------------------------------- |
115
+ | **`options`** | <code>{ appId: string; }</code> |
116
+
117
+ **Since:** 1.0.0
118
+
119
+ --------------------
120
+
121
+
122
+ ### openDevPage(...)
123
+
124
+ ```typescript
125
+ openDevPage(options: { devId: string; }) => Promise<void>
126
+ ```
127
+
128
+ This method will deep-link directly to an Play/App store listing page.
129
+
130
+ Only in Android.
131
+
132
+ | Param | Type |
133
+ | ------------- | ------------------------------- |
134
+ | **`options`** | <code>{ devId: string; }</code> |
135
+
136
+ **Since:** 1.0.0
137
+
138
+ --------------------
139
+
140
+
141
+ ### openCollection(...)
142
+
143
+ ```typescript
144
+ openCollection(options: { name: string; }) => Promise<void>
145
+ ```
146
+
147
+ This method will link users to a collection or top charts.
148
+ Only in Android.
149
+
150
+ | Param | Type |
151
+ | ------------- | ------------------------------ |
152
+ | **`options`** | <code>{ name: string; }</code> |
153
+
154
+ **Since:** 1.0.0
155
+
156
+ --------------------
157
+
158
+
159
+ ### openEditorChoicePage(...)
160
+
161
+ ```typescript
162
+ openEditorChoicePage(options: { editorChoice: string; }) => Promise<void>
163
+ ```
164
+
165
+ This method will link users to Editor's choice page.
166
+
167
+ Only in Android.
168
+
169
+ | Param | Type |
170
+ | ------------- | -------------------------------------- |
171
+ | **`options`** | <code>{ editorChoice: string; }</code> |
172
+
173
+ **Since:** 1.0.0
174
+
175
+ --------------------
176
+
177
+
178
+ ### search(...)
179
+
180
+ ```typescript
181
+ search(options: { terms: string; }) => Promise<void>
182
+ ```
183
+
184
+ This method will link users to custom search query.
185
+
186
+ Only in Android.
187
+
188
+ | Param | Type |
189
+ | ------------- | ------------------------------- |
190
+ | **`options`** | <code>{ terms: string; }</code> |
191
+
192
+ **Since:** 1.0.0
193
+
194
+ --------------------
195
+
196
+ </docgen-api>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <classpath>
3
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
4
+ <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
5
+ <classpathentry kind="output" path="bin/default"/>
6
+ </classpath>
@@ -0,0 +1,109 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.linked.project.id="android" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="android-gradle" name="Android-Gradle">
5
+ <configuration>
6
+ <option name="GRADLE_PROJECT_PATH" value=":" />
7
+ <option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" value="3.6.1" />
8
+ <option name="LAST_KNOWN_AGP_VERSION" value="3.6.1" />
9
+ </configuration>
10
+ </facet>
11
+ <facet type="android" name="Android">
12
+ <configuration>
13
+ <option name="SELECTED_BUILD_VARIANT" value="debug" />
14
+ <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
15
+ <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
16
+ <afterSyncTasks>
17
+ <task>generateDebugSources</task>
18
+ </afterSyncTasks>
19
+ <option name="ALLOW_USER_CONFIGURATION" value="false" />
20
+ <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
21
+ <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
22
+ <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/src/debug/res;file://$MODULE_DIR$/build/generated/res/rs/debug" />
23
+ <option name="TEST_RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/androidTest/res;file://$MODULE_DIR$/src/test/res;file://$MODULE_DIR$/src/androidTestDebug/res;file://$MODULE_DIR$/src/testDebug/res;file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" />
24
+ <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
25
+ <option name="PROJECT_TYPE" value="1" />
26
+ </configuration>
27
+ </facet>
28
+ </component>
29
+ <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7">
30
+ <output url="file://$MODULE_DIR$/build/intermediates/javac/debug/classes" />
31
+ <output-test url="file://$MODULE_DIR$/build/intermediates/javac/debugUnitTest/classes" />
32
+ <exclude-output />
33
+ <content url="file://$MODULE_DIR$">
34
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debug/out" isTestSource="false" generated="true" />
35
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debug/out" isTestSource="false" generated="true" />
36
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
37
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debug/out" isTestSource="false" generated="true" />
38
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" generated="true" />
39
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debugAndroidTest/out" isTestSource="true" generated="true" />
40
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/aidl_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
41
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
42
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/renderscript_source_output_dir/debugAndroidTest/out" isTestSource="true" generated="true" />
43
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" generated="true" />
44
+ <sourceFolder url="file://$MODULE_DIR$/build/generated/ap_generated_sources/debugUnitTest/out" isTestSource="true" generated="true" />
45
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
46
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
47
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
48
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
49
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
50
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
51
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
52
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/res" type="java-test-resource" />
53
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/resources" type="java-test-resource" />
54
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/assets" type="java-test-resource" />
55
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/aidl" isTestSource="true" />
56
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/java" isTestSource="true" />
57
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/rs" isTestSource="true" />
58
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTestDebug/shaders" isTestSource="true" />
59
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
60
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
61
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
62
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
63
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
64
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
65
+ <sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
66
+ <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
67
+ <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
68
+ <sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
69
+ <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
70
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
71
+ <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
72
+ <sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
73
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
74
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
75
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
76
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
77
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
78
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
79
+ <sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
80
+ <sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
81
+ <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
82
+ <sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
83
+ <sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
84
+ <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
85
+ <sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
86
+ <sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
87
+ <excludeFolder url="file://$MODULE_DIR$/build" />
88
+ </content>
89
+ <orderEntry type="jdk" jdkName="Android API 29 Platform" jdkType="Android SDK" />
90
+ <orderEntry type="sourceFolder" forTests="false" />
91
+ <orderEntry type="library" scope="TEST" name="Gradle: junit:junit:4.12@jar" level="project" />
92
+ <orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-integration:1.3@jar" level="project" />
93
+ <orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-library:1.3@jar" level="project" />
94
+ <orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-core:1.3@jar" level="project" />
95
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.lifecycle:lifecycle-common:2.1.0@jar" level="project" />
96
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.annotation:annotation:1.1.0@jar" level="project" />
97
+ <orderEntry type="library" scope="TEST" name="Gradle: net.sf.kxml:kxml2:2.3.0@jar" level="project" />
98
+ <orderEntry type="library" scope="TEST" name="Gradle: com.squareup:javawriter:2.1.1@jar" level="project" />
99
+ <orderEntry type="library" scope="TEST" name="Gradle: javax.inject:javax.inject:1@jar" level="project" />
100
+ <orderEntry type="library" scope="TEST" name="Gradle: com.google.code.findbugs:jsr305:2.0.1@jar" level="project" />
101
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.test.ext:junit:1.1.1@aar" level="project" />
102
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.test.espresso:espresso-core:3.2.0@aar" level="project" />
103
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.test:runner:1.2.0@aar" level="project" />
104
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.test:core:1.2.0@aar" level="project" />
105
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.test:monitor:1.2.0@aar" level="project" />
106
+ <orderEntry type="library" scope="TEST" name="Gradle: androidx.test.espresso:espresso-idling-resource:3.2.0@aar" level="project" />
107
+ <orderEntry type="module" module-name="capacitor-android" />
108
+ </component>
109
+ </module>
@@ -0,0 +1,55 @@
1
+ ext {
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.12'
3
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.1'
4
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.2.0'
5
+ }
6
+
7
+ buildscript {
8
+ repositories {
9
+ google()
10
+ jcenter()
11
+ }
12
+ dependencies {
13
+ classpath 'com.android.tools.build:gradle:3.6.1'
14
+ }
15
+ }
16
+
17
+ apply plugin: 'com.android.library'
18
+
19
+ android {
20
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 29
21
+ defaultConfig {
22
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
23
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 29
24
+ versionCode 1
25
+ versionName "1.0"
26
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
27
+ }
28
+ buildTypes {
29
+ release {
30
+ minifyEnabled false
31
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
32
+ }
33
+ }
34
+ lintOptions {
35
+ abortOnError false
36
+ }
37
+ }
38
+
39
+ repositories {
40
+ google()
41
+ jcenter()
42
+ mavenCentral()
43
+ }
44
+
45
+
46
+ dependencies {
47
+ // cf. https://github.com/capacitor-community/firebase-analytics/issues/55
48
+ implementation "androidx.appcompat:appcompat:1.2.0"
49
+
50
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
51
+ implementation project(':capacitor-android')
52
+ testImplementation "junit:junit:$junitVersion"
53
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
54
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
55
+ }
@@ -0,0 +1,6 @@
1
+ #Fri Dec 01 12:41:00 CST 2017
2
+ distributionBase=GRADLE_USER_HOME
3
+ distributionPath=wrapper/dists
4
+ zipStoreBase=GRADLE_USER_HOME
5
+ zipStorePath=wrapper/dists
6
+ distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
@@ -0,0 +1,21 @@
1
+ # Project-wide Gradle settings.
2
+
3
+ # IDE (e.g. Android Studio) users:
4
+ # Gradle settings configured through the IDE *will override*
5
+ # any settings specified in this file.
6
+
7
+ # For more details on how to configure your build environment visit
8
+ # http://www.gradle.org/docs/current/userguide/build_environment.html
9
+
10
+ # Specifies the JVM arguments used for the daemon process.
11
+ # The setting is particularly useful for tweaking memory settings.
12
+ org.gradle.jvmargs=-Xmx1536m
13
+
14
+ # When configured, Gradle will run in incubating parallel mode.
15
+ # This option should only be used with decoupled projects. More details, visit
16
+ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17
+ # org.gradle.parallel=true
18
+
19
+ # Supports AndroidX
20
+ android.useAndroidX=true
21
+ android.enableJetifier=true
@@ -0,0 +1,160 @@
1
+ #!/usr/bin/env bash
2
+
3
+ ##############################################################################
4
+ ##
5
+ ## Gradle start up script for UN*X
6
+ ##
7
+ ##############################################################################
8
+
9
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10
+ DEFAULT_JVM_OPTS=""
11
+
12
+ APP_NAME="Gradle"
13
+ APP_BASE_NAME=`basename "$0"`
14
+
15
+ # Use the maximum available, or set MAX_FD != -1 to use that value.
16
+ MAX_FD="maximum"
17
+
18
+ warn ( ) {
19
+ echo "$*"
20
+ }
21
+
22
+ die ( ) {
23
+ echo
24
+ echo "$*"
25
+ echo
26
+ exit 1
27
+ }
28
+
29
+ # OS specific support (must be 'true' or 'false').
30
+ cygwin=false
31
+ msys=false
32
+ darwin=false
33
+ case "`uname`" in
34
+ CYGWIN* )
35
+ cygwin=true
36
+ ;;
37
+ Darwin* )
38
+ darwin=true
39
+ ;;
40
+ MINGW* )
41
+ msys=true
42
+ ;;
43
+ esac
44
+
45
+ # Attempt to set APP_HOME
46
+ # Resolve links: $0 may be a link
47
+ PRG="$0"
48
+ # Need this for relative symlinks.
49
+ while [ -h "$PRG" ] ; do
50
+ ls=`ls -ld "$PRG"`
51
+ link=`expr "$ls" : '.*-> \(.*\)$'`
52
+ if expr "$link" : '/.*' > /dev/null; then
53
+ PRG="$link"
54
+ else
55
+ PRG=`dirname "$PRG"`"/$link"
56
+ fi
57
+ done
58
+ SAVED="`pwd`"
59
+ cd "`dirname \"$PRG\"`/" >/dev/null
60
+ APP_HOME="`pwd -P`"
61
+ cd "$SAVED" >/dev/null
62
+
63
+ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64
+
65
+ # Determine the Java command to use to start the JVM.
66
+ if [ -n "$JAVA_HOME" ] ; then
67
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68
+ # IBM's JDK on AIX uses strange locations for the executables
69
+ JAVACMD="$JAVA_HOME/jre/sh/java"
70
+ else
71
+ JAVACMD="$JAVA_HOME/bin/java"
72
+ fi
73
+ if [ ! -x "$JAVACMD" ] ; then
74
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75
+
76
+ Please set the JAVA_HOME variable in your environment to match the
77
+ location of your Java installation."
78
+ fi
79
+ else
80
+ JAVACMD="java"
81
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82
+
83
+ Please set the JAVA_HOME variable in your environment to match the
84
+ location of your Java installation."
85
+ fi
86
+
87
+ # Increase the maximum file descriptors if we can.
88
+ if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89
+ MAX_FD_LIMIT=`ulimit -H -n`
90
+ if [ $? -eq 0 ] ; then
91
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92
+ MAX_FD="$MAX_FD_LIMIT"
93
+ fi
94
+ ulimit -n $MAX_FD
95
+ if [ $? -ne 0 ] ; then
96
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
97
+ fi
98
+ else
99
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100
+ fi
101
+ fi
102
+
103
+ # For Darwin, add options to specify how the application appears in the dock
104
+ if $darwin; then
105
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106
+ fi
107
+
108
+ # For Cygwin, switch paths to Windows format before running java
109
+ if $cygwin ; then
110
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112
+ JAVACMD=`cygpath --unix "$JAVACMD"`
113
+
114
+ # We build the pattern for arguments to be converted via cygpath
115
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116
+ SEP=""
117
+ for dir in $ROOTDIRSRAW ; do
118
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
119
+ SEP="|"
120
+ done
121
+ OURCYGPATTERN="(^($ROOTDIRS))"
122
+ # Add a user-defined pattern to the cygpath arguments
123
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125
+ fi
126
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
127
+ i=0
128
+ for arg in "$@" ; do
129
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131
+
132
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134
+ else
135
+ eval `echo args$i`="\"$arg\""
136
+ fi
137
+ i=$((i+1))
138
+ done
139
+ case $i in
140
+ (0) set -- ;;
141
+ (1) set -- "$args0" ;;
142
+ (2) set -- "$args0" "$args1" ;;
143
+ (3) set -- "$args0" "$args1" "$args2" ;;
144
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150
+ esac
151
+ fi
152
+
153
+ # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154
+ function splitJvmOpts() {
155
+ JVM_OPTS=("$@")
156
+ }
157
+ eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158
+ JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159
+
160
+ exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"