Parcourir la source

Merge branch 'eliam-sprint-1'

eliam.ruiz il y a 2 ans
Parent
révision
c87b96acfb

+ 10
- 0
android/app/src/main/res/xml/config2.xml Voir le fichier

@@ -0,0 +1,10 @@
1
+<?xml version='1.0' encoding='utf-8'?>
2
+<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3
+  <access origin="*" />
4
+  
5
+  <feature name="CallNumber">
6
+    <param name="android-package" value="mx.ferreyra.callnumber.CFCallNumber"/>
7
+  </feature>
8
+
9
+  
10
+</widget>

+ 10
- 0
ios/App/App/config 2.xml Voir le fichier

@@ -0,0 +1,10 @@
1
+<?xml version='1.0' encoding='utf-8'?>
2
+<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3
+  <access origin="*" />
4
+  
5
+  <feature name="CallNumber">
6
+    <param name="ios-package" value="CFCallNumber"/>
7
+  </feature>
8
+
9
+  
10
+</widget>

+ 10
- 0
ios/App/App/config 3.xml Voir le fichier

@@ -0,0 +1,10 @@
1
+<?xml version='1.0' encoding='utf-8'?>
2
+<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3
+  <access origin="*" />
4
+  
5
+  <feature name="CallNumber">
6
+    <param name="ios-package" value="CFCallNumber"/>
7
+  </feature>
8
+
9
+  
10
+</widget>

+ 1
- 0
ios/App/Podfile Voir le fichier

@@ -15,6 +15,7 @@ def capacitor_pods
15 15
   pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
16 16
   pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
17 17
   pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
18
+  pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
18 19
 end
19 20
 
20 21
 target 'App' do

+ 52
- 0
ios/App/Podfile 2.lock Voir le fichier

@@ -0,0 +1,52 @@
1
+PODS:
2
+  - Capacitor (4.4.0):
3
+    - CapacitorCordova
4
+  - CapacitorApp (4.1.0):
5
+    - Capacitor
6
+  - CapacitorCordova (4.4.0)
7
+  - CapacitorHaptics (4.0.1):
8
+    - Capacitor
9
+  - CapacitorKeyboard (4.0.1):
10
+    - Capacitor
11
+  - CapacitorStatusBar (4.0.1):
12
+    - Capacitor
13
+  - CordovaPlugins (4.4.0):
14
+    - CapacitorCordova
15
+
16
+DEPENDENCIES:
17
+  - "Capacitor (from `../../node_modules/@capacitor/ios`)"
18
+  - "CapacitorApp (from `../../node_modules/@capacitor/app`)"
19
+  - "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
20
+  - "CapacitorHaptics (from `../../node_modules/@capacitor/haptics`)"
21
+  - "CapacitorKeyboard (from `../../node_modules/@capacitor/keyboard`)"
22
+  - "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)"
23
+  - CordovaPlugins (from `../capacitor-cordova-ios-plugins`)
24
+
25
+EXTERNAL SOURCES:
26
+  Capacitor:
27
+    :path: "../../node_modules/@capacitor/ios"
28
+  CapacitorApp:
29
+    :path: "../../node_modules/@capacitor/app"
30
+  CapacitorCordova:
31
+    :path: "../../node_modules/@capacitor/ios"
32
+  CapacitorHaptics:
33
+    :path: "../../node_modules/@capacitor/haptics"
34
+  CapacitorKeyboard:
35
+    :path: "../../node_modules/@capacitor/keyboard"
36
+  CapacitorStatusBar:
37
+    :path: "../../node_modules/@capacitor/status-bar"
38
+  CordovaPlugins:
39
+    :path: "../capacitor-cordova-ios-plugins"
40
+
41
+SPEC CHECKSUMS:
42
+  Capacitor: 868367fcfeb3ba6bfabaefc63c072e6478bd046d
43
+  CapacitorApp: 6e250f9e67560a340aac4078af357fb5e5c303e0
44
+  CapacitorCordova: 0c0b4edc7ce94fd560eadc3a6d36d5ee6453ada6
45
+  CapacitorHaptics: 02d48e2efca06ccf3273dbb638b68b0e145f623a
46
+  CapacitorKeyboard: 3b49a9d517641c123fb691713f99a89d6ebf3a37
47
+  CapacitorStatusBar: e6cf2a9ed07f92ddae9ca101be36d08c61866b35
48
+  CordovaPlugins: c646c530b24da2d898e32369a739e7b88904b548
49
+
50
+PODFILE CHECKSUM: 0381d09167db361ed446a10f049fd27bab1b40b1
51
+
52
+COCOAPODS: 1.11.3

+ 52
- 0
ios/App/Podfile 3.lock Voir le fichier

@@ -0,0 +1,52 @@
1
+PODS:
2
+  - Capacitor (4.4.0):
3
+    - CapacitorCordova
4
+  - CapacitorApp (4.1.0):
5
+    - Capacitor
6
+  - CapacitorCordova (4.4.0)
7
+  - CapacitorHaptics (4.0.1):
8
+    - Capacitor
9
+  - CapacitorKeyboard (4.0.1):
10
+    - Capacitor
11
+  - CapacitorStatusBar (4.0.1):
12
+    - Capacitor
13
+  - CordovaPlugins (4.4.0):
14
+    - CapacitorCordova
15
+
16
+DEPENDENCIES:
17
+  - "Capacitor (from `../../node_modules/@capacitor/ios`)"
18
+  - "CapacitorApp (from `../../node_modules/@capacitor/app`)"
19
+  - "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
20
+  - "CapacitorHaptics (from `../../node_modules/@capacitor/haptics`)"
21
+  - "CapacitorKeyboard (from `../../node_modules/@capacitor/keyboard`)"
22
+  - "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)"
23
+  - CordovaPlugins (from `../capacitor-cordova-ios-plugins`)
24
+
25
+EXTERNAL SOURCES:
26
+  Capacitor:
27
+    :path: "../../node_modules/@capacitor/ios"
28
+  CapacitorApp:
29
+    :path: "../../node_modules/@capacitor/app"
30
+  CapacitorCordova:
31
+    :path: "../../node_modules/@capacitor/ios"
32
+  CapacitorHaptics:
33
+    :path: "../../node_modules/@capacitor/haptics"
34
+  CapacitorKeyboard:
35
+    :path: "../../node_modules/@capacitor/keyboard"
36
+  CapacitorStatusBar:
37
+    :path: "../../node_modules/@capacitor/status-bar"
38
+  CordovaPlugins:
39
+    :path: "../capacitor-cordova-ios-plugins"
40
+
41
+SPEC CHECKSUMS:
42
+  Capacitor: 868367fcfeb3ba6bfabaefc63c072e6478bd046d
43
+  CapacitorApp: 6e250f9e67560a340aac4078af357fb5e5c303e0
44
+  CapacitorCordova: 0c0b4edc7ce94fd560eadc3a6d36d5ee6453ada6
45
+  CapacitorHaptics: 02d48e2efca06ccf3273dbb638b68b0e145f623a
46
+  CapacitorKeyboard: 3b49a9d517641c123fb691713f99a89d6ebf3a37
47
+  CapacitorStatusBar: e6cf2a9ed07f92ddae9ca101be36d08c61866b35
48
+  CordovaPlugins: c646c530b24da2d898e32369a739e7b88904b548
49
+
50
+PODFILE CHECKSUM: 0381d09167db361ed446a10f049fd27bab1b40b1
51
+
52
+COCOAPODS: 1.11.3

+ 52
- 0
ios/App/Podfile 4.lock Voir le fichier

@@ -0,0 +1,52 @@
1
+PODS:
2
+  - Capacitor (4.4.0):
3
+    - CapacitorCordova
4
+  - CapacitorApp (4.1.0):
5
+    - Capacitor
6
+  - CapacitorCordova (4.4.0)
7
+  - CapacitorHaptics (4.0.1):
8
+    - Capacitor
9
+  - CapacitorKeyboard (4.0.1):
10
+    - Capacitor
11
+  - CapacitorStatusBar (4.0.1):
12
+    - Capacitor
13
+  - CordovaPlugins (4.4.0):
14
+    - CapacitorCordova
15
+
16
+DEPENDENCIES:
17
+  - "Capacitor (from `../../node_modules/@capacitor/ios`)"
18
+  - "CapacitorApp (from `../../node_modules/@capacitor/app`)"
19
+  - "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
20
+  - "CapacitorHaptics (from `../../node_modules/@capacitor/haptics`)"
21
+  - "CapacitorKeyboard (from `../../node_modules/@capacitor/keyboard`)"
22
+  - "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)"
23
+  - CordovaPlugins (from `../capacitor-cordova-ios-plugins`)
24
+
25
+EXTERNAL SOURCES:
26
+  Capacitor:
27
+    :path: "../../node_modules/@capacitor/ios"
28
+  CapacitorApp:
29
+    :path: "../../node_modules/@capacitor/app"
30
+  CapacitorCordova:
31
+    :path: "../../node_modules/@capacitor/ios"
32
+  CapacitorHaptics:
33
+    :path: "../../node_modules/@capacitor/haptics"
34
+  CapacitorKeyboard:
35
+    :path: "../../node_modules/@capacitor/keyboard"
36
+  CapacitorStatusBar:
37
+    :path: "../../node_modules/@capacitor/status-bar"
38
+  CordovaPlugins:
39
+    :path: "../capacitor-cordova-ios-plugins"
40
+
41
+SPEC CHECKSUMS:
42
+  Capacitor: 868367fcfeb3ba6bfabaefc63c072e6478bd046d
43
+  CapacitorApp: 6e250f9e67560a340aac4078af357fb5e5c303e0
44
+  CapacitorCordova: 0c0b4edc7ce94fd560eadc3a6d36d5ee6453ada6
45
+  CapacitorHaptics: 02d48e2efca06ccf3273dbb638b68b0e145f623a
46
+  CapacitorKeyboard: 3b49a9d517641c123fb691713f99a89d6ebf3a37
47
+  CapacitorStatusBar: e6cf2a9ed07f92ddae9ca101be36d08c61866b35
48
+  CordovaPlugins: c646c530b24da2d898e32369a739e7b88904b548
49
+
50
+PODFILE CHECKSUM: 0381d09167db361ed446a10f049fd27bab1b40b1
51
+
52
+COCOAPODS: 1.11.3

+ 201
- 10
package-lock.json Voir le fichier

@@ -8,6 +8,9 @@
8 8
       "name": "renacer",
9 9
       "version": "0.0.1",
10 10
       "dependencies": {
11
+        "@awesome-cordova-plugins/call-number": "^6.2.0",
12
+        "@awesome-cordova-plugins/core": "^6.2.0",
13
+        "@awesome-cordova-plugins/email-composer": "^6.2.0",
11 14
         "@capacitor/android": "4.4.0",
12 15
         "@capacitor/app": "^4.1.0",
13 16
         "@capacitor/core": "4.4.0",
@@ -15,6 +18,7 @@
15 18
         "@capacitor/ios": "4.4.0",
16 19
         "@capacitor/keyboard": "^4.0.1",
17 20
         "@capacitor/status-bar": "^4.0.1",
21
+        "@ionic-native/call-number": "^5.36.0",
18 22
         "@ionic/react": "^6.0.0",
19 23
         "@ionic/react-router": "^6.0.0",
20 24
         "@testing-library/jest-dom": "^5.11.9",
@@ -26,6 +30,8 @@
26 30
         "@types/react-dom": "^18.0.6",
27 31
         "@types/react-router": "^5.1.11",
28 32
         "@types/react-router-dom": "^5.1.7",
33
+        "call-number": "^1.0.1",
34
+        "cordova-plugin-email-composer": "^0.10.1",
29 35
         "history": "^4.9.0",
30 36
         "ionicons": "^6.0.3",
31 37
         "lodash": "^4.17.21",
@@ -78,6 +84,41 @@
78 84
         "node": ">=6.0.0"
79 85
       }
80 86
     },
87
+    "node_modules/@awesome-cordova-plugins/call-number": {
88
+      "version": "6.2.0",
89
+      "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/call-number/-/call-number-6.2.0.tgz",
90
+      "integrity": "sha512-lcMZcdjob+E044McEgwHA7ylBsM/9lefEQczDed4iN5Tjk3sb2yJhofme4gMyZewUw7L8IN56x4Mm86INNwVZA==",
91
+      "dependencies": {
92
+        "@types/cordova": "latest"
93
+      },
94
+      "peerDependencies": {
95
+        "@awesome-cordova-plugins/core": "^6.0.1",
96
+        "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0"
97
+      }
98
+    },
99
+    "node_modules/@awesome-cordova-plugins/core": {
100
+      "version": "6.2.0",
101
+      "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/core/-/core-6.2.0.tgz",
102
+      "integrity": "sha512-z5rKlTuQpLLPEIgzOmomQdoiRw5Sal2blh5CJRcjqh8ktspefbNC81Ni0MykPdV78/UlRORTHEzxugpcEcl1RQ==",
103
+      "dependencies": {
104
+        "@types/cordova": "latest"
105
+      },
106
+      "peerDependencies": {
107
+        "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0"
108
+      }
109
+    },
110
+    "node_modules/@awesome-cordova-plugins/email-composer": {
111
+      "version": "6.2.0",
112
+      "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/email-composer/-/email-composer-6.2.0.tgz",
113
+      "integrity": "sha512-OI4p2pH2u92jlJT6EvldMf+TbWfVhMcoa94xlAbQbVET04xwKkWYpuHonLkNJm3MekDiQUJ4Rpe20XzNAEEefA==",
114
+      "dependencies": {
115
+        "@types/cordova": "latest"
116
+      },
117
+      "peerDependencies": {
118
+        "@awesome-cordova-plugins/core": "^6.0.1",
119
+        "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0"
120
+      }
121
+    },
81 122
     "node_modules/@babel/code-frame": {
82 123
       "version": "7.18.6",
83 124
       "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",
@@ -2538,6 +2579,30 @@
2538 2579
       "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
2539 2580
       "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA=="
2540 2581
     },
2582
+    "node_modules/@ionic-native/call-number": {
2583
+      "version": "5.36.0",
2584
+      "resolved": "https://registry.npmjs.org/@ionic-native/call-number/-/call-number-5.36.0.tgz",
2585
+      "integrity": "sha512-SFO76ebbwBEeqvgujWwqUTuFOx+qRxN7gGfXCid29ZE81TyRkNLeDUloRbTpfJs3NKSpHBonz1h73JEJTCRCfg==",
2586
+      "dependencies": {
2587
+        "@types/cordova": "latest"
2588
+      },
2589
+      "peerDependencies": {
2590
+        "@ionic-native/core": "^5.1.0",
2591
+        "rxjs": "^5.5.0 || ^6.5.0"
2592
+      }
2593
+    },
2594
+    "node_modules/@ionic-native/core": {
2595
+      "version": "5.36.0",
2596
+      "resolved": "https://registry.npmjs.org/@ionic-native/core/-/core-5.36.0.tgz",
2597
+      "integrity": "sha512-lOrkktadlKYbYf1LrDyAtsu1JnQ0oCCdkOU7iHQ8oXnNOkMwobFfD2m62F1CoOr0u9LIkpYnZSPjng8lZbmbNw==",
2598
+      "peer": true,
2599
+      "dependencies": {
2600
+        "@types/cordova": "latest"
2601
+      },
2602
+      "peerDependencies": {
2603
+        "rxjs": "^5.5.0 || ^6.5.0"
2604
+      }
2605
+    },
2541 2606
     "node_modules/@ionic/cli-framework": {
2542 2607
       "version": "5.1.3",
2543 2608
       "resolved": "https://registry.npmjs.org/@ionic/cli-framework/-/cli-framework-5.1.3.tgz",
@@ -3800,6 +3865,11 @@
3800 3865
         "@types/node": "*"
3801 3866
       }
3802 3867
     },
3868
+    "node_modules/@types/cordova": {
3869
+      "version": "0.0.34",
3870
+      "resolved": "https://registry.npmjs.org/@types/cordova/-/cordova-0.0.34.tgz",
3871
+      "integrity": "sha512-rkiiTuf/z2wTd4RxFOb+clE7PF4AEJU0hsczbUdkHHBtkUmpWQpEddynNfJYKYtZFJKbq4F+brfekt1kx85IZA=="
3872
+    },
3803 3873
     "node_modules/@types/eslint": {
3804 3874
       "version": "8.4.10",
3805 3875
       "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz",
@@ -5586,6 +5656,11 @@
5586 5656
         "url": "https://github.com/sponsors/ljharb"
5587 5657
       }
5588 5658
     },
5659
+    "node_modules/call-number": {
5660
+      "version": "1.0.1",
5661
+      "resolved": "https://registry.npmjs.org/call-number/-/call-number-1.0.1.tgz",
5662
+      "integrity": "sha512-ud/6f7FukzwdinAWRKBn1DwATXDRylEBLlXYZq+51NTdWfeFdukorNtVIC/TPtXD6zYIg4WWGif0ayMPhfiizw=="
5663
+    },
5589 5664
     "node_modules/callsites": {
5590 5665
       "version": "3.1.0",
5591 5666
       "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
@@ -6124,6 +6199,29 @@
6124 6199
         "toggle-selection": "^1.0.6"
6125 6200
       }
6126 6201
     },
6202
+    "node_modules/cordova-plugin-email-composer": {
6203
+      "version": "0.10.1",
6204
+      "resolved": "https://registry.npmjs.org/cordova-plugin-email-composer/-/cordova-plugin-email-composer-0.10.1.tgz",
6205
+      "integrity": "sha512-FM7hmy2jDkhM5VqjtUmIUoCjB2IRCy9sK+ElWai3xidoCV6+UCaTxACLnIcpu/FGfMoC54WLDlb3dim8Oo0vyw==",
6206
+      "engines": [
6207
+        {
6208
+          "name": "cordova",
6209
+          "version": ">=6.0.0"
6210
+        },
6211
+        {
6212
+          "name": "cordova-android",
6213
+          "version": ">=6.2.0"
6214
+        },
6215
+        {
6216
+          "name": "cordova-ios",
6217
+          "version": ">=4.0.0"
6218
+        },
6219
+        {
6220
+          "name": "cordova-windows",
6221
+          "version": ">=4.3.0"
6222
+        }
6223
+      ]
6224
+    },
6127 6225
     "node_modules/core-js": {
6128 6226
       "version": "3.26.1",
6129 6227
       "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.1.tgz",
@@ -11417,6 +11515,15 @@
11417 11515
         }
11418 11516
       }
11419 11517
     },
11518
+    "node_modules/listr2/node_modules/rxjs": {
11519
+      "version": "7.8.0",
11520
+      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz",
11521
+      "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==",
11522
+      "dev": true,
11523
+      "dependencies": {
11524
+        "tslib": "^2.1.0"
11525
+      }
11526
+    },
11420 11527
     "node_modules/loader-runner": {
11421 11528
       "version": "4.3.0",
11422 11529
       "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz",
@@ -15201,14 +15308,23 @@
15201 15308
       }
15202 15309
     },
