Security changes

master
haroon amjad 6 hours ago
parent 6344d78302
commit efee685178

@ -49,7 +49,7 @@
android:name="androidx.core.content.FileProvider" android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileProvider" android:authorities="${applicationId}.fileProvider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true" android:grantUriPermissions="false"
tools:replace="android:authorities"> tools:replace="android:authorities">
<meta-data <meta-data
android:name="android.support.FILE_PROVIDER_PATHS" android:name="android.support.FILE_PROVIDER_PATHS"

@ -4,5 +4,5 @@
<external-files-path name="external-files-path" path="."/> <external-files-path name="external-files-path" path="."/>
<files-path name="files_path" path="."/> <files-path name="files_path" path="."/>
<cache-path name="cache-path" path="."/> <cache-path name="cache-path" path="."/>
<root-path name="root" path="."/> <!-- <root-path name="root" path="."/>-->
</paths> </paths>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<network-security-config> <network-security-config>
<base-config cleartextTrafficPermitted="true"> <base-config cleartextTrafficPermitted="false">
<trust-anchors> <trust-anchors>
<certificates src="system" /> <certificates src="system" />
</trust-anchors> </trust-anchors>

@ -632,8 +632,9 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
itemBuilder: (BuildContext cxt, int index) { itemBuilder: (BuildContext cxt, int index) {
return model.isOffersLoading return model.isOffersLoading
? const OffersShimmerWidget() ? const OffersShimmerWidget()
: InkWell( : data.getOffersList.isNotEmpty
onTap: () { ? InkWell(
onTap: () {
navigateToDetails(data.getOffersList[index]); navigateToDetails(data.getOffersList[index]);
}, },
child: SizedBox( child: SizedBox(
@ -668,7 +669,8 @@ class _DashboardScreenState extends State<DashboardScreen> with WidgetsBindingOb
], ],
), ),
), ),
); )
: Container();
}, },
separatorBuilder: (BuildContext cxt, int index) => 8.width, separatorBuilder: (BuildContext cxt, int index) => 8.width,
itemCount: 9, itemCount: 9,

Loading…
Cancel
Save