From 70a65b5f15b2ef7d15a90dd8ddde505eb94e058f Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sat, 13 Jul 2019 21:33:36 -0500 Subject: [PATCH] Abandoned Xamarin attempt --- .../Assets/AboutAssets.txt | 19 --- .../MainActivity.fs | 33 ------ .../MyPrayerJournal.Mobile.Android.fsproj | 94 --------------- .../Properties/AndroidManifest.xml | 9 -- .../Properties/AssemblyInfo.fs | 32 ----- .../Resources/AboutResources.txt | 44 ------- .../Resources/Resource.designer.cs | 112 ------------------ .../Resources/layout/Main.axml | 10 -- .../Resources/mipmap-hdpi/Icon.png | Bin 2201 -> 0 bytes .../Resources/mipmap-mdpi/Icon.png | Bin 1410 -> 0 bytes .../Resources/mipmap-xhdpi/Icon.png | Bin 3237 -> 0 bytes .../Resources/mipmap-xxhdpi/Icon.png | Bin 5414 -> 0 bytes .../Resources/mipmap-xxxhdpi/Icon.png | Bin 7825 -> 0 bytes .../Resources/values/Strings.xml | 5 - .../packages.config | 5 - src/MyPrayerJournal.Mobile.Core/Library.fs | 5 - .../MyPrayerJournal.Mobile.Core.fsproj | 11 -- src/MyPrayerJournal.sln | 34 ------ 18 files changed, 413 deletions(-) delete mode 100644 src/MyPrayerJournal.Mobile.Android/Assets/AboutAssets.txt delete mode 100644 src/MyPrayerJournal.Mobile.Android/MainActivity.fs delete mode 100644 src/MyPrayerJournal.Mobile.Android/MyPrayerJournal.Mobile.Android.fsproj delete mode 100644 src/MyPrayerJournal.Mobile.Android/Properties/AndroidManifest.xml delete mode 100644 src/MyPrayerJournal.Mobile.Android/Properties/AssemblyInfo.fs delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/AboutResources.txt delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/Resource.designer.cs delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/layout/Main.axml delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/mipmap-hdpi/Icon.png delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/mipmap-mdpi/Icon.png delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/mipmap-xhdpi/Icon.png delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/mipmap-xxhdpi/Icon.png delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/mipmap-xxxhdpi/Icon.png delete mode 100644 src/MyPrayerJournal.Mobile.Android/Resources/values/Strings.xml delete mode 100644 src/MyPrayerJournal.Mobile.Android/packages.config delete mode 100644 src/MyPrayerJournal.Mobile.Core/Library.fs delete mode 100644 src/MyPrayerJournal.Mobile.Core/MyPrayerJournal.Mobile.Core.fsproj diff --git a/src/MyPrayerJournal.Mobile.Android/Assets/AboutAssets.txt b/src/MyPrayerJournal.Mobile.Android/Assets/AboutAssets.txt deleted file mode 100644 index ee39886..0000000 --- a/src/MyPrayerJournal.Mobile.Android/Assets/AboutAssets.txt +++ /dev/null @@ -1,19 +0,0 @@ -Any raw assets you want to be deployed with your application can be placed in -this directory (and child directories) and given a Build Action of "AndroidAsset". - -These files will be deployed with you package and will be accessible using Android's -AssetManager, like this: - -public class ReadAsset : Activity -{ - protected override void OnCreate (Bundle bundle) - { - base.OnCreate (bundle); - - InputStream input = Assets.Open ("my_asset.txt"); - } -} - -Additionally, some Android functions will automatically load asset files: - -Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); \ No newline at end of file diff --git a/src/MyPrayerJournal.Mobile.Android/MainActivity.fs b/src/MyPrayerJournal.Mobile.Android/MainActivity.fs deleted file mode 100644 index 44e9dbc..0000000 --- a/src/MyPrayerJournal.Mobile.Android/MainActivity.fs +++ /dev/null @@ -1,33 +0,0 @@ -namespace MyPrayerJournal.Mobile.Android - -open System - -open Android.App -open Android.Content -open Android.OS -open Android.Runtime -open Android.Views -open Android.Widget - -type Resources = MyPrayerJournal.Mobile.Android.Resource - -[] -type MainActivity () = - inherit Activity () - - let mutable count:int = 1 - - override this.OnCreate (bundle) = - - base.OnCreate (bundle) - - // Set our view from the "main" layout resource - this.SetContentView (Resources.Layout.Main) - - // Get our button from the layout resource, and attach an event to it - let button = this.FindViewById