15203 15310
     "node_modules/rxjs": {
15204
-      "version": "7.6.0",
15205
-      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz",
15206
-      "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==",
15207
-      "dev": true,
15311
+      "version": "6.6.7",
15312
+      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
15313
+      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
15314
+      "peer": true,
15208 15315
       "dependencies": {
15209
-        "tslib": "^2.1.0"
15316
+        "tslib": "^1.9.0"
15317
+      },
15318
+      "engines": {
15319
+        "npm": ">=2.0.0"
15210 15320
       }
15211 15321
     },
15322
+    "node_modules/rxjs/node_modules/tslib": {
15323
+      "version": "1.14.1",
15324
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
15325
+      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
15326
+      "peer": true
15327
+    },
15212 15328
     "node_modules/safe-buffer": {
15213 15329
       "version": "5.2.1",
15214 15330
       "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
@@ -18049,6 +18165,30 @@
18049 18165
         "@jridgewell/trace-mapping": "^0.3.9"
18050 18166
       }
18051 18167
     },
18168
+    "@awesome-cordova-plugins/call-number": {
18169
+      "version": "6.2.0",
18170
+      "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/call-number/-/call-number-6.2.0.tgz",
18171
+      "integrity": "sha512-lcMZcdjob+E044McEgwHA7ylBsM/9lefEQczDed4iN5Tjk3sb2yJhofme4gMyZewUw7L8IN56x4Mm86INNwVZA==",
18172
+      "requires": {
18173
+        "@types/cordova": "latest"
18174
+      }
18175
+    },
18176
+    "@awesome-cordova-plugins/core": {
18177
+      "version": "6.2.0",
18178
+      "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/core/-/core-6.2.0.tgz",
18179
+      "integrity": "sha512-z5rKlTuQpLLPEIgzOmomQdoiRw5Sal2blh5CJRcjqh8ktspefbNC81Ni0MykPdV78/UlRORTHEzxugpcEcl1RQ==",
18180
+      "requires": {
18181
+        "@types/cordova": "latest"
18182
+      }
18183
+    },
18184
+    "@awesome-cordova-plugins/email-composer": {
18185
+      "version": "6.2.0",
18186
+      "resolved": "https://registry.npmjs.org/@awesome-cordova-plugins/email-composer/-/email-composer-6.2.0.tgz",
18187
+      "integrity": "sha512-OI4p2pH2u92jlJT6EvldMf+TbWfVhMcoa94xlAbQbVET04xwKkWYpuHonLkNJm3MekDiQUJ4Rpe20XzNAEEefA==",
18188
+      "requires": {
18189
+        "@types/cordova": "latest"
18190
+      }
18191
+    },
18052 18192
     "@babel/code-frame": {
18053 18193
       "version": "7.18.6",
18054 18194
       "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz",
@@ -19688,6 +19828,23 @@
19688 19828
       "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
19689 19829
       "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA=="
19690 19830
     },
19831
+    "@ionic-native/call-number": {
19832
+      "version": "5.36.0",
19833
+      "resolved": "https://registry.npmjs.org/@ionic-native/call-number/-/call-number-5.36.0.tgz",
19834
+      "integrity": "sha512-SFO76ebbwBEeqvgujWwqUTuFOx+qRxN7gGfXCid29ZE81TyRkNLeDUloRbTpfJs3NKSpHBonz1h73JEJTCRCfg==",
19835
+      "requires": {
19836
+        "@types/cordova": "latest"
19837
+      }
19838
+    },
19839
+    "@ionic-native/core": {
19840
+      "version": "5.36.0",
19841
+      "resolved": "https://registry.npmjs.org/@ionic-native/core/-/core-5.36.0.tgz",
19842
+      "integrity": "sha512-lOrkktadlKYbYf1LrDyAtsu1JnQ0oCCdkOU7iHQ8oXnNOkMwobFfD2m62F1CoOr0u9LIkpYnZSPjng8lZbmbNw==",
19843
+      "peer": true,
19844
+      "requires": {
19845
+        "@types/cordova": "latest"
19846
+      }
19847
+    },
19691 19848
     "@ionic/cli-framework": {
19692 19849
       "version": "5.1.3",
19693 19850
       "resolved": "https://registry.npmjs.org/@ionic/cli-framework/-/cli-framework-5.1.3.tgz",
@@ -20606,6 +20763,11 @@
20606 20763
         "@types/node": "*"
20607 20764
       }
20608 20765
     },
20766
+    "@types/cordova": {
20767
+      "version": "0.0.34",
20768
+      "resolved": "https://registry.npmjs.org/@types/cordova/-/cordova-0.0.34.tgz",
20769
+      "integrity": "sha512-rkiiTuf/z2wTd4RxFOb+clE7PF4AEJU0hsczbUdkHHBtkUmpWQpEddynNfJYKYtZFJKbq4F+brfekt1kx85IZA=="
20770
+    },
20609 20771
     "@types/eslint": {
20610 20772
       "version": "8.4.10",
20611 20773
       "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.10.tgz",
@@ -21982,6 +22144,11 @@
21982 22144
         "get-intrinsic": "^1.0.2"
21983 22145
       }
21984 22146
     },
22147
+    "call-number": {
22148
+      "version": "1.0.1",
22149
+      "resolved": "https://registry.npmjs.org/call-number/-/call-number-1.0.1.tgz",
22150
+      "integrity": "sha512-ud/6f7FukzwdinAWRKBn1DwATXDRylEBLlXYZq+51NTdWfeFdukorNtVIC/TPtXD6zYIg4WWGif0ayMPhfiizw=="
22151
+    },
21985 22152
     "callsites": {
21986 22153
       "version": "3.1.0",
21987 22154
       "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
@@ -22392,6 +22559,11 @@
22392 22559
         "toggle-selection": "^1.0.6"
22393 22560
       }
22394 22561
     },
22562
+    "cordova-plugin-email-composer": {
22563
+      "version": "0.10.1",
22564
+      "resolved": "https://registry.npmjs.org/cordova-plugin-email-composer/-/cordova-plugin-email-composer-0.10.1.tgz",
22565
+      "integrity": "sha512-FM7hmy2jDkhM5VqjtUmIUoCjB2IRCy9sK+ElWai3xidoCV6+UCaTxACLnIcpu/FGfMoC54WLDlb3dim8Oo0vyw=="
22566
+    },
22395 22567
     "core-js": {
22396 22568
       "version": "3.26.1",
22397 22569
       "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.26.1.tgz",
@@ -26281,6 +26453,17 @@
26281 26453
         "rxjs": "^7.5.1",
26282 26454
         "through": "^2.3.8",
26283 26455
         "wrap-ansi": "^7.0.0"
26456
+      },
26457
+      "dependencies": {
26458
+        "rxjs": {
26459
+          "version": "7.8.0",
26460
+          "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz",
26461
+          "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==",
26462
+          "dev": true,
26463
+          "requires": {
26464
+            "tslib": "^2.1.0"
26465
+          }
26466
+        }
26284 26467
       }
26285 26468
     },
26286 26469
     "loader-runner": {
@@ -28859,12 +29042,20 @@
28859 29042
       }
28860 29043
     },
28861 29044
     "rxjs": {
28862
-      "version": "7.6.0",
28863
-      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz",
28864
-      "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==",
28865
-      "dev": true,
29045
+      "version": "6.6.7",
29046
+      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
29047
+      "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==",
29048
+      "peer": true,
28866 29049
       "requires": {
28867
-        "tslib": "^2.1.0"
29050
+        "tslib": "^1.9.0"
29051
+      },
29052
+      "dependencies": {
29053
+        "tslib": {
29054
+          "version": "1.14.1",
29055
+          "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
29056
+          "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
29057
+          "peer": true
29058
+        }
28868 29059
       }
28869 29060
     },
