Compare commits
54 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 783a1a5cb4 | |||
| a746a70860 | |||
| 4cb0bc8288 | |||
| 45f19a7533 | |||
| f7eeef58df | |||
| 88c0cda3a4 | |||
| ae247a1695 | |||
| 87c5444a37 | |||
| 6ed4500c4b | |||
| 7e4d9c89bb | |||
| a467646cac | |||
| 05f6592b81 | |||
| b52e050dd6 | |||
| 10eaee71f8 | |||
| f953d5fdb4 | |||
| 5e61c126aa | |||
| 1e17ad257a | |||
| 2cbb4cd526 | |||
| b5525eda01 | |||
| 699bf1c159 | |||
| 1a28b6389f | |||
| cc38943d05 | |||
| eae914681d | |||
| c6c9461667 | |||
| 0fb0882666 | |||
| 4ff2b75121 | |||
| 6b6f189eda | |||
| 9e863ad6ca | |||
| c00a29a222 | |||
| e9b0343be7 | |||
| cca042ca61 | |||
| 5ab5309838 | |||
| c997c5d5a3 | |||
| 50c3937676 | |||
| 23c7069660 | |||
| f08a4b47aa | |||
| 897d726ee9 | |||
| 3898eb3de2 | |||
| d3a8e410d0 | |||
| 4713dd78b3 | |||
| 05a187b7ec | |||
| 8465350a67 | |||
| 5def7e15a9 | |||
| 1531d2851e | |||
| 14c2464549 | |||
| 0070f6761e | |||
| 9166fcc59b | |||
| e806d1caf0 | |||
| f71cd9c8bc | |||
| 37acb767de | |||
| 05dd10fa23 | |||
| 25c2a7374d | |||
| d523bbf626 | |||
| 23cb35c71c |
@@ -1,5 +1,74 @@
|
||||
# Changelog
|
||||
|
||||
## Versione 4.0
|
||||
|
||||
### Build (75)
|
||||
- Corretto tap doppio non funzionante
|
||||
- Cerchi nascosti se sisma non è più tra quelli da mostrare
|
||||
|
||||
### Build (74)
|
||||
- Aggiunti cerchi su sisma selezionato in mappa sismi da rete sismica
|
||||
- Piccole correzioni grafiche e traduzioni mancanti
|
||||
- RImossi entitlements non utilizzati da provisioning
|
||||
|
||||
### Build (73)
|
||||
- Aggiunti filtri in mappa sismi da rete sismica
|
||||
|
||||
### Build (72)
|
||||
- Aggiornate icone per mappe/notifiche
|
||||
- Aggiunto nuovo flag per attivare/disattivare critical alerts
|
||||
|
||||
### Build (71)
|
||||
- Correzioni varie interfaccia
|
||||
- Aggiunto pulsante per aprire Telegram
|
||||
- Versione incrementata da 3.4 a 4.0
|
||||
|
||||
### Build (70)
|
||||
- Rifatta mappa sismi reti sismiche
|
||||
|
||||
### Build (69)
|
||||
- Corretta gestione filtri iniziale
|
||||
|
||||
### Build (68)
|
||||
- Corretto allineamento icone su mappa (centrate rispetto alla coordinata)
|
||||
- Aggiunta logica per determinare filtro iniziale
|
||||
|
||||
### Build (66)
|
||||
- Corretti valori sballati segnalazioni utente
|
||||
|
||||
### Build (64)
|
||||
- Aggiunto alert al tap sui vari punti della mappa
|
||||
- Aggiunti cerchi su terremoto più recente in allerte sismiche passate
|
||||
|
||||
### Build (63)
|
||||
- Rifatta mappa allerte sismiche passate
|
||||
- Aggiornate icone
|
||||
- Utilizzati nuovi modelli anche in estensione notifiche
|
||||
|
||||
### Build (62)
|
||||
- Corretto cluster visualizzato (quello che contiene la segnalazione più recente)
|
||||
- Aumentato zoom sul cluster
|
||||
- Corretto problema di refresh
|
||||
|
||||
### Build (61)
|
||||
- Creato controller base per gestire mappe (al momento usato in mappa segnalazioni utente, mappa sisma e simulatore)
|
||||
- Aggiunto bottone "X" per chiudere mappa invece della nav bar azzurra
|
||||
- Allineate funzionalità mappa segnalazioni utente con Android (cluster, icone più grandi)
|
||||
- Rivisto picker filtro in mappa
|
||||
- Filtro "6 ore" non era gestito
|
||||
- Colore icone in mappa segnalazioni utente era spesso sbagliato
|
||||
- Rivisti modelli per dati scaricati
|
||||
|
||||
### Build (60)
|
||||
- Riprodotto suono custom per notifiche critiche
|
||||
|
||||
### Build (59)
|
||||
- Workaround per notifiche critiche con api firebase legacy
|
||||
|
||||
### Build (55)
|
||||
- Aggiunta pagina di debug
|
||||
- Abilitati critical alerts
|
||||
|
||||
## Versione 3.3.2
|
||||
|
||||
### Build (58)
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"aps": {
|
||||
"alert": {
|
||||
"loc-args": [
|
||||
"150 km (Test)"
|
||||
],
|
||||
"loc-key": "Rilevato sisma forte a",
|
||||
"title-loc-key": "Allerta sismica in tempo reale"
|
||||
},
|
||||
"category": "notifica_con_mappa",
|
||||
"content-available": 1,
|
||||
"mutable-content": 1,
|
||||
"sound": "alert_star_trek.wav"
|
||||
},
|
||||
"counter": 10,
|
||||
"datetime": "2021-03-02 19:14:17",
|
||||
"detection_latitude": "47.03",
|
||||
"detection_longitude": "9.56",
|
||||
"gcm.message_id": "1614708857742608",
|
||||
"google.c.a.e": 1,
|
||||
"google.c.sender.id": "899482329945",
|
||||
"intensity": 2,
|
||||
"latitude": "47.03",
|
||||
"location": "150 km (Test)",
|
||||
"longitude": "9.56",
|
||||
"peak": "-1",
|
||||
"randcode": 0,
|
||||
"test": 1,
|
||||
"type": "eqn",
|
||||
"wave_speed": "4.7",
|
||||
"critical": true
|
||||
}
|
||||
@@ -2,3 +2,6 @@
|
||||
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||
//
|
||||
|
||||
#import "EQNPastquakes.h"
|
||||
#import "EQNSegnalazione.h"
|
||||
#import "EQNUtility.h"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.com.finazzi.distquake</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -7,9 +7,8 @@
|
||||
//
|
||||
|
||||
#import "NotificationViewController.h"
|
||||
#import "EQNMapAnnotationPastquakes.h"
|
||||
#import "EQNMapAnnotationSeismicNetwork.h"
|
||||
#import "EQNUtility.h"
|
||||
#import "EQNNotificationContent-Swift.h"
|
||||
|
||||
@import UserNotifications;
|
||||
@import UserNotificationsUI;
|
||||
@@ -40,7 +39,8 @@
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any required interface initialization here.
|
||||
|
||||
[self.mapView registerClass:[EQNCustomAnnotationView class] forAnnotationViewWithReuseIdentifier:EQNCustomAnnotationView.SingleLineIdentifier];
|
||||
}
|
||||
|
||||
- (void)didReceiveNotification:(UNNotification *)notification
|
||||
@@ -61,15 +61,15 @@
|
||||
[self.mapView setRegion:region animated:YES];
|
||||
|
||||
if ([userInfo[@"type"] isEqualToString:@"eqn"]) {
|
||||
EQNMapAnnotationPastquakes *annotation = [[EQNMapAnnotationPastquakes alloc] initWithTitle:content.body
|
||||
location:coordinate.coordinate
|
||||
intensita:[userInfo[@"intensity"] intValue]];
|
||||
EQNMapAnnotationPastquake *annotation = [[EQNMapAnnotationPastquake alloc] initWithTitle:@""
|
||||
coordinate:coordinate.coordinate
|
||||
intensity:[userInfo[@"intensity"] intValue]];
|
||||
[self.mapView addAnnotation:annotation];
|
||||
|
||||
} else if ([userInfo[@"type"] isEqualToString:@"manual"]){
|
||||
EQNMapAnnotationSeismicNetwork *annotation = [[EQNMapAnnotationSeismicNetwork alloc] initWithTitle:content.body
|
||||
location:coordinate.coordinate
|
||||
magnitudo:[userInfo[@"magnitudo"] intValue]];
|
||||
EQNMapAnnotationUserReport *annotation = [[EQNMapAnnotationUserReport alloc] initWithTitle:@""
|
||||
coordinate:coordinate.coordinate
|
||||
magnitude:[userInfo[@"magnitudo"] intValue]];
|
||||
[self.mapView addAnnotation:annotation];
|
||||
}
|
||||
|
||||
@@ -106,24 +106,20 @@
|
||||
|
||||
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation
|
||||
{
|
||||
if ([annotation isKindOfClass:[EQNMapAnnotationPastquakes class]]) {
|
||||
EQNMapAnnotationPastquakes *anLocation = (EQNMapAnnotationPastquakes *)annotation;
|
||||
MKAnnotationView *annotationView = [mapView dequeueReusableAnnotationViewWithIdentifier:EQNMapAnnotationPastquakesIdentifier];
|
||||
if (annotationView == nil) {
|
||||
annotationView = anLocation.annotationView;
|
||||
} else {
|
||||
annotationView.annotation = anLocation;
|
||||
}
|
||||
if ([annotation isKindOfClass:[EQNMapAnnotationPastquake class]]) {
|
||||
EQNMapAnnotationPastquake *pastquake = (EQNMapAnnotationPastquake *)annotation;
|
||||
|
||||
EQNCustomAnnotationView *annotationView = (EQNCustomAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:EQNCustomAnnotationView.SingleLineIdentifier];
|
||||
annotationView.image = pastquake.image;
|
||||
annotationView.title = pastquake.title;
|
||||
return annotationView;
|
||||
|
||||
} else if ([annotation isKindOfClass:[EQNMapAnnotationSeismicNetwork class]]) {
|
||||
EQNMapAnnotationSeismicNetwork *anLocation = (EQNMapAnnotationSeismicNetwork *)annotation;
|
||||
MKAnnotationView *annotationView = [mapView dequeueReusableAnnotationViewWithIdentifier:EQNMapAnnotationSeismicNetworkIdentifier];
|
||||
if (annotationView == nil) {
|
||||
annotationView = anLocation.annotationView;
|
||||
} else {
|
||||
annotationView.annotation = anLocation;
|
||||
}
|
||||
} else if ([annotation isKindOfClass:[EQNMapAnnotationUserReport class]]) {
|
||||
EQNMapAnnotationUserReport *report = (EQNMapAnnotationUserReport *)annotation;
|
||||
|
||||
EQNCustomAnnotationView *annotationView = (EQNCustomAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:EQNCustomAnnotationView.SingleLineIdentifier];
|
||||
annotationView.image = report.image;
|
||||
annotationView.title = report.title;
|
||||
return annotationView;
|
||||
}
|
||||
return nil;
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.com.finazzi.distquake</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 753 B |
|
Before Width: | Height: | Size: 752 B |
|
After Width: | Height: | Size: 748 B |
|
Before Width: | Height: | Size: 775 B |
|
After Width: | Height: | Size: 753 B |
|
Before Width: | Height: | Size: 749 B |
|
After Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 811 B |
|
After Width: | Height: | Size: 761 B |
|
Before Width: | Height: | Size: 846 B |
|
After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |