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
Safe browsing sample created #256
Conversation
<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> |
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.
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> |
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.
Let's remove the AndroidUseLatestPlatformSdk
tag (set to false), and update TargetFrameworkVersion
to v8.1
.
android-o/SafeBrowsing/Metadata.xml
Outdated
<SupportedPlatforms>Android</SupportedPlatforms> | ||
<LicenseRequirement>Starter</LicenseRequirement> | ||
<Brief>Demonstrates how to enable safe browsing.</Brief> | ||
<Gallery>false</Gallery> |
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 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; |
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'd prefer to have this be a public property:
public bool IsSafeBrowsingEnabled { get; set; }
…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
Safe browsing sample created