28870 29061
     "safe-buffer": {

+ 5
- 0
package.json Voir le fichier

@@ -3,6 +3,9 @@
3 3
   "version": "0.0.1",
4 4
   "private": true,
5 5
   "dependencies": {
6
+    "@awesome-cordova-plugins/call-number": "^6.2.0",
7
+    "@awesome-cordova-plugins/core": "^6.2.0",
8
+    "@awesome-cordova-plugins/email-composer": "^6.2.0",
6 9
     "@capacitor/android": "4.4.0",
7 10
     "@capacitor/app": "^4.1.0",
8 11
     "@capacitor/core": "4.4.0",
@@ -10,6 +13,7 @@
10 13
     "@capacitor/ios": "4.4.0",
11 14
     "@capacitor/keyboard": "^4.0.1",
12 15
     "@capacitor/status-bar": "^4.0.1",
16
+    "@ionic-native/call-number": "^5.36.0",
13 17
     "@ionic/react": "^6.0.0",
14 18
     "@ionic/react-router": "^6.0.0",
15 19
     "@testing-library/jest-dom": "^5.11.9",
@@ -21,6 +25,7 @@
21 25
     "@types/react-dom": "^18.0.6",
22 26
     "@types/react-router": "^5.1.11",
23 27
     "@types/react-router-dom": "^5.1.7",
28
+    "call-number": "^1.0.1",
24 29
     "history": "^4.9.0",
25 30
     "ionicons": "^6.0.3",
26 31
     "lodash": "^4.17.21",

BIN
public/assets/icon/email.png Voir le fichier


BIN
public/assets/icon/telephone.png Voir le fichier


+ 30
- 0
src/components/ButtonComponent.tsx Voir le fichier

@@ -0,0 +1,30 @@
1
+import { IonButton, IonContent, IonIcon, IonItem, IonText } from "@ionic/react";
2
+import { CallNumber } from "@awesome-cordova-plugins/call-number";
3
+import {
4
+ call,
5
+ mailOpen
6
+  } from "ionicons/icons";
7
+
8
+const ButtonComponent: React.FC<{
9
+  body: string;
10
+}> = (props) => {
11
+  const body = props.body;
12
+  return (
13
+    <IonText>
14
+      <IonButton expand="block" 
15
+        onClick={() => {
16
+          CallNumber.callNumber("7876247846", true);
17
+          alert("testing is this works");
18
+        }}
19
+      >
20
+         <IonIcon slot="start" icon={call}> </IonIcon>
21
+        Llamada
22
+      </IonButton>
23
+      <a href={"mailto:eliamruiz2027@gmail.com?cc=eliam.ruiz@upr.edu,&subject=Testing Ionic button&body=" + body + ""}>
24
+        <IonButton expand="block">
25
+        <IonIcon slot="start" icon={mailOpen}> </IonIcon> Correo Electrónico</IonButton>
26
+      </a>
27
+    </IonText>
28
+  );
29
+};
30
+export default ButtonComponent;

+ 3
- 0
src/pages/AboutListPage.tsx Voir le fichier

@@ -10,8 +10,10 @@ import {
10 10
   IonTitle,
11 11
   IonToolbar,
12 12
 } from "@ionic/react";
13
+import ButtonComponent from "../components/ButtonComponent"
13 14
 
14 15
 const AboutListPage: React.FC = () => {
16
+  let body= "Es de mi interés ponerme en contacto con ustedes para poder coordinar el uso de uno de sus servicios. También me gustaría saber donde están actualmente ubicados."
15 17
   return (
16 18
     <IonPage>
17 19
       <IonHeader>
@@ -86,6 +88,7 @@ const AboutListPage: React.FC = () => {
86 88
               <p className="ListItemText">Seguridad y Apoyo</p>
87 89
             </IonItem>
88 90
           </IonList>
91
+          <ButtonComponent body={body}></ButtonComponent>
89 92
         </IonContent>
90 93
       </IonContent>
91 94
     </IonPage>

+ 1
- 1
src/pages/Home.tsx Voir le fichier

@@ -46,4 +46,4 @@ const Home: React.FC = () => {
46 46
   );
47 47
 };
48 48
 
49
-export default Home;
49
+export default Home;