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

Update samples and templates #814

Merged
merged 30 commits into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
868d5f5
Upgrade CounterApp sample to Android 11
TimLariviere Nov 14, 2020
1c8648a
Upgrade Calculator sample to Android 11
TimLariviere Nov 14, 2020
f8951d6
Deleting FabulousWeather.Droid since it won't build for no good reason
TimLariviere Nov 14, 2020
6756a56
Upgrade LoginShape sample to Android 11
TimLariviere Nov 14, 2020
b5e21a4
Upgrade ShapesDemo sample to Android 11
TimLariviere Nov 14, 2020
b1aec4f
Upgrade TicTacToe to Android 11
TimLariviere Nov 14, 2020
39b07c6
Upgrade Fabimals sample to Android 11
TimLariviere Nov 14, 2020
e0a063b
Upgrade AllControls sample to Android 11
TimLariviere Nov 14, 2020
3c42a35
Update build agents
TimLariviere Nov 14, 2020
e5486a5
Upgrade FabulousWeather sample to Android 11
TimLariviere Nov 16, 2020
17b0f08
Upgrade StaticViewCounterApp sample to Android 11
TimLariviere Nov 16, 2020
9a1ff57
Fix update dotnet tools version for templates
TimLariviere Nov 16, 2020
9edb61f
Updated templates to Android 11 by default
TimLariviere Nov 16, 2020
81af3f7
Fix templates
TimLariviere Nov 17, 2020
dd132c7
Fix
TimLariviere Nov 17, 2020
245aaa3
.NET 5.0 build agents
TimLariviere Nov 17, 2020
de7102f
Revert ".NET 5.0 build agents"
TimLariviere Nov 17, 2020
c12e4f8
Revert WPF to .NET Core 3.1
TimLariviere Nov 17, 2020
8b6ce4c
Forgot StaticViewCounterApp
TimLariviere Nov 17, 2020
6a755a3
Fix dotnet restore
TimLariviere Nov 17, 2020
942e5a0
Fix template.json
TimLariviere Nov 17, 2020
25d30ea
Fix warnings macOS samples & templates
TimLariviere Nov 18, 2020
13bf411
Fix Gtk samples & templates
TimLariviere Nov 18, 2020
292529b
Fix warnings iOS
TimLariviere Nov 18, 2020
3864c72
Add System.Buffers to templates and samples
TimLariviere Nov 19, 2020
f2f03bc
Merge branch 'master' into upgrade-android-11
TimLariviere Nov 20, 2020
3686c8f
Update documentation
TimLariviere Nov 20, 2020
101e7aa
Fix extensions in samples
TimLariviere Nov 20, 2020
ad947c6
Update paket / fake - fix warnings
TimLariviere Nov 20, 2020
5ca103f
Fix
TimLariviere Nov 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"isRoot": true,
"tools": {
"paket": {
"version": "5.245.1",
"version": "5.257.0",
"commands": [
"paket"
]
},
"fake-cli": {
"version": "5.20.0",
"version": "5.20.3",
"commands": [
"fake"
]
Expand Down
6 changes: 4 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<PropertyGroup>
<Version>0.60.0</Version>
<Authors>Fabulous Contributors</Authors>
<PackageVersion>0.60.0-preview1</PackageVersion>
<PackageReleaseNotes>[Fabulous.XamarinForms] Disabled StructMemoization to check if it's the source of some issues</PackageReleaseNotes>
<PackageVersion>0.60.0-preview4</PackageVersion>
<PackageReleaseNotes>[Fabulous.XamarinForms] [Templates] Updated templates to target Android 11 by default
[Fabulous.XamarinForms] [Templates] Fixed fabulous-cli version referenced in templates
[Fabulous.XamarinForms] [Samples] Updated samples to target Android 11</PackageReleaseNotes>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fsprojects/Fabulous</PackageProjectUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
open System.Reflection
open System.Runtime.CompilerServices

// the name of the type here needs to match the name inside the ResourceDesigner attribute
type Resources = Droid.Resource
[<assembly: Android.Runtime.ResourceDesigner("Droid.Resources", IsApplication=true)>]

[<assembly: AssemblyTitle("Droid")>]
[<assembly: AssemblyDescription("")>]
[<assembly: AssemblyConfiguration("")>]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
// Copyright 2018 Fabulous contributors. See LICENSE.md for license.
// Copyright Fabulous contributors. See LICENSE.md for license.
namespace Droid

open System

open Android.App
open Android.Content
open Android.Content.PM
open Android.Runtime
open Android.Views
open Android.Widget
open Android.OS
open Xamarin.Forms.Platform.Android
open StaticViewCounterApp

[<Activity (Label = "StaticViewCounterApp", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = (ConfigChanges.ScreenSize ||| ConfigChanges.Orientation))>]
[<Activity (Label = "StaticViewCounterApp", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = (ConfigChanges.ScreenSize ||| ConfigChanges.Orientation))>]
type MainActivity() =
inherit Xamarin.Forms.Platform.Android.FormsApplicationActivity()
override this.OnCreate (bundle: Bundle) =
base.OnCreate (bundle)

Xamarin.Forms.Forms.Init (this, bundle)
override this.OnCreate(bundle: Bundle) =
FormsAppCompatActivity.TabLayoutResource <- Resources.Layout.Tabbar
FormsAppCompatActivity.ToolbarResource <- Resources.Layout.Toolbar

this.LoadApplication (new StaticViewCounterApp.StaticViewCounterApp ())
base.OnCreate(bundle)
Xamarin.Forms.Forms.Init(this, bundle)
this.LoadApplication(StaticViewCounterApp())

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?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="org.fabulous.StaticViewCounterApp">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />
<application android:label="StaticViewCounterApp"></application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/sliding_tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:tabIndicatorColor="@android:color/white" app:tabGravity="fill" app:tabMode="fixed" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/sliding_tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:tabIndicatorColor="@android:color/white" app:tabGravity="fill" app:tabMode="fixed" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="MyTheme" parent="MyTheme.Base">
</style>
<!-- Base theme applied no matter what API -->
<style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">false</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">#2196F3</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">#1976D2</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">#FF4081</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
</style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">#FF4081</item>
</style>
</resources>
Loading