mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-03 23:03:29 +01:00 
			
		
		
		
	Added Steam as a Source (#159) + Bugfixes
This commit is contained in:
		@@ -274,9 +274,14 @@ class AppsProvider with ChangeNotifier {
 | 
			
		||||
            );
 | 
			
		||||
          });
 | 
			
		||||
    }
 | 
			
		||||
    getHost(String url) {
 | 
			
		||||
      var temp = Uri.parse(url).host.split('.');
 | 
			
		||||
      return temp.sublist(temp.length - 2).join('.');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // If the picked APK comes from an origin different from the source, get user confirmation (if context provided)
 | 
			
		||||
    if (apkUrl != null &&
 | 
			
		||||
        Uri.parse(apkUrl).origin != Uri.parse(app.url).origin &&
 | 
			
		||||
        getHost(apkUrl) != getHost(app.url) &&
 | 
			
		||||
        context != null) {
 | 
			
		||||
      if (await showDialog(
 | 
			
		||||
              context: context,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user