├── .editorconfig ├── .gitignore ├── CODE_OF_CONDUCT.md ├── Icon.png ├── LICENSE ├── NubeSync.sln ├── README.md ├── nuget ├── create_nuget_packages.cmd └── create_nuget_packages.sh ├── samples ├── Backend │ └── NubeSync.Service │ │ ├── Authentication │ │ ├── Authentication.cs │ │ └── IAuthentication.cs │ │ ├── Controllers │ │ ├── OperationsController.cs │ │ └── TodoItemsController.cs │ │ ├── DTO │ │ └── TodoItem.cs │ │ ├── Data │ │ └── DataContext.cs │ │ ├── Helpers │ │ └── HttpRequestExtension.cs │ │ ├── Hubs │ │ └── UpdateHub.cs │ │ ├── Migrations │ │ ├── 20200621111654_Initial.Designer.cs │ │ ├── 20200621111654_Initial.cs │ │ ├── 20201222140328_FixGetLastChangeForPropertyIndex.Designer.cs │ │ ├── 20201222140328_FixGetLastChangeForPropertyIndex.cs │ │ └── DataContextModelSnapshot.cs │ │ ├── NubeSync.Service.csproj │ │ ├── Program.cs │ │ ├── Properties │ │ └── launchSettings.json │ │ ├── Startup.cs │ │ ├── appsettings.Development.json │ │ └── appsettings.json ├── Clients │ ├── Blazor │ │ └── NubeSync.Wasm │ │ │ ├── App.razor │ │ │ ├── NubeSync.Wasm.csproj │ │ │ ├── Pages │ │ │ ├── Counter.razor │ │ │ ├── Index.razor │ │ │ └── TodoItems.razor │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ └── launchSettings.json │ │ │ ├── Shared │ │ │ ├── MainLayout.razor │ │ │ ├── NavMenu.razor │ │ │ └── SurveyPrompt.razor │ │ │ ├── TodoItem.cs │ │ │ ├── _Imports.razor │ │ │ └── wwwroot │ │ │ ├── css │ │ │ ├── app.css │ │ │ ├── bootstrap │ │ │ │ ├── bootstrap.min.css │ │ │ │ └── bootstrap.min.css.map │ │ │ └── open-iconic │ │ │ │ ├── FONT-LICENSE │ │ │ │ ├── ICON-LICENSE │ │ │ │ ├── README.md │ │ │ │ └── font │ │ │ │ ├── css │ │ │ │ └── open-iconic-bootstrap.min.css │ │ │ │ └── fonts │ │ │ │ ├── open-iconic.eot │ │ │ │ ├── open-iconic.otf │ │ │ │ ├── open-iconic.svg │ │ │ │ ├── open-iconic.ttf │ │ │ │ └── open-iconic.woff │ │ │ ├── favicon.ico │ │ │ ├── index.html │ │ │ └── sample-data │ │ │ └── weather.json │ ├── Flutter │ │ └── nubesyncflutter │ │ │ ├── .gitignore │ │ │ ├── .metadata │ │ │ ├── README.md │ │ │ ├── analysis_options.yaml │ │ │ ├── android │ │ │ ├── .gitignore │ │ │ ├── app │ │ │ │ ├── build.gradle │ │ │ │ └── src │ │ │ │ │ ├── main │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ ├── kotlin │ │ │ │ │ │ └── com │ │ │ │ │ │ │ └── example │ │ │ │ │ │ │ └── nubesyncflutter │ │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ │ └── res │ │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ │ ├── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── values-night │ │ │ │ │ │ └── styles.xml │ │ │ │ │ │ └── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── profile │ │ │ │ │ └── AndroidManifest.xml │ │ │ ├── build.gradle │ │ │ ├── gradle.properties │ │ │ ├── gradle │ │ │ │ └── wrapper │ │ │ │ │ └── gradle-wrapper.properties │ │ │ └── settings.gradle │ │ │ ├── ios │ │ │ ├── .gitignore │ │ │ ├── Flutter │ │ │ │ ├── AppFrameworkInfo.plist │ │ │ │ ├── Debug.xcconfig │ │ │ │ └── Release.xcconfig │ │ │ ├── Runner.xcodeproj │ │ │ │ ├── project.pbxproj │ │ │ │ ├── project.xcworkspace │ │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ │ └── xcshareddata │ │ │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ │ └── xcshareddata │ │ │ │ │ └── xcschemes │ │ │ │ │ └── Runner.xcscheme │ │ │ ├── Runner.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── Runner │ │ │ │ ├── AppDelegate.swift │ │ │ │ ├── Assets.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ │ │ └── LaunchImage.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── LaunchImage.png │ │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ │ └── README.md │ │ │ │ ├── Base.lproj │ │ │ │ ├── LaunchScreen.storyboard │ │ │ │ └── Main.storyboard │ │ │ │ ├── Info.plist │ │ │ │ └── Runner-Bridging-Header.h │ │ │ ├── lib │ │ │ ├── _nubeSync │ │ │ │ ├── authentication.dart │ │ │ │ ├── change_tracker.dart │ │ │ │ ├── nube_client.dart │ │ │ │ ├── nube_operation.dart │ │ │ │ └── nube_table.dart │ │ │ ├── dto │ │ │ │ └── todo_item.dart │ │ │ └── main.dart │ │ │ ├── pubspec.lock │ │ │ ├── pubspec.yaml │ │ │ ├── test │ │ │ └── widget_test.dart │ │ │ └── web │ │ │ ├── favicon.png │ │ │ ├── icons │ │ │ ├── Icon-192.png │ │ │ ├── Icon-512.png │ │ │ ├── Icon-maskable-192.png │ │ │ └── Icon-maskable-512.png │ │ │ ├── index.html │ │ │ └── manifest.json │ └── Xamarin.Forms │ │ └── NubeSync.Mobile │ │ ├── NubeSync.Mobile.Android │ │ ├── Assets │ │ │ └── AboutAssets.txt │ │ ├── MainActivity.cs │ │ ├── NubeSync.Mobile.Android.csproj │ │ ├── Properties │ │ │ ├── AndroidManifest.xml │ │ │ └── AssemblyInfo.cs │ │ └── Resources │ │ │ ├── AboutResources.txt │ │ │ ├── Resource.designer.cs │ │ │ ├── layout │ │ │ ├── Tabbar.xml │ │ │ └── Toolbar.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── icon.xml │ │ │ └── icon_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── icon.png │ │ │ └── launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ ├── icon.png │ │ │ └── launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── icon.png │ │ │ └── launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── icon.png │ │ │ └── launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── icon.png │ │ │ └── launcher_foreground.png │ │ │ └── values │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ ├── NubeSync.Mobile.UWP │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── Assets │ │ │ ├── LargeTile.scale-100.png │ │ │ ├── LargeTile.scale-200.png │ │ │ ├── LargeTile.scale-400.png │ │ │ ├── SmallTile.scale-100.png │ │ │ ├── SmallTile.scale-200.png │ │ │ ├── SmallTile.scale-400.png │ │ │ ├── SplashScreen.scale-100.png │ │ │ ├── SplashScreen.scale-200.png │ │ │ ├── SplashScreen.scale-400.png │ │ │ ├── Square150x150Logo.scale-100.png │ │ │ ├── Square150x150Logo.scale-200.png │ │ │ ├── Square150x150Logo.scale-400.png │ │ │ ├── Square44x44Logo.altform-unplated_targetsize-16.png │ │ │ ├── Square44x44Logo.altform-unplated_targetsize-256.png │ │ │ ├── Square44x44Logo.altform-unplated_targetsize-48.png │ │ │ ├── Square44x44Logo.scale-100.png │ │ │ ├── Square44x44Logo.scale-200.png │ │ │ ├── Square44x44Logo.scale-400.png │ │ │ ├── Square44x44Logo.targetsize-16.png │ │ │ ├── Square44x44Logo.targetsize-256.png │ │ │ ├── Square44x44Logo.targetsize-48.png │ │ │ ├── StoreLogo.backup.png │ │ │ ├── StoreLogo.scale-100.png │ │ │ ├── StoreLogo.scale-200.png │ │ │ ├── StoreLogo.scale-400.png │ │ │ ├── Wide310x150Logo.scale-100.png │ │ │ ├── Wide310x150Logo.scale-200.png │ │ │ └── Wide310x150Logo.scale-400.png │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cs │ │ ├── NubeSync.Mobile.UWP.csproj │ │ ├── Package.appxmanifest │ │ └── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ └── Default.rd.xml │ │ ├── NubeSync.Mobile.iOS │ │ ├── AppDelegate.cs │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── Icon1024.png │ │ │ │ ├── Icon120.png │ │ │ │ ├── Icon152.png │ │ │ │ ├── Icon167.png │ │ │ │ ├── Icon180.png │ │ │ │ ├── Icon20.png │ │ │ │ ├── Icon29.png │ │ │ │ ├── Icon40.png │ │ │ │ ├── Icon58.png │ │ │ │ ├── Icon60.png │ │ │ │ ├── Icon76.png │ │ │ │ ├── Icon80.png │ │ │ │ └── Icon87.png │ │ ├── Entitlements.plist │ │ ├── Info.plist │ │ ├── Main.cs │ │ ├── NubeSync.Mobile.iOS.csproj │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ └── Resources │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ ├── Default@2x.png │ │ │ └── LaunchScreen.storyboard │ │ └── NubeSync.Mobile │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── AssemblyInfo.cs │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cs │ │ ├── NubeSync.Mobile.csproj │ │ └── TodoItem.cs ├── NubeSync.Samples.sln └── README.md ├── src ├── NubeSync.Client.SQLiteStore │ ├── NubeSQLiteDataStore.Operations.cs │ ├── NubeSQLiteDataStore.Repository.cs │ ├── NubeSQLiteDataStore.Settings.cs │ ├── NubeSQLiteDataStore.cs │ ├── NubeSetting.cs │ └── NubeSync.Client.SQLiteStore.csproj ├── NubeSync.Client.SQLiteStoreEFCore │ ├── NubeSQLiteDataStoreEFCore.Operations.cs │ ├── NubeSQLiteDataStoreEFCore.Repository.cs │ ├── NubeSQLiteDataStoreEFCore.Settings.cs │ ├── NubeSQLiteDataStoreEFCore.cs │ ├── NubeSetting.cs │ └── NubeSync.Client.SQLiteStoreEFCore.csproj ├── NubeSync.Client │ ├── IDataStore.cs │ ├── INubeAuthentication.cs │ ├── INubeClient.cs │ ├── NubeClient.Data.cs │ ├── NubeClient.Sync.cs │ ├── NubeClient.cs │ ├── NubeSync.Client.csproj │ ├── PullOperationFailedException.cs │ ├── PushOperationFailedException.cs │ └── StoreOperationFailedException.cs ├── NubeSync.Core │ ├── ChangeTracker.cs │ ├── IChangeTracker.cs │ ├── NubeOperation.cs │ ├── NubeSync.Core.csproj │ ├── NubeTable.cs │ └── OperationType.cs └── NubeSync.Server │ ├── Data │ ├── NubeServerOperation.cs │ ├── NubeServerTable.cs │ └── ProcessingType.cs │ ├── IOperationService.cs │ ├── NubeSync.Server.csproj │ └── OperationService.cs └── tests ├── Tests.NubeSync.Client.SQLiteStore ├── NubeSQLiteDataStoreTestBase.cs ├── NubeSQLiteDataStore_Operations_test.cs ├── NubeSQLiteDataStore_Repository_test.cs ├── NubeSQLiteDataStore_Settings_test.cs ├── NubeSQLiteDataStore_test.cs ├── TestItem.cs └── Tests.NubeSync.Client.SQLiteStore.csproj ├── Tests.NubeSync.Client.SQLiteStoreEFCore ├── NubeSQLiteDataStoreEFCoreTestBase.cs ├── NubeSQLiteDataStoreEFCore_Operations_test.cs ├── NubeSQLiteDataStoreEFCore_Repository_test.cs ├── NubeSQLiteDataStoreEFCore_Settings.cs ├── NubeSQLiteDataStoreEFCore_test.cs ├── TestItem.cs ├── TestStore.cs └── Tests.NubeSync.Client.SQLiteStoreEFCore.csproj ├── Tests.NubeSync.Client ├── MockHttpMessageHandler.cs ├── NubeClient │ ├── NubeClientTestBase.cs │ ├── NubeClient_Data_test.cs │ └── NubeClient_test.cs ├── Sync │ └── NubeClient_sync_test.cs ├── TestFactory.cs ├── TestItem.cs ├── TestItem2.cs └── Tests.NubeSync.Client.csproj ├── Tests.NubeSync.Core ├── ChangeTracker_test.cs ├── NubeOperation_test.cs ├── NubeTable_test.cs ├── TestEnum.cs ├── TestFactory.cs ├── TestItem.cs ├── TestItem2.cs ├── TestItem3.cs ├── Tests - Backup.NubeSync.Core.csproj └── Tests.NubeSync.Core.csproj └── Tests.NubeSync.Server ├── NubeSyncServerTestBase.cs ├── OperationService_test.cs ├── SomeFolder └── TestItem.cs ├── TestContext.cs ├── TestItem.cs ├── TestItemInvalid.cs └── Tests.NubeSync.Server.csproj /Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/Icon.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 stefffdev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NubeSync 2 | [![License](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/stefffdev/NubeSync/blob/master/LICENSE) 3 | ![GitHub last commit](https://img.shields.io/github/last-commit/stefffdev/NubeSync) 4 | ![GitHub release (latest by date)](https://img.shields.io/github/v/release/stefffdev/NubeSync) 5 | 6 | NubeSync is a bi-directional offline data sync framework 7 | 8 | ## Features 9 | * Fast operations based transmission of the changes to the server 10 | * Incremental sync when downloading new and changed records from the server 11 | * Automatic merge conflict resolution (last change wins) on per field basis is performed on the server 12 | * Based on standard technologies (ASP.NET Core, SQLite, REST) 13 | * Client side indexes and encryption are supported 14 | * Server side storage can use all Entity Framework Core compatible storages (e.g. Microsoft SQL, CosmosDB) 15 | * NubeSync can be implemented as a successor to the Azure Mobile App Service offline sync capabilities 16 | 17 | ## Supported Platforms 18 | * Every platform that supports .NET Standard 2.0 (Xamarin, MAUI, Blazor, Uno, UWP, WPF, Console Apps, ...) 19 | * Flutter (experimental) 20 | 21 | ## Documentation & Getting Started 22 | See the [Wiki page](https://github.com/stefffdev/NubeSync/wiki) for getting started and have a look at the [samples](https://github.com/stefffdev/NubeSync/tree/master/samples). 23 | 24 | For some more detailed infos on certain topics check out our blog over at [https://www.lakedice.com/nubesync-modern-net-offline-data-sync/](https://www.lakedice.com/nubesync-modern-net-offline-data-sync/) 25 | -------------------------------------------------------------------------------- /nuget/create_nuget_packages.cmd: -------------------------------------------------------------------------------- 1 | dotnet pack ..\NubeSync.sln -c Release 2 | mkdir ..\publish 3 | copy /y ..\src\NubeSync.Client\bin\Release\*nupkg ..\publish 4 | copy /y ..\src\NubeSync.Client.SQLiteStore\bin\Release\*nupkg ..\publish 5 | copy /y ..\src\NubeSync.Core\bin\Release\*nupkg ..\publish 6 | copy /y ..\src\NubeSync.Server\bin\Release\*nupkg ..\publish 7 | 8 | pause -------------------------------------------------------------------------------- /nuget/create_nuget_packages.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | dotnet pack ../NubeSync.sln -c Release 4 | mkdir ../publish 5 | 6 | yes | cp -rf ../src/NubeSync.Client/bin/Release/*nupkg ../publish 7 | yes | cp -rf ../src/NubeSync.Client.SQLiteStore/bin/Release/*nupkg ../publish 8 | yes | cp -rf ../src/NubeSync.Core/bin/Release/*nupkg ../publish 9 | yes | cp -rf ../src/NubeSync.Server/bin/Release/*nupkg ../publish 10 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Authentication/Authentication.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Security.Claims; 3 | 4 | namespace NubeSync.Service 5 | { 6 | public class Authentication : IAuthentication 7 | { 8 | string[] IAuthentication.ScopeRequiredByApi => new string[] { "access_as_user" }; 9 | 10 | public string GetUserIdentifier(ClaimsPrincipal user) 11 | { 12 | if (!user.Identity.IsAuthenticated) 13 | { 14 | return string.Empty; 15 | } 16 | 17 | string owner = (user.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier"))?.Value; 18 | if (string.IsNullOrEmpty(owner)) 19 | { 20 | throw new Exception("Unknown User"); 21 | } 22 | 23 | return owner; 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Authentication/IAuthentication.cs: -------------------------------------------------------------------------------- 1 | using System.Security.Claims; 2 | 3 | namespace NubeSync.Service 4 | { 5 | public interface IAuthentication 6 | { 7 | string[] ScopeRequiredByApi { get; } 8 | 9 | string GetUserIdentifier(ClaimsPrincipal user); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Controllers/OperationsController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | using Microsoft.AspNetCore.Authorization; 5 | using Microsoft.AspNetCore.Mvc; 6 | using Microsoft.AspNetCore.SignalR; 7 | using Nube.SampleService.Hubs; 8 | using NubeSync.Core; 9 | using NubeSync.Server; 10 | using NubeSync.Server.Data; 11 | using NubeSync.Service.Data; 12 | 13 | namespace NubeSync.Service.Controllers 14 | { 15 | // UNCOMMENT THIS IF YOU WANT TO ACTIVATE AUTHENTICATION 16 | //[Authorize] 17 | [ApiController] 18 | [Route("api/[controller]")] 19 | public class OperationsController : ControllerBase 20 | { 21 | private readonly DataContext _context; 22 | private readonly IOperationService _operationService; 23 | private readonly IHubContext _hubContext; 24 | private readonly IAuthentication _authentication; 25 | 26 | public OperationsController( 27 | IAuthentication authentication, 28 | DataContext context, 29 | IOperationService operationService, 30 | IHubContext hubContext) 31 | { 32 | _authentication = authentication; 33 | _context = context; 34 | _operationService = operationService; 35 | _hubContext = hubContext; 36 | } 37 | 38 | [HttpPost] 39 | public async Task PostOperationsAsync(List operations) 40 | { 41 | // UNCOMMENT THIS IF YOU WANT TO ACTIVATE AUTHENTICATION 42 | //HttpContext.VerifyUserHasAnyAcceptedScope(_authentication.ScopeRequiredByApi); 43 | var userId = _authentication.GetUserIdentifier(User); 44 | var installationId = Request.GetInstallationId(); 45 | 46 | try 47 | { 48 | await _operationService.ProcessOperationsAsync(_context, operations, userId, installationId); 49 | } 50 | catch (Exception ex) 51 | { 52 | while (ex.InnerException != null) 53 | { 54 | ex = ex.InnerException; 55 | } 56 | 57 | return BadRequest(ex.Message); 58 | } 59 | 60 | await _hubContext.Clients.All.SendAsync("Update", "user", "message"); 61 | return Ok(); 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/DTO/TodoItem.cs: -------------------------------------------------------------------------------- 1 | using NubeSync.Server.Data; 2 | 3 | namespace NubeSync.Service.DTO 4 | { 5 | public class TodoItem : NubeServerTable 6 | { 7 | public string Name { get; set; } 8 | 9 | public bool IsChecked { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Data/DataContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.EntityFrameworkCore; 6 | using NubeSync.Server.Data; 7 | using NubeSync.Service.DTO; 8 | 9 | namespace NubeSync.Service.Data 10 | { 11 | public class DataContext : DbContext 12 | { 13 | public DataContext(DbContextOptions options) : base(options) 14 | { 15 | } 16 | 17 | public DbSet TodoItems { get; set; } 18 | 19 | public DbSet Operations { get; set; } 20 | 21 | protected override void OnModelCreating(ModelBuilder modelBuilder) 22 | { 23 | base.OnModelCreating(modelBuilder); 24 | 25 | // use a different clustered index than the string Id for performance reasons, 26 | // this should be done for every table! 27 | 28 | modelBuilder.Entity().HasKey(e => e.Id).IsClustered(false); 29 | modelBuilder.Entity().HasIndex(e => e.ClusteredIndex).IsClustered(); 30 | modelBuilder.Entity().Property(e => e.ClusteredIndex).ValueGeneratedOnAdd(); 31 | modelBuilder.Entity().HasIndex(e => new { e.ItemId, e.TableName, e.Property, e.CreatedAt }); 32 | modelBuilder.Entity().HasIndex(e => new { e.ItemId, e.TableName, e.ServerUpdatedAt, e.ProcessingType, e.InstallationId }); 33 | 34 | modelBuilder.Entity().HasKey(e => e.Id).IsClustered(false); 35 | modelBuilder.Entity().HasIndex(e => e.ClusteredIndex).IsClustered(); 36 | modelBuilder.Entity().Property(e => e.ClusteredIndex).ValueGeneratedOnAdd(); 37 | modelBuilder.Entity().HasIndex(e => new { e.UserId, e.ServerUpdatedAt }); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Helpers/HttpRequestExtension.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using Microsoft.AspNetCore.Http; 3 | 4 | namespace NubeSync.Service 5 | { 6 | public static class HttpRequestExtension 7 | { 8 | public static string GetHeader(this HttpRequest request, string key) 9 | { 10 | return request.Headers.FirstOrDefault(x => x.Key.ToLower() == key.ToLower()).Value.FirstOrDefault(); 11 | } 12 | 13 | public static string GetInstallationId(this HttpRequest request) 14 | { 15 | return request.GetHeader("NUBE-INSTALLATION-ID"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Hubs/UpdateHub.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.SignalR; 2 | 3 | namespace Nube.SampleService.Hubs 4 | { 5 | public class UpdateHub : Hub 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Migrations/20201222140328_FixGetLastChangeForPropertyIndex.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore.Migrations; 2 | 3 | namespace NubeSync.Service.Migrations 4 | { 5 | public partial class FixGetLastChangeForPropertyIndex : Migration 6 | { 7 | protected override void Up(MigrationBuilder migrationBuilder) 8 | { 9 | migrationBuilder.DropIndex( 10 | name: "IX_Operations_ItemId_Property_CreatedAt", 11 | table: "Operations"); 12 | 13 | migrationBuilder.CreateIndex( 14 | name: "IX_Operations_ItemId_TableName_Property_CreatedAt", 15 | table: "Operations", 16 | columns: new[] { "ItemId", "TableName", "Property", "CreatedAt" }); 17 | } 18 | 19 | protected override void Down(MigrationBuilder migrationBuilder) 20 | { 21 | migrationBuilder.DropIndex( 22 | name: "IX_Operations_ItemId_TableName_Property_CreatedAt", 23 | table: "Operations"); 24 | 25 | migrationBuilder.CreateIndex( 26 | name: "IX_Operations_ItemId_Property_CreatedAt", 27 | table: "Operations", 28 | columns: new[] { "ItemId", "Property", "CreatedAt" }); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/NubeSync.Service.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net5.0 5 | 9.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | all 15 | runtime; build; native; contentfiles; analyzers; buildtransitive 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Hosting; 6 | using Microsoft.Extensions.Configuration; 7 | using Microsoft.Extensions.Hosting; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace NubeSync.Service 11 | { 12 | public class Program 13 | { 14 | public static void Main(string[] args) 15 | { 16 | CreateHostBuilder(args).Build().Run(); 17 | } 18 | 19 | public static IHostBuilder CreateHostBuilder(string[] args) => 20 | Host.CreateDefaultBuilder(args) 21 | .ConfigureWebHostDefaults(webBuilder => 22 | { 23 | webBuilder.UseStartup(); 24 | }); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:8119", 8 | "sslPort": 44330 9 | } 10 | }, 11 | "profiles": { 12 | "IIS Express": { 13 | "commandName": "IISExpress", 14 | "launchBrowser": true, 15 | "launchUrl": "", 16 | "environmentVariables": { 17 | "ASPNETCORE_ENVIRONMENT": "Development" 18 | } 19 | }, 20 | "NubeSync.Service": { 21 | "commandName": "Project", 22 | "launchBrowser": true, 23 | "launchUrl": "weatherforecast", 24 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 25 | "environmentVariables": { 26 | "ASPNETCORE_ENVIRONMENT": "Development" 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Builder; 6 | using Microsoft.AspNetCore.Hosting; 7 | using Microsoft.AspNetCore.HttpsPolicy; 8 | using Microsoft.AspNetCore.Mvc; 9 | using Microsoft.EntityFrameworkCore; 10 | using Microsoft.Extensions.Configuration; 11 | using Microsoft.Extensions.DependencyInjection; 12 | using Microsoft.Extensions.Hosting; 13 | using Microsoft.Extensions.Logging; 14 | using Nube.SampleService.Hubs; 15 | using NubeSync.Core; 16 | using NubeSync.Server; 17 | using NubeSync.Service.Data; 18 | using NubeSync.Service.DTO; 19 | 20 | namespace NubeSync.Service 21 | { 22 | public class Startup 23 | { 24 | public Startup(IConfiguration configuration) 25 | { 26 | Configuration = configuration; 27 | } 28 | 29 | public IConfiguration Configuration { get; } 30 | 31 | // This method gets called by the runtime. Use this method to add services to the container. 32 | public void ConfigureServices(IServiceCollection services) 33 | { 34 | // UNCOMMENT THIS IF YOU WANT TO ACTIVATE AUTHENTICATION 35 | //services.AddMicrosoftIdentityWebApiAuthentication(Configuration); 36 | 37 | services.AddDbContext(opt => opt.UseInMemoryDatabase("test")); 38 | 39 | services.AddControllers(); 40 | services.AddSignalR(); 41 | 42 | services.AddCors(o => o.AddPolicy("AllowedOrigins", builder => 43 | { 44 | builder.AllowAnyOrigin() 45 | .AllowAnyMethod() 46 | .AllowAnyHeader(); 47 | })); 48 | 49 | services.AddTransient(); 50 | services.AddTransient(); 51 | services.AddTransient(s => new OperationService(typeof(TodoItem))); 52 | } 53 | 54 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 55 | public void Configure(IApplicationBuilder app, IWebHostEnvironment env) 56 | { 57 | if (env.IsDevelopment()) 58 | { 59 | app.UseDeveloperExceptionPage(); 60 | } 61 | 62 | app.UseHttpsRedirection(); 63 | 64 | app.UseRouting(); 65 | 66 | app.UseCors("AllowedOrigins"); 67 | 68 | // UNCOMMENT THIS IF YOU WANT TO ACTIVATE AUTHENTICATION 69 | //app.UseAuthentication(); 70 | app.UseAuthorization(); 71 | 72 | app.UseEndpoints(endpoints => 73 | { 74 | endpoints.MapControllers(); 75 | endpoints.MapHub("/updateHub"); 76 | }); 77 | } 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /samples/Backend/NubeSync.Service/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "AzureAd": { 3 | "Instance": "https://login.microsoftonline.com/", 4 | "ClientId": "", 5 | "TenantId": "common" 6 | }, 7 | "Logging": { 8 | "LogLevel": { 9 | "Default": "Information", 10 | "Microsoft": "Warning", 11 | "Microsoft.Hosting.Lifetime": "Information" 12 | } 13 | }, 14 | "AllowedHosts": "*" 15 | } 16 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Sorry, there's nothing at this address.

8 |
9 |
10 |
11 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/NubeSync.Wasm.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net5.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | 3 |

Counter

4 | 5 |

Current count: @currentCount

6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() 13 | { 14 | currentCount++; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Pages/Index.razor: -------------------------------------------------------------------------------- 1 | @page "/" 2 | 3 |

Hello, world!

4 | 5 | Welcome to your new app. 6 | 7 | 8 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Pages/TodoItems.razor: -------------------------------------------------------------------------------- 1 | @page "/todoitems" 2 | @using System.Text.Json; 3 | 4 | @inject HttpClient Http 5 | 6 |

Todo Items

7 | 8 | 9 |   10 | 11 |   12 | 13 |   14 |
15 |
16 | 17 | @if (Items == null) 18 | { 19 |

Loading...

20 | } 21 | else 22 | { 23 |
    24 | @foreach (var item in Items) 25 | { 26 |
  • @item.Name @item.IsChecked
  • 27 | } 28 |
29 | } 30 | 31 | @code { 32 | 33 | private List Items { get; set; } 34 | 35 | private async Task GetItems() 36 | { 37 | var result = await Http.GetAsync("api/todoitems"); 38 | if (result.IsSuccessStatusCode) 39 | { 40 | var content = await result.Content.ReadAsStringAsync(); 41 | Items = JsonSerializer.Deserialize>(content, 42 | new JsonSerializerOptions { PropertyNameCaseInsensitive = true }); 43 | } 44 | } 45 | 46 | protected override async Task OnParametersSetAsync() 47 | { 48 | await GetItems(); 49 | } 50 | 51 | private async Task ModifyButtonClicked() 52 | { 53 | if (Items != null && Items.Count > 0) 54 | { 55 | var item = Items.First(); 56 | item.Name = DateTime.Now.ToLongTimeString(); 57 | item.UpdatedAt = DateTimeOffset.Now; 58 | 59 | await Http.PutAsJsonAsync("api/todoitems", item); 60 | } 61 | 62 | await GetItems(); 63 | } 64 | 65 | private async Task AddButtonClicked() 66 | { 67 | var item = new TodoItem(); 68 | item.Id = Guid.NewGuid().ToString(); 69 | item.Name = "New Item"; 70 | item.UpdatedAt = DateTimeOffset.Now; 71 | 72 | await Http.PostAsJsonAsync("api/todoitems", item); 73 | 74 | await GetItems(); 75 | } 76 | 77 | private async Task DeleteButtonClicked() 78 | { 79 | if (Items != null && Items.Count > 0) 80 | { 81 | var customer = Items.Last(); 82 | await Http.DeleteAsync($"api/todoitems/{customer.Id}"); 83 | } 84 | 85 | await GetItems(); 86 | } 87 | } -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Net.Http; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | using System.Text; 6 | using Microsoft.AspNetCore.Components.WebAssembly.Hosting; 7 | using Microsoft.Extensions.Configuration; 8 | using Microsoft.Extensions.DependencyInjection; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace NubeSync.Wasm 12 | { 13 | public class Program 14 | { 15 | public static async Task Main(string[] args) 16 | { 17 | var builder = WebAssemblyHostBuilder.CreateDefault(args); 18 | builder.RootComponents.Add("app"); 19 | 20 | builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:5001/") }); 21 | 22 | await builder.Build().RunAsync(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:28406", 7 | "sslPort": 44312 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 15 | "environmentVariables": { 16 | "ASPNETCORE_ENVIRONMENT": "Development" 17 | } 18 | }, 19 | "NubeSync.Wasm": { 20 | "commandName": "Project", 21 | "launchBrowser": true, 22 | "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", 23 | "applicationUrl": "https://localhost:5001;http://localhost:5000", 24 | "environmentVariables": { 25 | "ASPNETCORE_ENVIRONMENT": "Development" 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 | 6 | 7 |
8 |
9 | About 10 |
11 | 12 |
13 | @Body 14 |
15 |
16 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Shared/NavMenu.razor: -------------------------------------------------------------------------------- 1 |  7 | 8 |
9 | 26 |
27 | 28 | @code { 29 | private bool collapseNavMenu = true; 30 | 31 | private string NavMenuCssClass => collapseNavMenu ? "collapse" : null; 32 | 33 | private void ToggleNavMenu() 34 | { 35 | collapseNavMenu = !collapseNavMenu; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/Shared/SurveyPrompt.razor: -------------------------------------------------------------------------------- 1 |  11 | 12 | @code { 13 | // Demonstrates how a parent component can supply parameters 14 | [Parameter] 15 | public string Title { get; set; } 16 | } 17 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/TodoItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace NubeSync.Wasm 4 | { 5 | public class TodoItem 6 | { 7 | public string Id { get; set; } 8 | 9 | public string Name { get; set; } 10 | 11 | public bool IsChecked { get; set; } 12 | 13 | public DateTimeOffset UpdatedAt { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using System.Net.Http.Json 3 | @using Microsoft.AspNetCore.Components.Forms 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using Microsoft.AspNetCore.Components.WebAssembly.Http 7 | @using Microsoft.JSInterop 8 | @using NubeSync.Wasm 9 | @using NubeSync.Wasm.Shared 10 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/ICON-LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Waybury 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Blazor/NubeSync.Wasm/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Blazor/NubeSync.Wasm/wwwroot/favicon.ico -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | NubeSync.Wasm 8 | 9 | 10 | 11 | 12 | 13 | 14 | Loading... 15 | 16 |
17 | An unhandled error has occurred. 18 | Reload 19 | 🗙 20 |
21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /samples/Clients/Blazor/NubeSync.Wasm/wwwroot/sample-data/weather.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "date": "2018-05-06", 4 | "temperatureC": 1, 5 | "summary": "Freezing" 6 | }, 7 | { 8 | "date": "2018-05-07", 9 | "temperatureC": 14, 10 | "summary": "Bracing" 11 | }, 12 | { 13 | "date": "2018-05-08", 14 | "temperatureC": -13, 15 | "summary": "Freezing" 16 | }, 17 | { 18 | "date": "2018-05-09", 19 | "temperatureC": -16, 20 | "summary": "Balmy" 21 | }, 22 | { 23 | "date": "2018-05-10", 24 | "temperatureC": -2, 25 | "summary": "Chilly" 26 | } 27 | ] 28 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 18116933e77adc82f80866c928266a5b4f1ed645 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/README.md: -------------------------------------------------------------------------------- 1 | # nubesyncflutter 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | compileOptions { 32 | sourceCompatibility JavaVersion.VERSION_1_8 33 | targetCompatibility JavaVersion.VERSION_1_8 34 | } 35 | 36 | kotlinOptions { 37 | jvmTarget = '1.8' 38 | } 39 | 40 | sourceSets { 41 | main.java.srcDirs += 'src/main/kotlin' 42 | } 43 | 44 | defaultConfig { 45 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 46 | applicationId "com.example.nubesyncflutter" 47 | minSdkVersion 16 48 | targetSdkVersion 30 49 | versionCode flutterVersionCode.toInteger() 50 | versionName flutterVersionName 51 | } 52 | 53 | buildTypes { 54 | release { 55 | // TODO: Add your own signing config for the release build. 56 | // Signing with the debug keys for now, so `flutter run --release` works. 57 | signingConfig signingConfigs.debug 58 | } 59 | } 60 | } 61 | 62 | flutter { 63 | source '../..' 64 | } 65 | 66 | dependencies { 67 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 68 | } 69 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/kotlin/com/example/nubesyncflutter/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.nubesyncflutter 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | nubesyncflutter 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/lib/_nubeSync/authentication.dart: -------------------------------------------------------------------------------- 1 | Future getAccessToken() async { 2 | return 'token'; 3 | } -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/lib/_nubeSync/nube_operation.dart: -------------------------------------------------------------------------------- 1 | class NubeOperation { 2 | String? id; 3 | DateTime? createdAt; 4 | String itemId; 5 | String? oldValue; 6 | String property; 7 | String tableName; 8 | OperationType type; 9 | String? value; 10 | 11 | NubeOperation( 12 | {this.createdAt, 13 | required this.itemId, 14 | required this.value, 15 | required this.property, 16 | required this.tableName, 17 | required this.type, 18 | this.oldValue, 19 | }) { 20 | createdAt = DateTime.now(); 21 | } 22 | 23 | Map toMap() { 24 | var map = { 25 | 'createdAt': createdAt != null 26 | ? createdAt!.toIso8601String() 27 | : DateTime.now().toString(), 28 | 'itemId': itemId, 29 | 'oldValue': oldValue, 30 | 'property': property, 31 | 'tableName': tableName, 32 | 'type': type.index, 33 | 'value': value 34 | }; 35 | 36 | if (id != null) { 37 | map['id'] = id; 38 | } 39 | 40 | return map; 41 | } 42 | 43 | factory NubeOperation.fromMap(Map map) { 44 | var operation = NubeOperation( 45 | createdAt: DateTime.parse(map['createdAt']), 46 | itemId: map['itemId'], 47 | oldValue: map['oldValue'], 48 | property: map['property'], 49 | tableName: map['tableName'], 50 | type: OperationType.values[map['type']], 51 | value: map['value'], 52 | ); 53 | 54 | operation.id = map['id']; 55 | return operation; 56 | } 57 | } 58 | 59 | enum OperationType { added, modified, deleted } -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/lib/_nubeSync/nube_table.dart: -------------------------------------------------------------------------------- 1 | abstract class NubeTable { 2 | final String tableName; 3 | final String tableUrl; 4 | final String createTableQuery; 5 | 6 | String? id; 7 | DateTime? createdAt; 8 | DateTime? updatedAt; 9 | 10 | NubeTable( 11 | {this.id, this.tableName = '', this.tableUrl = '', this.createTableQuery = ''}); 12 | 13 | Map toMap(); 14 | 15 | dynamic fromMap(Map map); 16 | } 17 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/lib/dto/todo_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:nubesyncflutter/_nubeSync/nube_table.dart'; 2 | 3 | class TodoItem extends NubeTable { 4 | final String columnId = 'id'; 5 | final String columnName = 'name'; 6 | 7 | @override 8 | String get createTableQuery => '''CREATE TABLE IF NOT EXISTS $tableName ( 9 | $columnId varchar NOT NULL PRIMARY KEY, 10 | $columnName TEXT)'''; 11 | 12 | @override 13 | String get tableName => 'TodoItem'; 14 | 15 | @override 16 | String get tableUrl => 'api/todoitems'; 17 | 18 | String name; 19 | 20 | TodoItem({id, this.name = ''}) : super(id: id); 21 | 22 | @override 23 | Map toMap() { 24 | var map = { 25 | columnName: name, 26 | }; 27 | 28 | if (id != null) { 29 | map[columnId] = id; 30 | } 31 | 32 | return map; 33 | } 34 | 35 | TodoItem fromMap(Map map) { 36 | return TodoItem(id: map[columnId], name: map[columnName]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:nubesyncflutter/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/web/favicon.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-192.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-512.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Flutter/nubesyncflutter/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /samples/Clients/Flutter/nubesyncflutter/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nubesyncflutter", 3 | "short_name": "nubesyncflutter", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with your package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using Android.App; 4 | using Android.Content.PM; 5 | using Android.Runtime; 6 | using Android.Views; 7 | using Android.Widget; 8 | using Android.OS; 9 | 10 | namespace NubeSync.Mobile.Droid 11 | { 12 | [Activity(Label = "NubeSync.Mobile", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] 13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 14 | { 15 | protected override void OnCreate(Bundle savedInstanceState) 16 | { 17 | TabLayoutResource = Resource.Layout.Tabbar; 18 | ToolbarResource = Resource.Layout.Toolbar; 19 | 20 | base.OnCreate(savedInstanceState); 21 | 22 | Xamarin.Essentials.Platform.Init(this, savedInstanceState); 23 | global::Xamarin.Forms.Forms.Init(this, savedInstanceState); 24 | LoadApplication(new App()); 25 | } 26 | public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults) 27 | { 28 | Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults); 29 | 30 | base.OnRequestPermissionsResult(requestCode, permissions, grantResults); 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using Android.App; 5 | 6 | // General Information about an assembly is controlled through the following 7 | // set of attributes. Change these attribute values to modify the information 8 | // associated with an assembly. 9 | [assembly: AssemblyTitle("NubeSync.Mobile.Android")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("NubeSync.Mobile.Android")] 14 | [assembly: AssemblyCopyright("Copyright © 2014")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | [assembly: ComVisible(false)] 18 | 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | [assembly: AssemblyVersion("1.0.0.0")] 26 | [assembly: AssemblyFileVersion("1.0.0.0")] 27 | 28 | // Add some common permissions, these can be removed if not needed 29 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 30 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 31 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.xml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable-hdpi/ 12 | icon.png 13 | 14 | drawable-ldpi/ 15 | icon.png 16 | 17 | drawable-mdpi/ 18 | icon.png 19 | 20 | layout/ 21 | main.xml 22 | 23 | values/ 24 | strings.xml 25 | 26 | In order to get the build system to recognize Android resources, set the build action to 27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 28 | instead operate on resource IDs. When you compile an Android application that uses resources, 29 | the build system will package the resources for distribution and generate a class called 30 | "Resource" that contains the tokens for each one of the resources included. For example, 31 | for the above Resources layout, this is what the Resource class would expose: 32 | 33 | public class Resource { 34 | public class drawable { 35 | public const int icon = 0x123; 36 | } 37 | 38 | public class layout { 39 | public const int main = 0x456; 40 | } 41 | 42 | public class strings { 43 | public const int first_string = 0xabc; 44 | public const int second_string = 0xbcd; 45 | } 46 | } 47 | 48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main 49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first 50 | string in the dictionary file values/strings.xml. 51 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/layout/Tabbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/layout/Toolbar.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-anydpi-v26/icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-anydpi-v26/icon_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-hdpi/icon.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-hdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-hdpi/launcher_foreground.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-mdpi/icon.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-mdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-mdpi/launcher_foreground.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xhdpi/icon.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxhdpi/icon.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxxhdpi/icon.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | #3F51B5 5 | #303F9F 6 | #FF4081 7 | 8 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.Android/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 26 | 27 | 30 | 31 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/LargeTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/LargeTile.scale-100.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/LargeTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/LargeTile.scale-200.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/LargeTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/LargeTile.scale-400.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SmallTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SmallTile.scale-100.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SmallTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SmallTile.scale-200.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SmallTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SmallTile.scale-400.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-16.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-256.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.altform-unplated_targetsize-48.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.targetsize-16.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.targetsize-256.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Square44x44Logo.targetsize-48.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.backup.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.scale-200.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/StoreLogo.scale-400.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.Foundation; 7 | using Windows.Foundation.Collections; 8 | using Windows.UI.Xaml; 9 | using Windows.UI.Xaml.Controls; 10 | using Windows.UI.Xaml.Controls.Primitives; 11 | using Windows.UI.Xaml.Data; 12 | using Windows.UI.Xaml.Input; 13 | using Windows.UI.Xaml.Media; 14 | using Windows.UI.Xaml.Navigation; 15 | 16 | namespace NubeSync.Mobile.UWP 17 | { 18 | public sealed partial class MainPage 19 | { 20 | public MainPage() 21 | { 22 | this.InitializeComponent(); 23 | 24 | LoadApplication(new NubeSync.Mobile.App()); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Package.appxmanifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | NubeSync.Mobile.UWP 18 | dd75fead-caa6-4682-93f5-1ba2d920458c 19 | Assets\StoreLogo.png 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("NubeSync.Mobile.UWP")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NubeSync.Mobile.UWP")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.UWP/Properties/Default.rd.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace NubeSync.Mobile.iOS 9 | { 10 | // The UIApplicationDelegate for the application. This class is responsible for launching the 11 | // User Interface of the application, as well as listening (and optionally responding) to 12 | // application events from iOS. 13 | [Register("AppDelegate")] 14 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 15 | { 16 | // 17 | // This method is invoked when the application has loaded and is ready to run. In this 18 | // method you should instantiate the window, load the UI into it and then make the window 19 | // visible. 20 | // 21 | // You have 17 seconds to return from this method, or iOS will terminate your application. 22 | // 23 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 24 | { 25 | global::Xamarin.Forms.Forms.Init(); 26 | LoadApplication(new App()); 27 | 28 | return base.FinishedLaunching(app, options); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "scale": "2x", 5 | "size": "20x20", 6 | "idiom": "iphone", 7 | "filename": "Icon40.png" 8 | }, 9 | { 10 | "scale": "3x", 11 | "size": "20x20", 12 | "idiom": "iphone", 13 | "filename": "Icon60.png" 14 | }, 15 | { 16 | "scale": "2x", 17 | "size": "29x29", 18 | "idiom": "iphone", 19 | "filename": "Icon58.png" 20 | }, 21 | { 22 | "scale": "3x", 23 | "size": "29x29", 24 | "idiom": "iphone", 25 | "filename": "Icon87.png" 26 | }, 27 | { 28 | "scale": "2x", 29 | "size": "40x40", 30 | "idiom": "iphone", 31 | "filename": "Icon80.png" 32 | }, 33 | { 34 | "scale": "3x", 35 | "size": "40x40", 36 | "idiom": "iphone", 37 | "filename": "Icon120.png" 38 | }, 39 | { 40 | "scale": "2x", 41 | "size": "60x60", 42 | "idiom": "iphone", 43 | "filename": "Icon120.png" 44 | }, 45 | { 46 | "scale": "3x", 47 | "size": "60x60", 48 | "idiom": "iphone", 49 | "filename": "Icon180.png" 50 | }, 51 | { 52 | "scale": "1x", 53 | "size": "20x20", 54 | "idiom": "ipad", 55 | "filename": "Icon20.png" 56 | }, 57 | { 58 | "scale": "2x", 59 | "size": "20x20", 60 | "idiom": "ipad", 61 | "filename": "Icon40.png" 62 | }, 63 | { 64 | "scale": "1x", 65 | "size": "29x29", 66 | "idiom": "ipad", 67 | "filename": "Icon29.png" 68 | }, 69 | { 70 | "scale": "2x", 71 | "size": "29x29", 72 | "idiom": "ipad", 73 | "filename": "Icon58.png" 74 | }, 75 | { 76 | "scale": "1x", 77 | "size": "40x40", 78 | "idiom": "ipad", 79 | "filename": "Icon40.png" 80 | }, 81 | { 82 | "scale": "2x", 83 | "size": "40x40", 84 | "idiom": "ipad", 85 | "filename": "Icon80.png" 86 | }, 87 | { 88 | "scale": "1x", 89 | "size": "76x76", 90 | "idiom": "ipad", 91 | "filename": "Icon76.png" 92 | }, 93 | { 94 | "scale": "2x", 95 | "size": "76x76", 96 | "idiom": "ipad", 97 | "filename": "Icon152.png" 98 | }, 99 | { 100 | "scale": "2x", 101 | "size": "83.5x83.5", 102 | "idiom": "ipad", 103 | "filename": "Icon167.png" 104 | }, 105 | { 106 | "scale": "1x", 107 | "size": "1024x1024", 108 | "idiom": "ios-marketing", 109 | "filename": "Icon1024.png" 110 | } 111 | ], 112 | "properties": {}, 113 | "info": { 114 | "version": 1, 115 | "author": "xcode" 116 | } 117 | } -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIDeviceFamily 6 | 7 | 1 8 | 2 9 | 10 | UISupportedInterfaceOrientations 11 | 12 | UIInterfaceOrientationPortrait 13 | UIInterfaceOrientationLandscapeLeft 14 | UIInterfaceOrientationLandscapeRight 15 | 16 | UISupportedInterfaceOrientations~ipad 17 | 18 | UIInterfaceOrientationPortrait 19 | UIInterfaceOrientationPortraitUpsideDown 20 | UIInterfaceOrientationLandscapeLeft 21 | UIInterfaceOrientationLandscapeRight 22 | 23 | MinimumOSVersion 24 | 8.0 25 | CFBundleDisplayName 26 | NubeSync.Mobile 27 | CFBundleIdentifier 28 | com.companyname.NubeSync.Mobile 29 | CFBundleVersion 30 | 1.0 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | CFBundleName 34 | NubeSync.Mobile 35 | XSAppIconAssets 36 | Assets.xcassets/AppIcon.appiconset 37 | 38 | 39 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace NubeSync.Mobile.iOS 9 | { 10 | public class Application 11 | { 12 | // This is the main entry point of the application. 13 | static void Main(string[] args) 14 | { 15 | // if you want to use a different Application Delegate class from "AppDelegate" 16 | // you can specify it here. 17 | UIApplication.Main(args, null, "AppDelegate"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("NubeSync.Mobile.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NubeSync.Mobile.iOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefffdev/NubeSync/51aead935589a51085a1ed2be25bd79de424d2df/samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile.iOS/Resources/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile/App.xaml: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Xamarin.Forms; 3 | using Xamarin.Forms.Xaml; 4 | 5 | namespace NubeSync.Mobile 6 | { 7 | public partial class App : Application 8 | { 9 | public App() 10 | { 11 | InitializeComponent(); 12 | 13 | MainPage = new MainPage(); 14 | } 15 | 16 | protected override void OnStart() 17 | { 18 | } 19 | 20 | protected override void OnSleep() 21 | { 22 | } 23 | 24 | protected override void OnResume() 25 | { 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms.Xaml; 2 | 3 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)] -------------------------------------------------------------------------------- /samples/Clients/Xamarin.Forms/NubeSync.Mobile/NubeSync.Mobile/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  2 | 9 | 10 | 11 |