Skip to content
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

Safe browsing sample created #256

Merged
merged 2 commits into from Jan 17, 2018
Merged

Safe browsing sample created #256

merged 2 commits into from Jan 17, 2018

Conversation

fullmetaltac
Copy link
Contributor

Safe browsing sample created

<uses-sdk android:targetSdkVersion="26" android:minSdkVersion="26" />
<application android:allowBackup="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:theme="@style/AppTheme"></application>
<application android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/icon" android:theme="@style/AppTheme"></application>
</manifest>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The delta in this file is just extra noise in the PR, we should not include these changes.

<AndroidResgenClass>Resource</AndroidResgenClass>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the AndroidUseLatestPlatformSdk tag (set to false), and update TargetFrameworkVersion to v8.1.

<SupportedPlatforms>Android</SupportedPlatforms>
<LicenseRequirement>Starter</LicenseRequirement>
<Brief>Demonstrates how to enable safe browsing.</Brief>
<Gallery>false</Gallery>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can set this to true.

@mgmclemore is there any reason for us to disable new samples in the Gallery by default, or is it alright for new samples to set this element to true when they are added?

public class MainActivity : Activity
{
public WebView webView;
public bool mSafeBrowsingIsInitialized;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to have this be a public property:
public bool IsSafeBrowsingEnabled { get; set; }

@pjcollins pjcollins changed the base branch from master to support-27 January 17, 2018 16:08
@pjcollins pjcollins merged commit 2c0d67e into xamarin:support-27 Jan 17, 2018
pjcollins added a commit that referenced this pull request Mar 6, 2018
…7.0.2 (#261)

* Update Xamarin.Android.Support to 27.0.2 (#251)

* Target version updated

* support packages updated

* Using SearchView instead of SearchViewCompat(was deprecated) (#253)

* Safe browsing sample created (#256)

* Safe browsing sample created

* review comments resolved

* Update Xamarin.Android.Support package references to latest 27.0.2 (#260)

* Update Xamarin.Android.Support package references to latest 27.0.2

* Fix some incorrect import and error hint paths

* Fix more incorrect import and error hint path issues

* [Support Components] ViewModel sample (#258)

* Created sample

* Moved sample into android-support folder

* Removed .vs folder

* Re-imported nuget packages from VS

* Updated target of xamarin.android.support packages to MonoAndroid81

* Android Cipher sample added (#257)

* Android Cipher sample added

* Readme modified

* review comments resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants