-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default(string) to string.Empty, updated for Android 9 SDK and enabled support for http #108
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownloadExample.Droid", "Sa | |
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownloadExample.iOS", "Sample\iOS\DownloadExample.iOS.csproj", "{3BFA0D23-9172-46AF-BF9A-84F1E35BB969}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownloadExample.UWP", "Sample\UWP\UWP.csproj", "{D32EDF26-94F4-4F80-B26C-CA250A3F6D7D}" | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UWP", "Sample\UWP\UWP.csproj", "{D32EDF26-94F4-4F80-B26C-CA250A3F6D7D}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DownloadExample", "Sample\DownloadExample\DownloadExample.csproj", "{FEE6A3A2-9CDD-473C-8587-6C13241BD03A}" | ||
EndProject | ||
|
@@ -271,6 +271,7 @@ Global | |
{7F416A1F-D4DD-436E-A903-DF2FC75E623E}.AppStore|x86.Build.0 = Debug|Any CPU | ||
{7F416A1F-D4DD-436E-A903-DF2FC75E623E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{7F416A1F-D4DD-436E-A903-DF2FC75E623E}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{7F416A1F-D4DD-436E-A903-DF2FC75E623E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{7F416A1F-D4DD-436E-A903-DF2FC75E623E}.Debug|ARM.ActiveCfg = Debug|Any CPU | ||
{7F416A1F-D4DD-436E-A903-DF2FC75E623E}.Debug|ARM.Build.0 = Debug|Any CPU | ||
{7F416A1F-D4DD-436E-A903-DF2FC75E623E}.Debug|iPhone.ActiveCfg = Debug|Any CPU | ||
|
@@ -414,6 +415,9 @@ Global | |
{D32EDF26-94F4-4F80-B26C-CA250A3F6D7D} = {11FE7FBB-8560-4D89-90F5-F218CF18A879} | ||
{FEE6A3A2-9CDD-473C-8587-6C13241BD03A} = {11FE7FBB-8560-4D89-90F5-F218CF18A879} | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this change for? What does it help - what does it do? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I haven't change anything regarding this, VS 2017 v15.9.9.9 is the one to blame. |
||
SolutionGuid = {D7B718F5-272F-49BC-80BA-53BA5D5F417A} | ||
EndGlobalSection | ||
GlobalSection(MonoDevelopProperties) = preSolution | ||
Policies = $0 | ||
$0.TextStylePolicy = $1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,9 @@ | |
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | ||
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk> | ||
<DevInstrumentationEnabled>True</DevInstrumentationEnabled> | ||
<TargetFrameworkVersion>v7.0</TargetFrameworkVersion> | ||
<AndroidTlsProvider></AndroidTlsProvider> | ||
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this not require everyone, using this package, to upgrade his app to at least this version? I'm sometimes quite concerned to do this, not to lock people in a position where they're forced to update if they want to continue using my plugin. I haven't been involved in the Xamarin development lately and don't know their best practices. Please write your comment here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dunno best practices for this, but I have checked the docs: https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/android-api-levels?tabs=windows
What API calls you make, determinate how low you can go on the "Minimum android version", but it still compiles at eg 9.0. I have some knowledge about this, but not at all an expert 👍 |
||
<AndroidTlsProvider> | ||
</AndroidTlsProvider> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.example.download_example"> | ||
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="25" /> | ||
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="28" /> | ||
<!-- | ||
You have to add this permission when setting `PathNameForDownloadedFile`. | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
--> | ||
<application android:label="Download Example"></application> | ||
|
||
<!-- usesCleartextTraffic must be enabled for Android 9 and downloads using http --> | ||
<application android:label="Download Example" android:usesCleartextTraffic="true"></application> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this only needed for Android 9 when trying to download content via HTTP, or does it also apply for older Versions of Android - or other protocols? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Below Android 9 the defaults to android:usesCleartextTraffic="true". |
||
</manifest> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this was supposed to go in here 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have UWP installed on the computer I opened it on.
So I should probably not included changes in sln for the pull.