Compare commits

...

4 Commits

Author SHA1 Message Date
Andrea Busi f437c3cde6 release: Increase version for release 2021-03-27 15:28:15 +01:00
Andrea Busi f197ff8ac9 fix: Use now as default date if parse failes 2021-03-27 15:26:45 +01:00
Andrea Busi 0687cc03a5 fix: Remove unexpected char from strings, that cause some random crashes in ES 2021-03-27 15:13:14 +01:00
Andrea Busi fa69edaa26 fix: Prevent crash for nil values 2021-03-27 15:08:50 +01:00
7 changed files with 39 additions and 26 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog
## Versione 4.0.1
### Build (76)
- Corretto crash in recap segnalazioni ultime 24h
- Corretto crash in filtro mappe, per date nulle
- Corretto carattere errato in stringhe ES, che causava crash a random
## Versione 4.0
### Build (75)
@@ -1701,12 +1701,12 @@
CODE_SIGN_ENTITLEMENTS = EQNNotificationService/EQNNotificationService.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 75;
CURRENT_PROJECT_VERSION = 76;
DEVELOPMENT_TEAM = WJA4MR4CPC;
INFOPLIST_FILE = EQNNotificationService/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.finazzi.distquake.notificationservice;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "EQNetwork Extension Service - Development";
@@ -1725,12 +1725,12 @@
CODE_SIGN_ENTITLEMENTS = EQNNotificationService/EQNNotificationService.entitlements;
CODE_SIGN_IDENTITY = "Apple Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 75;
CURRENT_PROJECT_VERSION = 76;
DEVELOPMENT_TEAM = WJA4MR4CPC;
INFOPLIST_FILE = EQNNotificationService/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.finazzi.distquake.notificationservice;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "EQNetwork Extension Service - AppStore";
@@ -1864,14 +1864,14 @@
CODE_SIGN_ENTITLEMENTS = "Earthquake Network/Earthquake Network.entitlements";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 75;
CURRENT_PROJECT_VERSION = 76;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = WJA4MR4CPC;
GCC_PREFIX_HEADER = "Earthquake Network/Earthquake Network-Prefix.pch";
INFOPLIST_FILE = "Earthquake Network/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.0.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -1976,13 +1976,13 @@
CODE_SIGN_ENTITLEMENTS = "Earthquake Network/Earthquake Network.entitlements";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 75;
CURRENT_PROJECT_VERSION = 76;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = WJA4MR4CPC;
GCC_PREFIX_HEADER = "Earthquake Network/Earthquake Network-Prefix.pch";
INFOPLIST_FILE = "Earthquake Network/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.0.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -2083,12 +2083,12 @@
CODE_SIGN_ENTITLEMENTS = EQNNotificationContent/EQNNotificationContent.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 75;
CURRENT_PROJECT_VERSION = 76;
DEVELOPMENT_TEAM = WJA4MR4CPC;
INFOPLIST_FILE = EQNNotificationContent/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.finazzi.distquake.notificationcontent;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "EQNetwork Extension Content - Development";
@@ -2107,12 +2107,12 @@
CODE_SIGN_ENTITLEMENTS = EQNNotificationContent/EQNNotificationContent.entitlements;
CODE_SIGN_IDENTITY = "Apple Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 75;
CURRENT_PROJECT_VERSION = 76;
DEVELOPMENT_TEAM = WJA4MR4CPC;
INFOPLIST_FILE = EQNNotificationContent/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.0;
MARKETING_VERSION = 4.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.finazzi.distquake.notificationcontent;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "EQNetwork Extension Content - AppStore";
@@ -28,7 +28,11 @@ class SegnalazioniLast24HoursCell: EQNBaseTableViewCell {
// MARK: - Public
@objc func updateUI(for smartphoneNetwork: EQNReteSmartphone) {
@objc func updateUI(for smartphoneNetwork: EQNReteSmartphone?) {
guard let smartphoneNetwork = smartphoneNetwork else {
return
}
self.mildReportsLabel.text = "\(smartphoneNetwork.manualGreen)"
self.strongReportsLabel.text = "\(smartphoneNetwork.manualYellow)"
self.veryStrongReportsLabel.text = "\(smartphoneNetwork.manualRed)"
@@ -21,7 +21,8 @@
double longitude = [dictionary[@"longitude"] doubleValue];
_coordinate = [[CLLocation alloc] initWithLatitude:latitude longitude:longitude];
_users = [dictionary[@"users"] integerValue];
_date = [EQNUtility getDateFromString:dictionary[@"date"]];
NSDate *date = [EQNUtility getDateFromString:dictionary[@"date"]];
_date = date == nil ? [NSDate date] : date;
_difference = [dictionary[@"difference"] integerValue];
_intensity = [dictionary[@"intensity"] integerValue];
}
@@ -21,7 +21,8 @@
double longitude = [dictionary[@"longitude"] doubleValue];
_coordinate = [[CLLocation alloc] initWithLatitude:latitude longitude:longitude];
_address = dictionary[@"address"];
_date = [EQNUtility getDateFromString:dictionary[@"date"]];
NSDate *date = [EQNUtility getDateFromString:dictionary[@"date"]];
_date = date == nil ? [NSDate date] : date;
_difference = [dictionary[@"difference"] integerValue];
_intensity = [dictionary[@"magnitude"] integerValue];
_message = dictionary[@"msg"];
@@ -399,10 +399,10 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" spacing="16" translatesAutoresizingMaskIntoConstraints="NO" id="CIy-Xw-DPT">
<rect key="frame" x="90.5" y="36" width="217" height="40"/>
<rect key="frame" x="96" y="36" width="206" height="40"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="F6p-LB-rf1">
<rect key="frame" x="0.0" y="0.0" width="73.5" height="40"/>
<rect key="frame" x="0.0" y="0.0" width="58" height="40"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="star_report_green" translatesAutoresizingMaskIntoConstraints="NO" id="mgL-cx-R59">
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
@@ -411,8 +411,8 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
<constraint firstAttribute="width" constant="40" id="VJU-lq-FYa"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" tag="1" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="36" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="KI7-0R-pnR">
<rect key="frame" x="42" y="0.0" width="31.5" height="40"/>
<label opaque="NO" userInteractionEnabled="NO" tag="1" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="KI7-0R-pnR">
<rect key="frame" x="42" y="0.0" width="16" height="40"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="24"/>
<color key="textColor" red="0.0039215686274509803" green="0.70588235294117641" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@@ -420,13 +420,13 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="dGB-gN-jfX">
<rect key="frame" x="89.5" y="0.0" width="57.5" height="40"/>
<rect key="frame" x="74" y="0.0" width="58" height="40"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="star_report_yellow" translatesAutoresizingMaskIntoConstraints="NO" id="EGl-dn-mvX">
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" tag="2" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="5" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="jMx-Or-mvH">
<rect key="frame" x="42" y="0.0" width="15.5" height="40"/>
<label opaque="NO" userInteractionEnabled="NO" tag="2" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="jMx-Or-mvH">
<rect key="frame" x="42" y="0.0" width="16" height="40"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="24"/>
<color key="textColor" red="0.90980392156862744" green="0.85490196078431369" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@@ -434,13 +434,13 @@ In più sostieni il progetto di ricerca il quale non riceve finanziamenti estern
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" spacing="2" translatesAutoresizingMaskIntoConstraints="NO" id="8Bn-7y-chQ">
<rect key="frame" x="163" y="0.0" width="54" height="40"/>
<rect key="frame" x="148" y="0.0" width="58" height="40"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="star_report_red" translatesAutoresizingMaskIntoConstraints="NO" id="jjO-u4-ID9">
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" tag="3" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="JAu-kk-n4H">
<rect key="frame" x="42" y="0.0" width="12" height="40"/>
<label opaque="NO" userInteractionEnabled="NO" tag="3" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="10" translatesAutoresizingMaskIntoConstraints="NO" id="JAu-kk-n4H">
<rect key="frame" x="42" y="0.0" width="16" height="40"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="24"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
@@ -266,7 +266,7 @@
"Suona un allarme quando un sisma è rilevato dalla rete smartphone" = "Activa una alarma cuando la red de teléfonos inteligentes detecta un sismo";
"Attiva l'allerta anche su i sismi per i quali non è possibile stimare l'intensità" = "También activa la alerta de sismos para los cuales no es posible estimar la intensidad.";
"Non attivare allarmi o notifiche in questo lasso di tempo" = "No molestar con alertas o notificaciones en este período de tiempo";\
"Non attivare allarmi o notifiche in questo lasso di tempo" = "No molestar con alertas o notificaciones en este período de tiempo";
"critical_alerts_setting" = "Alertas críticas. Emite un sonido también en el modo no molestar";
// Filtri sismi