- made theme 2 banner dynamic, if ad loads then only it will be shown

- made radio ad dynamic, now ad will show up only if ad is received
- added a retry count to fm, it will try 4 times to connect to the server if not then showing the reload btn
This commit is contained in:
Bilal
2024-09-19 01:22:04 +05:30
parent 3a499281c2
commit dcbbfc3417
11 changed files with 306 additions and 172 deletions

View File

@@ -27,17 +27,17 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="BackgroundSplash" translatesAutoresizingMaskIntoConstraints="NO" id="OYq-ie-PCX">
<rect key="frame" x="0.0" y="0.0" width="430" height="926"/>
<rect key="frame" x="0.0" y="0.0" width="430" height="932"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="WokaLogo" translatesAutoresizingMaskIntoConstraints="NO" id="0T1-bR-Cvy">
<rect key="frame" x="145" y="449.33333333333331" width="140" height="52.333333333333314"/>
<rect key="frame" x="145" y="452.33333333333331" width="140" height="52.333333333333314"/>
<constraints>
<constraint firstAttribute="width" constant="140" id="5Om-xJ-yBC"/>
<constraint firstAttribute="width" secondItem="0T1-bR-Cvy" secondAttribute="height" multiplier="8:3" id="IPk-eZ-y1g"/>
</constraints>
</imageView>
<stackView hidden="YES" opaque="NO" contentMode="scaleToFill" distribution="fillEqually" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="KHl-9W-vAe">
<rect key="frame" x="30" y="581.66666666666663" width="370" height="60"/>
<rect key="frame" x="30" y="584.66666666666663" width="370" height="60"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XdB-NB-osA">
<rect key="frame" x="0.0" y="0.0" width="170" height="60"/>
@@ -65,10 +65,10 @@
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b8h-6Z-OJr">
<rect key="frame" x="198.66666666666666" y="849.33333333333337" width="32.666666666666657" height="32.666666666666629"/>
<rect key="frame" x="197.66666666666666" y="853" width="35" height="35"/>
<subviews>
<activityIndicatorView opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" style="medium" translatesAutoresizingMaskIntoConstraints="NO" id="WFZ-SB-V1t">
<rect key="frame" x="0.0" y="0.0" width="32.666666666666664" height="32.666666666666664"/>
<rect key="frame" x="0.0" y="0.0" width="35" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="Hy3-fe-fxq"/>
<constraint firstAttribute="width" secondItem="WFZ-SB-V1t" secondAttribute="height" multiplier="1:1" id="wIx-4l-tWy"/>
@@ -76,7 +76,7 @@
<color key="color" name="TextDarkBlue"/>
</activityIndicatorView>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="T63-z7-Ddb">
<rect key="frame" x="0.0" y="0.0" width="0.0" height="32.666666666666664"/>
<rect key="frame" x="0.0" y="0.0" width="0.0" height="35"/>
<color key="tintColor" name="TextDarkBlue"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain">
@@ -95,11 +95,11 @@
</subviews>
</stackView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g73-qy-DDl">
<rect key="frame" x="0.0" y="192.66666666666663" width="430" height="129.33333333333337"/>
<rect key="frame" x="0.0" y="195" width="430" height="130"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OED-kP-BRQ">
<rect key="frame" x="0.0" y="671" width="430" height="129.33333333333337"/>
<rect key="frame" x="0.0" y="674" width="430" height="130"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
</subviews>
@@ -121,7 +121,6 @@
<constraint firstItem="OED-kP-BRQ" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="gQN-yu-cfQ"/>
<constraint firstItem="g73-qy-DDl" firstAttribute="height" secondItem="8bC-Xf-vdC" secondAttribute="height" multiplier="0.139485" id="jWc-7L-yx1"/>
<constraint firstItem="KHl-9W-vAe" firstAttribute="top" secondItem="0T1-bR-Cvy" secondAttribute="bottom" constant="80" id="ld4-Um-qic"/>
<constraint firstItem="OED-kP-BRQ" firstAttribute="height" secondItem="8bC-Xf-vdC" secondAttribute="height" multiplier="0.139485" id="mfK-aX-ws9"/>
<constraint firstItem="0T1-bR-Cvy" firstAttribute="top" secondItem="g73-qy-DDl" secondAttribute="bottom" constant="127.33333333333331" id="nPO-Yx-ZpD"/>
<constraint firstItem="b8h-6Z-OJr" firstAttribute="centerX" secondItem="6Tk-OE-BBY" secondAttribute="centerX" id="rKT-Yg-uOY"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="g73-qy-DDl" secondAttribute="trailing" id="vft-8T-uuc"/>