author
int64 658
755k
| date
stringlengths 19
19
| timezone
int64 -46,800
43.2k
| hash
stringlengths 40
40
| message
stringlengths 5
490
| mods
list | language
stringclasses 20
values | license
stringclasses 3
values | repo
stringlengths 5
68
| original_message
stringlengths 12
491
|
---|---|---|---|---|---|---|---|---|---|
594,272 |
21.05.2021 16:18:04
| -7,200 |
bd3ba44299410d6ab588dbf4c98b20d49a7c85ec
|
[W/XF/Workout] Svace fixes.
|
[
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Workout/src/Workout/App.xaml.cs",
"new_path": "Wearable/Xamarin.Forms/Workout/src/Workout/App.xaml.cs",
"diff": "@@ -35,6 +35,8 @@ namespace Workout\ndpi = 301;\n}\n+ if (Resources != null)\n+ {\nResources[\"FontSizeXXXXS\"] = 19 * _fontSizeMultiplier / dpi;\nResources[\"FontSizeXXXS\"] = 22 * _fontSizeMultiplier / dpi;\nResources[\"FontSizeXXS\"] = 24 * _fontSizeMultiplier / dpi;\n@@ -45,6 +47,7 @@ namespace Workout\nResources[\"FontSizeXL\"] = 42 * _fontSizeMultiplier / dpi;\nResources[\"FontSizeXXL\"] = 46 * _fontSizeMultiplier / dpi;\nResources[\"FontSizeXXXL\"] = 62 * _fontSizeMultiplier / dpi;\n+ }\nif (PrivilegeService.AllPermissionsGranted())\n{\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[W/XF/Workout] Svace fixes.
|
594,227 |
26.05.2021 11:46:54
| -19,080 |
67ca361e7199fdd6286350d99ac04e25740cc454
|
Mask HERE_KEY
|
[
{
"change_type": "MODIFY",
"old_path": "TV/Xamarin.Forms/Maps/Maps.Tizen.TV/Maps.Tizen.TV_App.cs",
"new_path": "TV/Xamarin.Forms/Maps/Maps.Tizen.TV/Maps.Tizen.TV_App.cs",
"diff": "@@ -52,7 +52,7 @@ namespace Maps.Tizen.TV\n/// The key of HERE provider. Please get the key from https://developer.here.com/.\n/// You can see the guide about getting the key in https://developer.tizen.org/development/guides/native-application/location-and-sensors/maps-and-maps-service/getting-here-maps-credentials.\n/// </summary>\n- public string HERE_KEY = \"57l3m35FktUN4sBpDTcJ/ckFerp2t5bCVjouh9v2HCw\";\n+ public string HERE_KEY = \"APP_ID/APP_CODE\";\n/// <summary>\n/// The Window object.\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Mask HERE_KEY
Signed-off-by: chakradhar pogiri <v.pogiri@samsung.com>
|
594,294 |
28.05.2021 13:59:26
| -32,400 |
38913ac00b86a2cbf8f00a491a4fd12dacf4a224
|
[Downloader][NetworkApp] Update sdk/api version
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Downloader/Downloader/Downloader.Tizen.Mobile/Downloader.Tizen.Mobile.csproj",
"new_path": "Mobile/Xamarin.Forms/Downloader/Downloader/Downloader.Tizen.Mobile/Downloader.Tizen.Mobile.csproj",
"diff": "<PropertyGroup>\n<OutputType>Exe</OutputType>\n- <TargetFramework>tizen60</TargetFramework>\n+ <TargetFramework>tizen80</TargetFramework>\n</PropertyGroup>\n<PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Downloader/Downloader/Downloader/Downloader.csproj",
"new_path": "Mobile/Xamarin.Forms/Downloader/Downloader/Downloader/Downloader.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/NetworkApp/NetworkApp/NetworkApp/NetworkApp.csproj",
"new_path": "Mobile/Xamarin.Forms/NetworkApp/NetworkApp/NetworkApp/NetworkApp.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.657\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Downloader][NetworkApp] Update sdk/api version
|
594,240 |
02.06.2021 10:30:55
| -32,400 |
54e554844a268bab39754eed0c2962ffa6086327
|
[NUI] Fix CodingStyle error and spellings
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Pagination/NUI_Pagination/NUI_Pagination.cs",
"new_path": "Mobile/NUI/Pagination/NUI_Pagination/NUI_Pagination.cs",
"diff": "@@ -189,18 +189,18 @@ namespace NUI_Pagination\nVector2 Shift = e.Touch.GetScreenPosition(0) - TouchedPosition;\n- // If the Shift value is greater than the threshold value = 30,\n+ // If the Shift value is smaller than the threshold value = -30,\n// the MainVisualView position the pagination selected index are changed\n- if (Shift[0] > 30 && PaginationExample.SelectedIndex > 0)\n+ if (Shift[0] < -30 && PaginationExample.SelectedIndex > 0)\n{\nMainVisualView.Position2D = MainVisualView.Position2D + WindowShift;\nPaginationExample.SelectedIndex = PaginationExample.SelectedIndex - 1;\nIfTouched = false;\n}\n- // If the Shift value is smaller than the threshold value = -30,\n+ // If the Shift value is greater than the threshold value = 30,\n// the MainVisualView position the pagination selected index are changed\n- if (Shift[0] < -30 && PaginationExample.SelectedIndex < PaginationExample.IndicatorCount - 1)\n+ if (Shift[0] > 30 && PaginationExample.SelectedIndex < PaginationExample.IndicatorCount - 1)\n{\nMainVisualView.Position2D = MainVisualView.Position2D - WindowShift;\nPaginationExample.SelectedIndex = PaginationExample.SelectedIndex + 1;\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/ScrollableBaseExample/ScrollableBaseExample/ScrollableBaseExample.cs",
"new_path": "Mobile/NUI/ScrollableBaseExample/ScrollableBaseExample/ScrollableBaseExample.cs",
"diff": "@@ -63,6 +63,7 @@ namespace ScrollableBaseExample\n{\nitems[i].BackgroundColor = Color.Cyan;\n}\n+\nscrollableBase.Add(items[i]);\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"new_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"diff": "@@ -63,6 +63,7 @@ namespace VideoViewSample\n{\nExit();\n}\n+\nbreak;\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Visuals/NUI_Visuals/NUI_Visuals.cs",
"new_path": "Mobile/NUI/Visuals/NUI_Visuals/NUI_Visuals.cs",
"diff": "@@ -85,7 +85,7 @@ namespace NUI_Visuals\n/// <summary>\n/// array of primitive visuals displayed after clicking the corresponding button\n/// </summary>\n- private string[] PrimitiveName = {\"Sphere\", \"ConicalFrustrum\", \"Cone\", \"Cylinder\", \"BevelledCube\", \"Octahedron\", \"Cube\"};\n+ private string[] PrimitiveName = { \"Sphere\", \"ConicalFrustum\", \"Cone\", \"Cylinder\", \"BeveledCube\", \"Octahedron\", \"Cube\" };\n/// <summary>\n/// number of primitive visuals\n/// </summary>\n@@ -200,6 +200,7 @@ namespace NUI_Visuals\n{\nButtons[i].BackgroundColor = GrayColor;\n}\n+\nButtons[choosenButton].BackgroundColor = ActiveColor;\n}\n@@ -288,7 +289,7 @@ namespace NUI_Visuals\nThisPrimitiveVisual.Shape = PrimitiveVisualShapeType.Sphere;\nbreak;\n- case \"ConicalFrustrum\":\n+ case \"ConicalFrustum\":\nThisPrimitiveVisual.Shape = PrimitiveVisualShapeType.ConicalFrustrum;\nThisPrimitiveVisual.ScaleHeight = 2.0f;\nThisPrimitiveVisual.ScaleTopRadius = 0.3f;\n@@ -321,7 +322,7 @@ namespace NUI_Visuals\nThisPrimitiveVisual.MixColor = Color.Green;\nbreak;\n- case \"BevelledCube\":\n+ case \"BeveledCube\":\nThisPrimitiveVisual.Shape = PrimitiveVisualShapeType.BevelledCube;\nThisPrimitiveVisual.ScaleDimensions = new Vector3(0.0f, 0.5f, 1.1f);\nThisPrimitiveVisual.BevelPercentage = 0.3f;\n@@ -477,10 +478,10 @@ namespace NUI_Visuals\nbreak;\ncase \"Sphere\":\n- case \"ConicalFrustrum\":\n+ case \"ConicalFrustum\":\ncase \"Cone\":\ncase \"Cylinder\":\n- case \"BevelledCube\":\n+ case \"BeveledCube\":\ncase \"Octahedron\":\ncase \"Cube\":\nThisVisualMap = CreatePrimitiveVisual(visualType);\n@@ -502,7 +503,7 @@ namespace NUI_Visuals\n{\nVisualView CurrentVisualView = new VisualView();\nCurrentVisualView.Size2D = new Size2D(CurrentWidth, CurrentHeight);\n- CurrentVisualView.ParentOrigin = ParentOrigin.TopLeft;;\n+ CurrentVisualView.ParentOrigin = ParentOrigin.TopLeft;\nCurrentVisualView.PositionUsesPivotPoint = true;\nCurrentVisualView.PivotPoint = PivotPoint.TopLeft;\nCurrentVisualView.Position2D = new Position2D(FrameSize, 0);\n@@ -579,7 +580,7 @@ namespace NUI_Visuals\n{\nVisualView CurrentVisualView = new VisualView();\nCurrentVisualView.Size2D = new Size2D(CurrentWidth, CurrentHeight);\n- CurrentVisualView.ParentOrigin = ParentOrigin.TopLeft;;\n+ CurrentVisualView.ParentOrigin = ParentOrigin.TopLeft;\nCurrentVisualView.PositionUsesPivotPoint = true;\nCurrentVisualView.PivotPoint = PivotPoint.TopLeft;\nCurrentVisualView.Position2D = new Position2D(WindowWidth + FrameSize, 0);\n@@ -591,11 +592,14 @@ namespace NUI_Visuals\nThisVisualMap = CreateTextVisual(\"VISUALS\", 20.0f, new RelativeVector2(0.5f, 0.0f));\nCurrentVisualView.AddVisual(\"TextVisuals\", ThisVisualMap);\n- RelativeVector2[] ImageTextRelativePosition = {new RelativeVector2(0.3f,0.3f),\n+ RelativeVector2[] ImageTextRelativePosition =\n+ {\n+ new RelativeVector2(0.3f,0.3f),\nnew RelativeVector2(0.7f,0.3f),\nnew RelativeVector2(0.3f,0.9f),\nnew RelativeVector2(0.7f,0.9f),\n- new RelativeVector2(0.5f,0.6f)};\n+ new RelativeVector2(0.5f,0.6f)\n+ };\nfor (uint i = 0; i < ImageCount; ++i)\n{\n@@ -605,6 +609,7 @@ namespace NUI_Visuals\n{\nThisVisualMap.RelativeSize = new RelativeVector2(2 * ImageRelativeWidth, ImageRelativeHeight);\n}\n+\nCurrentVisualView.AddVisual(ImageType[i], ThisVisualMap);\nCurrentVisualView.AddVisual(\"Text\" + ImageType[i], CreateTextVisual(ImageType[i], 9.0f, ImageTextRelativePosition[i]));\n}\n@@ -622,7 +627,7 @@ namespace NUI_Visuals\n{\nVisualView CurrentVisualView = new VisualView();\nCurrentVisualView.Size2D = new Size2D(CurrentWidth, CurrentHeight);\n- CurrentVisualView.ParentOrigin = ParentOrigin.TopLeft;;\n+ CurrentVisualView.ParentOrigin = ParentOrigin.TopLeft;\nCurrentVisualView.PositionUsesPivotPoint = true;\nCurrentVisualView.PivotPoint = PivotPoint.TopLeft;\nCurrentVisualView.Position2D = new Position2D(2 * WindowWidth + FrameSize, 0);\n@@ -683,7 +688,7 @@ namespace NUI_Visuals\nCurrentWidth = WindowWidth - 2 * FrameSize;\nCurrentHeight = (int)((WindowHeight - 3 * FrameSize) * (1 - ButtonToMainRatio));\nMainVisualView.Size2D = new Size2D(3 * WindowWidth, CurrentHeight);\n- MainVisualView.ParentOrigin = ParentOrigin.TopLeft;;\n+ MainVisualView.ParentOrigin = ParentOrigin.TopLeft;\nMainVisualView.PositionUsesPivotPoint = true;\nMainVisualView.PivotPoint = PivotPoint.TopLeft;\nMainVisualView.Position2D = new Position2D(0, FrameSize);\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI] Fix CodingStyle error and spellings
|
594,264 |
07.06.2021 14:22:20
| -32,400 |
c8987b6521740054605e6c5cfff570190dd49e53
|
[Mobile][IME] Update project settings with latest Xamarin Forms
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/IMEManager/IMEManager/IMEManager/IMEManager.csproj",
"new_path": "Mobile/Xamarin.Forms/IMEManager/IMEManager/IMEManager/IMEManager.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/IMESample/IMESample/IMESample/IMESample.csproj",
"new_path": "Mobile/Xamarin.Forms/IMESample/IMESample/IMESample/IMESample.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][IME] Update project settings with latest Xamarin Forms (#260)
Co-authored-by: InHong Han <inhong1.han@samsung.com>
|
594,232 |
08.06.2021 18:03:01
| -32,400 |
86edacf9dac0dafc7f6be4e6418139a577535a97
|
[Wearable][Feedback] Update Xamarin.Forms version
|
[
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/FeedbackApp/src/FeedbackApp/FeedbackApp.csproj",
"new_path": "Wearable/Xamarin.Forms/FeedbackApp/src/FeedbackApp/FeedbackApp.csproj",
"diff": "</ItemGroup>\n<ItemGroup>\n- <PackageReference Include=\"Tizen.Wearable.CircularUI\" Version=\"1.5.2\" />\n+ <PackageReference Include=\"Tizen.Wearable.CircularUI\" Version=\"1.5.3\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/FeedbackApp/src/FeedbackApp/PatternListPage.cs",
"new_path": "Wearable/Xamarin.Forms/FeedbackApp/src/FeedbackApp/PatternListPage.cs",
"diff": "@@ -23,7 +23,7 @@ using Tizen.System;\nnamespace FeedbackApp\n{\n- class PatternListPage : CirclePage\n+ class PatternListPage : ContentPage\n{\n/// <summary>\n/// Method is executed after ListView item has been tapped\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/FeedbackApp/src/FeedbackApp/ResultPage.cs",
"new_path": "Wearable/Xamarin.Forms/FeedbackApp/src/FeedbackApp/ResultPage.cs",
"diff": "@@ -21,7 +21,7 @@ namespace FeedbackApp\n/// <summary>\n/// Result page of Feedback application\n/// </summary>\n- class ResultPage : CirclePage\n+ class ResultPage : ContentPage\n{\n/// <summary>\n/// Create a Label instance\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Wearable][Feedback] Update Xamarin.Forms version
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
594,232 |
08.06.2021 18:08:53
| -32,400 |
7e5a07e2e5237847d54dab704cfd0c204f1a25a6
|
[Mobile][Feedback] update Xamarin.Forms version
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/FeedbackApp/FeedbackApp/FeedbackApp.Tizen.Mobile/FeedbackApp.Tizen.Mobile.csproj",
"new_path": "Mobile/Xamarin.Forms/FeedbackApp/FeedbackApp/FeedbackApp.Tizen.Mobile/FeedbackApp.Tizen.Mobile.csproj",
"diff": "<Folder Include=\"res\\\" />\n</ItemGroup>\n+ <ItemGroup>\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n+ </ItemGroup>\n+\n<ItemGroup>\n<ProjectReference Include=\"..\\FeedbackApp\\FeedbackApp.csproj\" />\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/FeedbackApp/FeedbackApp/FeedbackApp/FeedbackApp.csproj",
"new_path": "Mobile/Xamarin.Forms/FeedbackApp/FeedbackApp/FeedbackApp/FeedbackApp.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][Feedback] update Xamarin.Forms version
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
|
594,233 |
08.06.2021 12:40:54
| -7,200 |
68dda9b4d4937d8eee7f4d7744b698d9468ed017
|
[Mobile][XF] Upgrade csproj dependencies
Update SDK and XF at following mobile sample apps:
Accounts
BasicCalculator
SecureRepository
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Accounts/SampleAccount/SampleAccount/SampleAccount.csproj",
"new_path": "Mobile/Xamarin.Forms/Accounts/SampleAccount/SampleAccount/SampleAccount.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.495\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/BasicCalculator/src/BasicCalculator/BasicCalculator/BasicCalculator.csproj",
"new_path": "Mobile/Xamarin.Forms/BasicCalculator/src/BasicCalculator/BasicCalculator/BasicCalculator.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SecureRepository/SecureRepository/SecureRepository/SecureRepository.csproj",
"new_path": "Mobile/Xamarin.Forms/SecureRepository/SecureRepository/SecureRepository/SecureRepository.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][XF] Upgrade csproj dependencies
Update SDK and XF at following mobile sample apps:
- Accounts
- BasicCalculator
- SecureRepository
|
594,272 |
08.06.2021 16:28:57
| -7,200 |
a586a14c8b1801dfad78d1e0eb323c53d17213f1
|
Fixed app's responding issue.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor/HeartRateMonitor.cs",
"new_path": "Mobile/Xamarin.Forms/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor/HeartRateMonitor.cs",
"diff": "@@ -45,6 +45,7 @@ namespace HeartRateMonitor\n{\nMeasurementPage appMeasurementPage = new MeasurementPage();\nAppMainViewModel = new MainViewModel(Properties, new PageNavigation(appMeasurementPage.Navigation));\n+ appMeasurementPage.BindingContext = AppMainViewModel;\nMainPage = new NavigationPage(appMeasurementPage)\n{\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor/Views/MeasurementPage.xaml",
"new_path": "Mobile/Xamarin.Forms/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor/Views/MeasurementPage.xaml",
"diff": "xmlns:views=\"clr-namespace:HeartRateMonitor.Views\"\nx:Class=\"HeartRateMonitor.Views.MeasurementPage\"\nTitle=\"Heart Rate Monitor\"\n- BindingContext=\"{Binding Source={x:Static Application.Current}, Path=AppMainViewModel}\"\nNavigationPage.HasBackButton=\"False\"\nNavigationPage.HasNavigationBar=\"{Binding IsStarted}\">\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Fixed app's responding issue.
|
594,227 |
09.06.2021 09:03:36
| -19,080 |
64332e6ecc9aac66112b83212e9431a0b0c0b2cf
|
[Location] Update project settings with latest Xamarin Form
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Location/Location/Location/Location.csproj",
"new_path": "Mobile/Xamarin.Forms/Location/Location/Location/Location.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Location/Location/Location/Location.csproj",
"new_path": "Wearable/Xamarin.Forms/Location/Location/Location/Location.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"5.0.0.14629\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.356\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Location] Update project settings with latest Xamarin Form
|
594,227 |
09.06.2021 10:02:49
| -19,080 |
c702d3e2d6b4e30731f6147e22ae1f516c695d4b
|
[PushReceiver] Update project settings with latest Xamarin Form
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/PushReceiver/PushReceiver/PushReceiver/PushReceiver.csproj",
"new_path": "Mobile/Xamarin.Forms/PushReceiver/PushReceiver/PushReceiver/PushReceiver.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/PushReceiver/README.md",
"new_path": "Mobile/Xamarin.Forms/PushReceiver/README.md",
"diff": "@@ -40,9 +40,9 @@ When the application receives push notification, it shows the message like below\n### Verified Version\n-* Xamarin.Forms : 4.5.0\n+* Xamarin.Forms : 5.0.0.2012\n* Tizen.NET : 6.0.0\n-* Tizen.NET.SDK : 1.0.9\n+* Tizen.NET.SDK : 1.1.6\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[PushReceiver] Update project settings with latest Xamarin Form
|
594,251 |
11.06.2021 09:16:44
| -32,400 |
c5092fee7c224912ae8a06b671fec113c18a6e87
|
[Mobile][NFC/Smartcard] update Xamarin.Forms version
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/NFCSampleApp/NFCSampleApp/NFCSampleApp/NFCSampleApp.csproj",
"new_path": "Mobile/Xamarin.Forms/NFCSampleApp/NFCSampleApp/NFCSampleApp/NFCSampleApp.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SmartCardSampleApp/SmartCardSampleApp/SmartCardSampleApp/SmartCardSampleApp.csproj",
"new_path": "Mobile/Xamarin.Forms/SmartCardSampleApp/SmartCardSampleApp/SmartCardSampleApp/SmartCardSampleApp.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.657\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][NFC/Smartcard] update Xamarin.Forms version
Signed-off-by: jihoonjung <jh8801.jung@samsung.com>
|
594,244 |
11.06.2021 10:14:21
| -28,800 |
c11538199dc866f8a8f674fad7e37946f5c2caa5
|
[NUISample] Add comments to VisualSample
|
[
{
"change_type": "MODIFY",
"old_path": "TV/NUI/VisualSample/VisualSample/src/VisualSample.cs",
"new_path": "TV/NUI/VisualSample/VisualSample/src/VisualSample.cs",
"diff": "@@ -71,6 +71,8 @@ namespace VisualSample\nView focusIndicator = new View();\nFocusManager.Instance.FocusIndicator = focusIndicator;\nWindow.Instance.BackgroundColor = Color.Black;\n+\n+ //Create the text of guide.\nguide = new TextLabel();\nguide.HorizontalAlignment = HorizontalAlignment.Center;\nguide.VerticalAlignment = VerticalAlignment.Center;\n@@ -81,13 +83,12 @@ namespace VisualSample\nguide.FontFamily = \"Samsung One 600\";\nguide.Position2D = new Position2D(0, 94);\nguide.MultiLine = false;\n- //guide.PointSize = 15.0f;\nguide.PointSize = PointSize15;\nguide.Text = \"Visual Sample \\n\";\nguide.TextColor = Color.White;\n- //guide.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nWindow.Instance.GetDefaultLayer().Add(guide);\n+ //Create the visual view for example.\n_visualView = new VisualView();\n_visualView.PositionUsesPivotPoint = true;\n_visualView.ParentOrigin = ParentOrigin.TopLeft;\n@@ -111,6 +112,7 @@ namespace VisualSample\n{\nif (e.Key.KeyPressedName == \"XF86Back\")\n{\n+ //When receive back key, exit the app.\nthis.Exit();\n}\n}\n@@ -123,21 +125,25 @@ namespace VisualSample\n{\nVector2 stagesize = Window.Instance.Size;\n+ //Create the image visual.\nTizen.NUI.VisualMap imageVisual = CreateVisualMap(\"Image\", new Vector2(60, 100.0f), image_jpg);\nTizen.NUI.TextVisual imageText = CreateTextVisual(\"ImageVisual\", new Vector2(60, 0.0f));\n_visualView.AddVisual(\"imageVisual\", imageVisual);\n_visualView.AddVisual(\"imageText\", imageText);\n+ //Create the gif visual.\nTizen.NUI.VisualMap gifVisual = CreateVisualMap(\"Animated\", new Vector2(460, 100.0f), image_gif);\nTizen.NUI.TextVisual gifText = CreateTextVisual(\"AnimatedImageVisual\", new Vector2(460, 0.0f));\n_visualView.AddVisual(\"gifVisual\", gifVisual);\n_visualView.AddVisual(\"gifText\", gifText);\n+ //Create the color visual.\nTizen.NUI.VisualMap colorVisual = CreateVisualMap(\"Color\", new Vector2(860, 100.0f), image_gif);\nTizen.NUI.TextVisual colorText = CreateTextVisual(\"ColorVisual\", new Vector2(860, 0.0f));\n_visualView.AddVisual(\"colorVisual\", colorVisual);\n_visualView.AddVisual(\"colorText\", colorText);\n+ //Create the svg visual view.\nVisualView svgView = new VisualView();\nsvgView.PositionUsesPivotPoint = true;\nsvgView.ParentOrigin = ParentOrigin.TopLeft;\n@@ -146,16 +152,19 @@ namespace VisualSample\nsvgView.Size2D = new Size2D(200, 200);\n_visualView.Add(svgView);\n+ //Add svg visual map and svg text visual to svg visual view.\nTizen.NUI.VisualMap svgVisual = CreateVisualMap(\"SVG\", new Vector2(0, 0.0f), image_svg);\nTizen.NUI.TextVisual svgText = CreateTextVisual(\"SVGVisual\", new Vector2(1260, 0.0f));\nsvgView.AddVisual(\"svgVisual\", svgVisual);\n_visualView.AddVisual(\"svgText\", svgText);\n+ //Add nPatch visual-map and nPatch visual-text to visual view.\nTizen.NUI.VisualMap nPatchVisual = CreateVisualMap(\"NPatch\", new Vector2(1660, 100.0f), image_9patch);\nTizen.NUI.TextVisual nPatchText = CreateTextVisual(\"NPatchVisual\", new Vector2(1660, 0.0f));\n_visualView.AddVisual(\"nPatchVisual\", nPatchVisual);\n_visualView.AddVisual(\"nPatchText\", nPatchText);\n+ //Create border visual view and add it to root.\nVisualView borderView = new VisualView();\nborderView.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\nborderView.PositionUsesPivotPoint = true;\n@@ -164,11 +173,14 @@ namespace VisualSample\nborderView.Position2D = new Position2D(80, 400);\nborderView.Size2D = new Size2D(200, 200);\n_visualView.Add(borderView);\n+\n+ //Create and add the visual of border to border view.\nTizen.NUI.VisualMap borderVisual = CreateVisualMap(\"Border\", new Vector2(0, 0.0f), image_9patch);\nTizen.NUI.TextVisual borderText = CreateTextVisual(\"BorderVisual\", new Vector2(60, 300.0f));\nborderView.AddVisual(\"borderVisual\", borderVisual);\n_visualView.AddVisual(\"borderText\", borderText);\n+ //Create and add the visual of gradient to root visual view.\nTizen.NUI.VisualMap gradientVisual = CreateVisualMap(\"Gradient\", new Vector2(460, 400.0f), image_9patch);\nTizen.NUI.TextVisual gradientText = CreateTextVisual(\"GradientVisual\", new Vector2(460, 300.0f));\n_visualView.AddVisual(\"gradientVisual\", gradientVisual);\n@@ -238,6 +250,7 @@ namespace VisualSample\n/// <returns>return a primitiveVisual</returns>\nprivate Tizen.NUI.PrimitiveVisual CreatePrimitiveVisual(PrimitiveVisualShapeType type, Vector2 position)\n{\n+ //Create the primitive visual.\nTizen.NUI.PrimitiveVisual primitiveVisual = new Tizen.NUI.PrimitiveVisual();\nprimitiveVisual.Shape = type;\nprimitiveVisual.BevelPercentage = 0.3f;\n@@ -256,6 +269,7 @@ namespace VisualSample\nprivate Tizen.NUI.VisualMap CreateVisualMap(string type, Vector2 position, string url)\n{\n+ //Create the visual map with position and url.\nVisualMap visualMap = null;\nTizen.NUI.ImageVisual imageVisual = null;\nTizen.NUI.ColorVisual colorVisual = null;\n@@ -350,9 +364,9 @@ namespace VisualSample\n/// <returns>return a text visual</returns>\nprivate Tizen.NUI.TextVisual CreateTextVisual(string text, Vector2 position)\n{\n+ //Create the text visual with position.\nTizen.NUI.TextVisual textVisual = new Tizen.NUI.TextVisual();\ntextVisual.Text = text;\n- //textVisual.PointSize = 8.0f;\ntextVisual.PointSize = PointSize8;\ntextVisual.FontFamily = \"Samsung One 400\";\ntextVisual.Size = new Vector2(400.0f, 100.0f);\n@@ -375,11 +389,11 @@ namespace VisualSample\n/// <returns>return a map which contain the properties of the text visual</returns>\nprivate PropertyMap CreateTextVisual(string text, Color color)\n{\n+ //Create the text visual with color.\nPropertyMap map = new PropertyMap();\nmap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text));\nmap.Add(TextVisualProperty.Text, new PropertyValue(text));\nmap.Add(TextVisualProperty.TextColor, new PropertyValue(color));\n- //map.Add(TextVisualProperty.PointSize, new PropertyValue(8.0f));\nmap.Add(TextVisualProperty.PointSize, new PropertyValue(PointSize8));\nmap.Add(TextVisualProperty.HorizontalAlignment, new PropertyValue(\"CENTER\"));\nmap.Add(TextVisualProperty.VerticalAlignment, new PropertyValue(\"CENTER\"));\n@@ -394,6 +408,7 @@ namespace VisualSample\n/// <returns>return a map which contain the properties of the image visual</returns>\nprivate PropertyMap CreateImageVisual(string imagePath)\n{\n+ //Create the image visual with url.\nPropertyMap map = new PropertyMap();\nmap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));\nmap.Add(ImageVisualProperty.URL, new PropertyValue(imagePath));\n@@ -402,6 +417,7 @@ namespace VisualSample\nprivate Button CreateButton(string name, string text)\n{\n+ //Create the Button with name and text.\nButton button = new Button();\nbutton.Focusable = true;\nbutton.Size2D = new Size2D(440, 80);\n@@ -452,6 +468,7 @@ namespace VisualSample\n/// <returns>background view</returns>\nprivate View CreateBackGroundView()\n{\n+ //Create the back ground view.\nView view = new View();\nview.Name = \"background\";\nview.PositionUsesPivotPoint = true;\n@@ -468,6 +485,7 @@ namespace VisualSample\n/// <returns>If it is a SR emul, then return true</returns>\npublic bool IsSREmul()\n{\n+ //Judge weather is SRE mul.\nint widthDpi = (int)Window.Instance.Dpi.Width;\nint heightDpi = (int)Window.Instance.Dpi.Height;\nif (widthDpi == 314 && heightDpi == 314)\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUISample] Add comments to VisualSample
|
594,230 |
11.06.2021 12:14:13
| -32,400 |
473e2749a68b25f7754499c6af86bee298677e2b
|
[Mobile][AudioIO/MediaConent/Player/RadioSample] Update project settings with latest Xamarin Form
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/AudioIOSample/AudioIOSample/AudioIOSample/AudioIOSample.csproj",
"new_path": "Mobile/Xamarin.Forms/AudioIOSample/AudioIOSample/AudioIOSample/AudioIOSample.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.495\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/MediaContent/src/MediaContent/MediaContent/MediaContent.csproj",
"new_path": "Mobile/Xamarin.Forms/MediaContent/src/MediaContent/MediaContent/MediaContent.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/PlayerSample/PlayerSample/PlayerSample/PlayerSample.csproj",
"new_path": "Mobile/Xamarin.Forms/PlayerSample/PlayerSample/PlayerSample/PlayerSample.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/RadioSample/RadioSample/RadioSample/RadioSample.csproj",
"new_path": "Mobile/Xamarin.Forms/RadioSample/RadioSample/RadioSample/RadioSample.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][AudioIO/MediaConent/Player/RadioSample] Update project settings with latest Xamarin Form (#275)
|
594,233 |
11.06.2021 13:38:32
| -7,200 |
c86d83e1beb1c8f80b80f1cadc04f6f60cfd9c19
|
[Mobile/XF/SystemInfo] Fix run with debugging issue
Add network.wifi feature check before accessing WiFi system settings, which causes errors when running in debug mode.
Add privilege for haptic.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Mobile/Service/CapabilityService.cs",
"new_path": "Mobile/Xamarin.Forms/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Mobile/Service/CapabilityService.cs",
"diff": "@@ -19,6 +19,7 @@ using SystemInfo.Model.Capability;\nusing SystemInfo.Tizen.Mobile.Service;\nusing Tizen;\nusing SystemSettings = Tizen.System.SystemSettings;\n+using SystemInformation = Tizen.System.Information;\n[assembly: Xamarin.Forms.Dependency(typeof(CapabilityService))]\n@@ -29,6 +30,8 @@ namespace SystemInfo.Tizen.Mobile.Service\n/// </summary>\npublic class CapabilityService : ICapability\n{\n+ private const string NetworkWifiFeatureKey = \"http://tizen.org/feature/network.wifi\";\n+\n#region properties\n/// <summary>\n@@ -40,7 +43,6 @@ namespace SystemInfo.Tizen.Mobile.Service\n{\ntry\n{\n-\nreturn SystemSettings.Data3GNetworkEnabled;\n}\ncatch (NotSupportedException e)\n@@ -59,9 +61,16 @@ namespace SystemInfo.Tizen.Mobile.Service\nget\n{\ntry\n+ {\n+ if (SystemInformation.TryGetValue<bool>(NetworkWifiFeatureKey, out bool isSupported) && isSupported)\n{\nreturn SystemSettings.NetworkWifiNotificationEnabled;\n}\n+ else\n+ {\n+ return false;\n+ }\n+ }\ncatch (NotSupportedException e)\n{\nLog.Warn(\"SystemInfo\", e.Message);\n@@ -127,10 +136,13 @@ namespace SystemInfo.Tizen.Mobile.Service\n}\ntry\n+ {\n+ if (SystemInformation.TryGetValue<bool>(NetworkWifiFeatureKey, out bool isSupported) && isSupported)\n{\nSystemSettings.NetworkWifiNotificationSettingChanged +=\n(s, e) => { WifiNotificationChanged?.Invoke(s, new CapabilityChangedEventArgs(e.Value)); };\n}\n+ }\ncatch (NotSupportedException e)\n{\nLog.Warn(\"SystemInfo\", e.Message);\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Mobile/tizen-manifest.xml",
"new_path": "Mobile/Xamarin.Forms/SystemInfo/src/SystemInfo/SystemInfo.Tizen.Mobile/tizen-manifest.xml",
"diff": "<privilege>http://tizen.org/privilege/display</privilege>\n<privilege>http://tizen.org/privilege/externalstorage</privilege>\n<privilege>http://tizen.org/privilege/mediastorage</privilege>\n+ <privilege>http://tizen.org/privilege/haptic</privilege>\n</privileges>\n<dependencies />\n<provides-appdefined-privileges />\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile/XF/SystemInfo] Fix run with debugging issue
Add network.wifi feature check before accessing WiFi system settings, which causes errors when running in debug mode.
Add privilege for haptic.
|
594,237 |
13.06.2021 05:46:51
| -7,200 |
2d097205f156ad65fa9b60f805130e37bafea1d6
|
[Mobile][Camera] Update Xamarin.Forms to 5.0
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Camera/src/Camera/Camera/Camera.csproj",
"new_path": "Mobile/Xamarin.Forms/Camera/src/Camera/Camera/Camera.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][Camera] Update Xamarin.Forms to 5.0
|
594,237 |
13.06.2021 05:49:11
| -7,200 |
6b476b4010d10c5f2ae475dfb296294682391ed2
|
[Mobile][VoiceRecorder] Update Xamarin.Forms to 5.0
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder/VoiceRecorder.csproj",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder/VoiceRecorder.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n<!-- Include Nuget Package for Xamarin building -->\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][VoiceRecorder] Update Xamarin.Forms to 5.0
|
594,237 |
13.06.2021 05:51:49
| -7,200 |
aeee7f5256b387e235af18b278cda6e0fe20cdb8
|
[Mobile][VoiceRecorder] Add error logging in services
Tizen.Log.Error() call is added in ErrorHandler() methods
of services. This helps a lot when investigating TizenFX related
failures.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/ApplicationService.cs",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/ApplicationService.cs",
"diff": "@@ -39,7 +39,7 @@ namespace VoiceRecorder.Tizen.Mobile.Service\n}\ncatch (Exception)\n{\n- global::Tizen.Log.Error(\"VoiceRecorder\", \"Unable to close the application\");\n+ global::Tizen.Log.Error(Program.LogTag, \"Unable to close the application\");\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/MediaDatabaseService.cs",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/MediaDatabaseService.cs",
"diff": "* limitations under the License.\n*/\nusing System;\n+using System.Runtime.CompilerServices;\nusing Tizen.Content.MediaContent;\nusing VoiceRecorder.Model;\nusing VoiceRecorder.Tizen.Mobile.Service;\nusing Xamarin.Forms;\n-[assembly: Dependency(typeof(MediaDatabaseService))]\n+[assembly: Xamarin.Forms.Dependency(typeof(MediaDatabaseService))]\nnamespace VoiceRecorder.Tizen.Mobile.Service\n{\n@@ -107,8 +108,9 @@ namespace VoiceRecorder.Tizen.Mobile.Service\n/// Invokes \"ErrorOccurred\" to other application's modules.\n/// </summary>\n/// <param name=\"errorMessage\">Message of a thrown error.</param>\n- private void ErrorHandler(string errorMessage)\n+ private void ErrorHandler(string errorMessage, [CallerFilePath] string file = \"\", [CallerMemberName] string func = \"\", [CallerLineNumber] int line = 0)\n{\n+ global::Tizen.Log.Error(Program.LogTag, errorMessage, file, func, line);\nErrorOccurred?.Invoke(this, errorMessage);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/RecordingFilesReader.cs",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/RecordingFilesReader.cs",
"diff": "using System;\nusing System.Collections.ObjectModel;\nusing System.IO;\n+using System.Runtime.CompilerServices;\nusing Tizen.Multimedia;\nusing VoiceRecorder.Model;\nusing VoiceRecorder.Tizen.Mobile.Service;\n@@ -155,8 +156,9 @@ namespace VoiceRecorder.Tizen.Mobile.Service\n/// Invokes \"ErrorOccurred\" to other application's modules.\n/// </summary>\n/// <param name=\"errorMessage\">Message of a thrown error.</param>\n- private void ErrorHandler(string errorMessage)\n+ private void ErrorHandler(string errorMessage, [CallerFilePath] string file = \"\", [CallerMemberName] string func = \"\", [CallerLineNumber] int line = 0)\n{\n+ global::Tizen.Log.Error(Program.LogTag, errorMessage, file, func, line);\nErrorOccurred?.Invoke(this, errorMessage);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/VoicePlayerService.cs",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/VoicePlayerService.cs",
"diff": "* limitations under the License.\n*/\nusing System;\n+using System.Runtime.CompilerServices;\nusing Tizen.Multimedia;\nusing VoiceRecorder.Model;\nusing VoiceRecorder.Tizen.Mobile.Service;\nusing Xamarin.Forms;\n-[assembly: Dependency(typeof(VoicePlayerService))]\n+[assembly: Xamarin.Forms.Dependency(typeof(VoicePlayerService))]\nnamespace VoiceRecorder.Tizen.Mobile.Service\n{\n@@ -224,8 +225,9 @@ namespace VoiceRecorder.Tizen.Mobile.Service\n/// Invokes \"ErrorOccurred\" to other application's modules.\n/// </summary>\n/// <param name=\"errorMessage\">Message of a thrown error.</param>\n- private void ErrorHandler(string errorMessage)\n+ private void ErrorHandler(string errorMessage, [CallerFilePath] string file = \"\", [CallerMemberName] string func = \"\", [CallerLineNumber] int line = 0)\n{\n+ global::Tizen.Log.Error(Program.LogTag, errorMessage, file, func, line);\nErrorOccurred?.Invoke(this, errorMessage);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/VoiceRecorderService.cs",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/VoiceRecorderService.cs",
"diff": "using System;\nusing System.Collections.Generic;\nusing System.IO;\n+using System.Runtime.CompilerServices;\nusing Tizen.Multimedia;\nusing Tizen.Security;\nusing VoiceRecorder.Model;\n@@ -24,7 +25,7 @@ using VoiceRecorder.Tizen.Mobile.Service;\nusing VoiceRecorder.Utils;\nusing Xamarin.Forms;\n-[assembly: Dependency(typeof(VoiceRecorderService))]\n+[assembly: Xamarin.Forms.Dependency(typeof(VoiceRecorderService))]\nnamespace VoiceRecorder.Tizen.Mobile.Service\n{\n@@ -378,8 +379,9 @@ namespace VoiceRecorder.Tizen.Mobile.Service\n/// Invokes \"ErrorOccurred\" to other application's modules.\n/// </summary>\n/// <param name=\"errorMessage\">Message of a thrown error.</param>\n- private void ErrorHandler(string errorMessage)\n+ private void ErrorHandler(string errorMessage, [CallerFilePath] string file = \"\", [CallerMemberName] string func = \"\", [CallerLineNumber] int line = 0)\n{\n+ global::Tizen.Log.Error(Program.LogTag, errorMessage, file, func, line);\nErrorOccurred?.Invoke(this, errorMessage);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/VoiceRecorder.Tizen.Mobile.cs",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/VoiceRecorder.Tizen.Mobile.cs",
"diff": "@@ -24,6 +24,11 @@ namespace VoiceRecorder.Tizen.Mobile\n{\n#region\n+ /// <summary>\n+ /// Tag used for Tizen.Log entries.\n+ /// </summary>\n+ internal static String LogTag = \"VoiceRecorder\";\n+\n/// <summary>\n/// Stores <see cref=\"PrivilegeManager\" /> class instance.\n/// </summary>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][VoiceRecorder] Add error logging in services
Tizen.Log.Error() call is added in ErrorHandler() methods
of services. This helps a lot when investigating TizenFX related
failures.
|
594,237 |
13.06.2021 05:57:55
| -7,200 |
2b979e847274508d67c7a69982f80d4086e84a9c
|
[Mobile][VoiceRecorder] Switch default format to MP4
The default audio file codec/format was WAV. But MetadataExtractor
has some issues with WAV in 6.0. Switching to AAC/MP4 avoids them.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/VoiceRecorderService.cs",
"new_path": "Mobile/Xamarin.Forms/VoiceRecorder/src/VoiceRecorder/VoiceRecorder.Tizen.Mobile/Service/VoiceRecorderService.cs",
"diff": "@@ -150,12 +150,15 @@ namespace VoiceRecorder.Tizen.Mobile.Service\n/// </summary>\npublic void Init()\n{\n+ var bitrateType = AudioBitRateType.Medium;\n+ var fileFormat = FileFormatType.MP4;\ntry\n{\nDirectory.CreateDirectory(PATH_TO_RECORDINGS);\n- _recorder = new AudioRecorder(RecorderAudioCodec.Pcm, RecorderFileFormat.Wav)\n+ var formatCodec = FILE_FORMATS_DICTIONARY[fileFormat];\n+ _recorder = new AudioRecorder(formatCodec.Item2, formatCodec.Item1)\n{\n- AudioBitRate = RECORDING_QUALITY_DICTIONARY[AudioBitRateType.High],\n+ AudioBitRate = RECORDING_QUALITY_DICTIONARY[bitrateType],\nAudioChannels = (int)AudioChannelType.Stereo\n};\n_recorder.Prepare();\n@@ -166,8 +169,8 @@ namespace VoiceRecorder.Tizen.Mobile.Service\nreturn;\n}\n- FileFormatUpdated?.Invoke(this, FileFormatType.WAV);\n- RecordingQualityUpdated?.Invoke(this, AudioBitRateType.High);\n+ FileFormatUpdated?.Invoke(this, fileFormat);\n+ RecordingQualityUpdated?.Invoke(this, bitrateType);\n}\n/// <summary>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][VoiceRecorder] Switch default format to MP4
The default audio file codec/format was WAV. But MetadataExtractor
has some issues with WAV in 6.0. Switching to AAC/MP4 avoids them.
|
594,230 |
14.06.2021 10:09:33
| -32,400 |
6f0c5af1a45b30196d7dcdd68a80e139fe86e80b
|
[Vision/ThumnailExtractor] Fix build warning
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/ThumbnailExtractorSample/ThumbnailExtractorSample/ThumbnailExtractorSample.Tizen.Mobile/ThumbnailExtractorSample.Tizen.Mobile.csproj",
"new_path": "Mobile/Xamarin.Forms/ThumbnailExtractorSample/ThumbnailExtractorSample/ThumbnailExtractorSample.Tizen.Mobile/ThumbnailExtractorSample.Tizen.Mobile.csproj",
"diff": "<Project Sdk=\"Tizen.NET.Sdk/1.0.9\">\n- <!-- Property Group for Tizen40 Project -->\n+ <!-- Property Group for Tizen60 Project -->\n<PropertyGroup>\n<OutputType>Exe</OutputType>\n- <TargetFramework>tizen40</TargetFramework>\n+ <TargetFramework>tizen60</TargetFramework>\n</PropertyGroup>\n<PropertyGroup Condition=\" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' \">\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/ThumbnailExtractorSample/ThumbnailExtractorSample/ThumbnailExtractorSample/ThumbnailExtractorSample.csproj",
"new_path": "Mobile/Xamarin.Forms/ThumbnailExtractorSample/ThumbnailExtractorSample/ThumbnailExtractorSample/ThumbnailExtractorSample.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.657\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VisionApplicationSamples/VisionApplicationSamples/VisionApplicationSamples.Tizen.Mobile/VisionApplicationSamples.Tizen.Mobile.csproj",
"new_path": "Mobile/Xamarin.Forms/VisionApplicationSamples/VisionApplicationSamples/VisionApplicationSamples.Tizen.Mobile/VisionApplicationSamples.Tizen.Mobile.csproj",
"diff": "</ItemGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n<ItemGroup>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/VisionApplicationSamples/VisionApplicationSamples/VisionApplicationSamples/VisionApplicationSamples.csproj",
"new_path": "Mobile/Xamarin.Forms/VisionApplicationSamples/VisionApplicationSamples/VisionApplicationSamples/VisionApplicationSamples.csproj",
"diff": "<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.5.0.396\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Vision/ThumnailExtractor] Fix build warning
|
594,224 |
14.06.2021 15:12:39
| -32,400 |
f4bb258f4e0b6c513bce745ebf349e2c5d7fc5d5
|
[TextClassification] Move res dir to Tizen.Mobile
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification.Tizen.Mobile/TextClassification.Tizen.Mobile.csproj",
"new_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification.Tizen.Mobile/TextClassification.Tizen.Mobile.csproj",
"diff": "<ItemGroup>\n<Compile Remove=\"lib\\**\" />\n<Compile Remove=\"Port\\**\" />\n- <Compile Remove=\"res\\**\" />\n<EmbeddedResource Remove=\"lib\\**\" />\n<EmbeddedResource Remove=\"Port\\**\" />\n- <EmbeddedResource Remove=\"res\\**\" />\n<None Remove=\"lib\\**\" />\n<None Remove=\"Port\\**\" />\n- <None Remove=\"res\\**\" />\n</ItemGroup>\n<ItemGroup>\n"
},
{
"change_type": "RENAME",
"old_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification/res/models/labels.txt",
"new_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification.Tizen.Mobile/res/models/labels.txt",
"diff": ""
},
{
"change_type": "RENAME",
"old_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification/res/models/text_classification.tflite",
"new_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification.Tizen.Mobile/res/models/text_classification.tflite",
"diff": ""
},
{
"change_type": "RENAME",
"old_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification/res/models/vocab.txt",
"new_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification.Tizen.Mobile/res/models/vocab.txt",
"diff": ""
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[TextClassification] Move res dir to Tizen.Mobile
Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
|
594,233 |
14.06.2021 12:56:40
| -7,200 |
58f4f4b16beea96424ac1fded576c49f4ab14ddf
|
Add haptic privilege
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather.Tizen.Mobile/tizen-manifest.xml",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather.Tizen.Mobile/tizen-manifest.xml",
"diff": "<shortcut-list />\n<privileges>\n<privilege>http://tizen.org/privilege/internet</privilege>\n+ <privilege>http://tizen.org/privilege/haptic</privilege>\n</privileges>\n</manifest>\n\\ No newline at end of file\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Add haptic privilege
|
594,231 |
15.06.2021 12:35:56
| -7,200 |
86a25896cbf40911ee62d814c4c10f9d66becb73
|
[NUI][Mobile] Checkbox - fix application crush
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"diff": "@@ -59,7 +59,7 @@ namespace NUI_CheckBox\n/// <summary>\n/// Path to the directory with images\n/// </summary>\n- static string ImageURL = Tizen.Applications.Application.Current.DirectoryInfo.Resource + \"images/\";\n+ string ImageURL;\n/// <summary>\n/// View with all CheckBoxes\n/// </summary>\n@@ -94,6 +94,7 @@ namespace NUI_CheckBox\nvoid Initialize()\n{\nWindow.Instance.KeyEvent += WindowKeyEvent;\n+ ImageURL = Tizen.Applications.Application.Current.DirectoryInfo.Resource + \"images/\";\nMainView = new View();\nMainView.Size = new Size2D(CheckBoxSide + 100, 4 * CheckBoxSide + 5 * Space);\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Mobile] Checkbox - fix application crush
|
594,223 |
18.06.2021 15:44:36
| -32,400 |
a9d27e6a74204d8c95e03fa47ae297a6ebb88f94
|
Fix issue that not showing Image of tabbar
|
[
{
"change_type": "DELETE",
"old_path": "Mobile/Xamarin.Forms/UI/SNSUI/SNSUI/SNSUI.Tizen.Mobile/Renderers/CustomTabbedPageRenderer.cs",
"new_path": null,
"diff": "-/*\n- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved\n- *\n- * Licensed under the Apache License, Version 2.0 (the \"License\");\n- * you may not use this file except in compliance with the License.\n- * You may obtain a copy of the License at\n- *\n- * http://www.apache.org/licenses/LICENSE-2.0\n- *\n- * Unless required by applicable law or agreed to in writing, software\n- * distributed under the License is distributed on an \"AS IS\" BASIS,\n- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n- * See the License for the specific language governing permissions and\n- * limitations under the License.\n- */\n-\n-using Xamarin.Forms;\n-using Xamarin.Forms.Platform.Tizen;\n-using ElmSharp;\n-using EToolbarItem = ElmSharp.ToolbarItem;\n-using EToolbarItemEventArgs = ElmSharp.ToolbarItemEventArgs;\n-using SNSUI.Extensions;\n-using SNSUI.Tizen.Renderers;\n-using System.Collections.Generic;\n-using System;\n-\n-[assembly: ExportRenderer(typeof(CustomTabbedPage), typeof(CustomTabbedPageRenderer))]\n-\n-namespace SNSUI.Tizen.Renderers\n-{\n- /// <summary>\n- /// A class for a custom render to support additional functionality.\n- /// </summary>\n- public class CustomTabbedPageRenderer : VisualElementRenderer<CustomTabbedPage>, IVisualElementRenderer\n- {\n- /// <summary>\n- /// A nested class that can store an index and a page pair.\n- /// </summary>\n- class PageInfo\n- {\n- public int Index;\n- public Page Page;\n- }\n-\n- Naviframe _navi;\n- Box _box;\n- Scroller _scroller;\n- Toolbar _tpage;\n- Dictionary<EToolbarItem, PageInfo> _pageInfo = new Dictionary<EToolbarItem, PageInfo>();\n-\n- public CustomTabbedPageRenderer()\n- {\n- RegisterPropertyHandler(TabbedPage.BarBackgroundColorProperty, UpdateBarBackgroundColor);\n- RegisterPropertyHandler(\"CurrentPage\", CurrentPageChanged);\n- }\n-\n- protected override void OnElementChanged(ElementChangedEventArgs<CustomTabbedPage> e)\n- {\n- if (_tpage == null)\n- {\n- _navi = new Naviframe(Forms.NativeParent);\n-\n- _tpage = new Toolbar(Forms.NativeParent)\n- {\n- Style = \"tabbar\",\n- Text = Element.Title,\n- ShrinkMode = ToolbarShrinkMode.Expand,\n- SelectionMode = ToolbarSelectionMode.Always,\n- TransverseExpansion = true,\n- };\n- _tpage.Show();\n- _tpage.Selected += OnCurrentPageChanged;\n-\n- _box = new Box(Forms.NativeParent)\n- {\n- AlignmentX = -1,\n- AlignmentY = -1,\n- WeightX = 1,\n- WeightY = 1,\n- };\n- _box.IsHorizontal = true;\n- _box.Show();\n-\n- _scroller = new Scroller(Forms.NativeParent)\n- {\n- AlignmentX = -1,\n- AlignmentY = -1,\n- WeightX = 1,\n- WeightY = 1,\n- };\n- _scroller.Style = \"tabbar\";\n- _scroller.HorizontalScrollBarVisiblePolicy = ScrollBarVisiblePolicy.Visible;\n- _scroller.SetPageSize(App.ScreenWidth, 0);\n- _scroller.HorizontalPageScrollLimit = 1;\n- _scroller.PageScrolled += OnPageScrolled;\n- _scroller.SetContent(_box);\n- _scroller.Show();\n-\n- var item = _navi.Push(_scroller);\n- item.Style = \"tabbar/notitle\";\n- item.SetPartContent(\"tabbar\", _tpage);\n-\n- SetNativeView(_navi);\n- }\n-\n- base.OnElementChanged(e);\n- }\n-\n- protected override void Dispose(bool disposing)\n- {\n- if (_navi != null)\n- {\n- _navi.Unrealize();\n- _navi = null;\n- }\n-\n- if (_box != null)\n- {\n- _box.Unrealize();\n- _box = null;\n- }\n-\n- if (_tpage != null)\n- {\n- _tpage.Selected -= OnCurrentPageChanged;\n-\n- _tpage.Unrealize();\n- _tpage = null;\n- }\n-\n- if (_scroller != null)\n- {\n- _scroller.Unrealize();\n- _scroller.PageScrolled -= OnPageScrolled;\n- }\n-\n- base.Dispose(disposing);\n- }\n-\n- protected override void OnElementReady()\n- {\n- InitializePageInfo();\n- base.OnElementReady();\n- }\n-\n- /// <summary>\n- /// To initialize page info.\n- /// </summary>\n- void InitializePageInfo()\n- {\n- var logicalChildren = (Element as IElementController).LogicalChildren;\n- int pageIndex = 0;\n-\n- foreach (Page child in logicalChildren)\n- {\n- var toolbarItem = _tpage.Append(null, null);\n-\n- /// To Set a backgroundcolor for every toolbar item\n- toolbarItem.SetPartColor(\"bg\", Element.BarBackgroundColor.ToNative());\n-\n- _pageInfo.Add(toolbarItem, new PageInfo { Index = pageIndex++, Page = child });\n-\n- var content = Platform.GetOrCreateRenderer(child).NativeView;\n- content.SetAlignment(-1, -1);\n- content.SetWeight(1, 1);\n- content.MinimumWidth = App.ScreenWidth;\n- content.Show();\n- _box.PackEnd(content);\n-\n- if (Element.CurrentPage == child)\n- {\n- toolbarItem.IsSelected = true;\n- ShowCurrentPage(_pageInfo[toolbarItem]);\n- }\n- }\n- }\n-\n- /// <summary>\n- /// A handler that be invoked when the current page is changed from tpage.\n- /// </summary>\n- /// <param name=\"sender\">A sender</param>\n- /// <param name=\"e\">An event</param>\n- void OnCurrentPageChanged(object sender, EToolbarItemEventArgs e)\n- {\n- if (_tpage.SelectedItem == null)\n- {\n- return;\n- }\n-\n- /// To send a \"SendDisappearing\" event for the previous current page\n- (Element.CurrentPage as IPageController)?.SendDisappearing();\n-\n- /// To set the new current page, show it and send a \"SendAppearing\" event for it\n- Element.CurrentPage = _pageInfo[_tpage.SelectedItem].Page;\n- ShowCurrentPage(_pageInfo[_tpage.SelectedItem]);\n- (Element.CurrentPage as IPageController)?.SendAppearing();\n- }\n-\n- /// <summary>\n- /// A handler that be invoked when the CurrentPage of the TabbedPage is changed.\n- /// </summary>\n- void CurrentPageChanged()\n- {\n- foreach (var pageInfo in _pageInfo)\n- {\n- if (pageInfo.Value.Page == Element.CurrentPage)\n- {\n- pageInfo.Key.IsSelected = true;\n- }\n- }\n- }\n-\n- /// <summary>\n- /// To update the background color of A tabbar.\n- /// </summary>\n- void UpdateBarBackgroundColor()\n- {\n- foreach (var pageinfo in _pageInfo)\n- {\n- pageinfo.Key.SetPartColor(\"bg\", Element.BarBackgroundColor.ToNative());\n- }\n- }\n-\n- /// <summary>\n- /// To show up a current page changed by scrolling to it.\n- /// </summary>\n- /// <param name=\"info\">A page info that has to display</param>\n- void ShowCurrentPage(PageInfo info)\n- {\n- _scroller.ScrollTo(info.Index, 0, false);\n- }\n-\n- /// <summary>\n- /// A handler that be invoked when pages is scrolled.\n- /// </summary>\n- /// <param name=\"s\">a sender</param>\n- /// <param name=\"e\">an event</param>\n- void OnPageScrolled(object s, EventArgs e)\n- {\n- foreach (var pageinfo in _pageInfo)\n- {\n- if (pageinfo.Value.Index == _scroller.HorizontalPageIndex)\n- {\n- pageinfo.Key.IsSelected = true;\n- }\n- }\n- }\n- }\n-}\n\\ No newline at end of file\n"
},
{
"change_type": "DELETE",
"old_path": "Mobile/Xamarin.Forms/UI/SNSUI/SNSUI/SNSUI/Extensions/CustomTabbedPage.cs",
"new_path": null,
"diff": "-/*\n- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved\n- *\n- * Licensed under the Apache License, Version 2.0 (the \"License\");\n- * you may not use this file except in compliance with the License.\n- * You may obtain a copy of the License at\n- *\n- * http://www.apache.org/licenses/LICENSE-2.0\n- *\n- * Unless required by applicable law or agreed to in writing, software\n- * distributed under the License is distributed on an \"AS IS\" BASIS,\n- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n- * See the License for the specific language governing permissions and\n- * limitations under the License.\n- */\n-\n-using Xamarin.Forms;\n-\n-namespace SNSUI.Extensions\n-{\n- /// <summary>\n- /// A class for a custom tabbed page.\n- /// </summary>\n- public class CustomTabbedPage : TabbedPage\n- {\n- }\n-}\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/UI/SNSUI/SNSUI/SNSUI/MainPage.ui.cs",
"new_path": "Mobile/Xamarin.Forms/UI/SNSUI/SNSUI/SNSUI/MainPage.ui.cs",
"diff": "@@ -39,7 +39,7 @@ namespace SNSUI\n{\nTitle = \"MainPage\";\n- var tabbedPage = new CustomTabbedPage\n+ var tabbedPage = new TabbedPage\n{\nChildren =\n{\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Fix issue that not showing Image of tabbar
|
594,227 |
22.06.2021 09:28:31
| -19,080 |
de8434a91b6f2aa4c650399e6a831d1f5eea9c8a
|
Adding contact privilege for subscribing calendar DB changes
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SampleSync/SampleSync/SampleSync.Tizen.Mobile/Port/SampleSyncPort.cs",
"new_path": "Mobile/Xamarin.Forms/SampleSync/SampleSync/SampleSync.Tizen.Mobile/Port/SampleSyncPort.cs",
"diff": "@@ -431,6 +431,7 @@ namespace SampleSync.Tizen.Port\ncase CheckResult.Ask:\n// User permission request required\nAskPrivacyPrivilege(\"http://tizen.org/privilege/calendar.read\");\n+ PrivacyPrivilegeManager.RequestPermission(\"http://tizen.org/privilege/contact.read\");\nbreak;\ndefault:\nbreak;\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Adding contact privilege for subscribing calendar DB changes
|
594,272 |
23.06.2021 13:51:28
| -7,200 |
c46673c709cc6eb6e1ba274137abb2323772fa69
|
Fixed double tap on checkbox.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Renderers/MultilineCellRenderer.cs",
"new_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Renderers/MultilineCellRenderer.cs",
"diff": "@@ -109,10 +109,6 @@ namespace Preference.Tizen.Mobile.Renderers\ncheck.SetAlignment(-1, -1);\ncheck.SetWeight(1, 1);\ncheck.IsChecked = multilineCell.IsChecked;\n- check.StateChanged += (sender, e) =>\n- {\n- multilineCell.IsChecked = e.NewState;\n- };\n//It is a temporary way to prevent that the check of the Cell gets focus until the UX about views in the Cell for TV is defined.\nif (Device.Idiom == TargetIdiom.TV)\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Fixed double tap on checkbox.
|
594,272 |
24.06.2021 13:23:24
| -7,200 |
e4a148f3c9ec976379a93ce05ede45f5c3fc5d5a
|
Prevented OperationFailed pop-up from displaying.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SpeechToText/src/SpeechToText/SpeechToText.Tizen.Mobile/Services/SpeechToTextService.cs",
"new_path": "Mobile/Xamarin.Forms/SpeechToText/src/SpeechToText/SpeechToText.Tizen.Mobile/Services/SpeechToTextService.cs",
"diff": "@@ -312,12 +312,19 @@ namespace SpeechToText.Tizen.Mobile.Services\n/// <param name=\"sender\">Event sender.</param>\n/// <param name=\"errorOccurredEventArgs\">Event arguments.</param>\nprivate void ClientOnErrorOccurred(object sender, Stt.ErrorOccurredEventArgs errorOccurredEventArgs)\n+ {\n+ if (errorOccurredEventArgs.ErrorValue == Stt.Error.OperationFailed)\n+ {\n+ Log.Info(\"STT\", $\"SttClient error occurred. Error value: {errorOccurredEventArgs.ErrorValue}. Error message: {errorOccurredEventArgs.ErrorMessage}.\");\n+ }\n+ else\n{\nRecognitionActive = _client.CurrentState == Stt.State.Recording ||\n_client.CurrentState == Stt.State.Processing;\nServiceError?.Invoke(this, new ServiceErrorEventArgs(\nerrorOccurredEventArgs.ErrorValue.ToPortableSttError()));\n}\n+ }\n/// <summary>\n/// Handles recognition result event from STT client.\n@@ -376,7 +383,7 @@ namespace SpeechToText.Tizen.Mobile.Services\n_initTask.SetResult(null);\n}\n- if (stateChangedEventArgs.Previous == Stt.State.Processing && RecognitionActive)\n+ if (RecognitionActive)\n{\n_client.Start(_lastUsedLanguage, _lastUsedRecognitionType);\n}\n@@ -519,12 +526,12 @@ namespace SpeechToText.Tizen.Mobile.Services\n/// </summary>\npublic void Stop()\n{\n+ RecognitionActive = false;\n+\nif (_client.CurrentState == Stt.State.Recording)\n{\n_client.Stop();\n}\n-\n- RecognitionActive = false;\n}\n/// <summary>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Prevented OperationFailed pop-up from displaying.
|
594,272 |
25.06.2021 18:55:32
| -7,200 |
ad39b9499ff48f6af3a31241a2434f63c68ae136
|
Fixed empty listview visibility.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/MainPageViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/MainPageViewModel.cs",
"diff": "@@ -78,17 +78,35 @@ namespace Weather.ViewModels\n/// </summary>\nprivate Command _onCityEnteredCommand;\n+ /// <summary>\n+ /// Local storage flag indicating if city entry is visible.\n+ /// </summary>\n+ private bool _isCityEntryVisible;\n+\n#endregion\n#region properties\n+ /// <summary>\n+ /// Gets or sets flag indicating if city entry is visible.\n+ /// </summary>\n+ public bool IsCityEntryVisible\n+ {\n+ get => _isCityEntryVisible;\n+ private set => SetProperty(ref _isCityEntryVisible, value);\n+ }\n+\n/// <summary>\n/// Gets or sets collection of available cities.\n/// </summary>\npublic ObservableCollection<City> Cities\n{\nget => _cities;\n- set => SetProperty(ref _cities, value);\n+ set\n+ {\n+ IsCityEntryVisible = value.Any() || !string.IsNullOrEmpty(EnteredCity);\n+ SetProperty(ref _cities, value);\n+ }\n}\n/// <summary>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Views/MainPage.xaml",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Views/MainPage.xaml",
"diff": "BackgroundColor=\"White\"\nAbsoluteLayout.LayoutFlags=\"None\"\nAbsoluteLayout.LayoutBounds=\"190, 800, 510, 50\"\n+ IsVisible=\"{Binding IsCityEntryVisible, Mode=OneWay}\"\nText=\"{Binding EnteredCity, Mode=TwoWay}\">\n<Entry.Behaviors>\n<behaviors:CityNameValidatorBehavior\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Fixed empty listview visibility.
|
594,289 |
27.07.2021 22:09:12
| -7,200 |
b79ec295fa956d821e19b59adb71532a9137fe3b
|
Fix OnLapPressed()
Fix for OnLapPressed() in StopWatch.xaml.cs in XStopWatch: lap stopwatch was reset before the elapsed time was saved
|
[
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/XStopWatch/XStopWatch/XStopWatch/StopWatch.xaml.cs",
"new_path": "Wearable/Xamarin.Forms/XStopWatch/XStopWatch/XStopWatch/StopWatch.xaml.cs",
"diff": "@@ -126,6 +126,8 @@ namespace XStopWatch\nBlueBar.IsVisible = true;\n}\n+ LapPressed?.Invoke(this, (_mainStopWatch.Elapsed, _subStopWatch.IsRunning ? _subStopWatch.Elapsed : _mainStopWatch.Elapsed));\n+\n_subStopWatch.Reset();\n_subStopWatch.Start();\nBlueBar.Rotation = 0;\n@@ -134,8 +136,6 @@ namespace XStopWatch\n{\nDoShowCueButton();\n}\n-\n- LapPressed?.Invoke(this, (_mainStopWatch.Elapsed, _subStopWatch.IsRunning ? _subStopWatch.Elapsed : _mainStopWatch.Elapsed));\n}\n/// <summary>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Fix OnLapPressed()
Fix for OnLapPressed() in StopWatch.xaml.cs in XStopWatch: lap stopwatch was reset before the elapsed time was saved
|
594,285 |
22.10.2021 09:53:16
| -7,200 |
09944f37a8fe7a5fc497aeb76da24f88e4d0ba08
|
Adding Tizen NUI Sample Account project to NUI Folder
|
[
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Tizen_NUI_SampleAccount/Tizen_NUI_SampleAccount/shared/res/Tizen_NUI_SampleAccount.png",
"new_path": "Mobile/NUI/Tizen_NUI_SampleAccount/Tizen_NUI_SampleAccount/shared/res/Tizen_NUI_SampleAccount.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Tizen_NUI_SampleAccount/Tizen_NUI_SampleAccount/shared/res/Tizen_NUI_SampleAccount.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Adding Tizen NUI Sample Account project to NUI Folder
|
594,286 |
15.11.2021 14:32:47
| -3,600 |
3fbcf7544fd7bb1523e47fb7c4d16cf98f43a303
|
[HeartRateMonitor] Fix Page Navigation object name.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor/ViewModels/MainViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/HeartRateMonitor/src/HeartRateMonitor/HeartRateMonitor/ViewModels/MainViewModel.cs",
"diff": "@@ -429,10 +429,10 @@ namespace HeartRateMonitor.ViewModels\n/// </summary>\n/// <param name=\"properties\">View model instance properties.</param>\n/// <param name=\"pageNavigation\">Page navigation object.</param>\n- public MainViewModel(IDictionary<string, object> properties, PageNavigation pageMavigation)\n+ public MainViewModel(IDictionary<string, object> properties, PageNavigation pageNavigation)\n{\n_properties = properties;\n- AppPageNavigation = pageMavigation;\n+ AppPageNavigation = pageNavigation;\nGetStartedCommand = new Command(ExecuteGetStartedCommand);\nToggleMeasurementCommand = new Command(ExecuteToggleMeasurementCommand);\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[HeartRateMonitor] Fix Page Navigation object name.
|
594,286 |
16.11.2021 11:51:53
| -3,600 |
172a8a5513de5ee5bf695c793505c459adf350e6
|
[CalendarComponent] Add license information.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent.Tizen.Mobile/CalendarComponent.Tizen.Mobile.cs",
"new_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent.Tizen.Mobile/CalendarComponent.Tizen.Mobile.cs",
"diff": "+/*\n+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All rights reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\nusing ElmSharp;\nusing Xamarin.Forms;\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent/CalendarComponent.cs",
"new_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent/CalendarComponent.cs",
"diff": "+/*\n+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All rights reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\nusing Xamarin.Forms;\nnamespace CalendarComponent\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[CalendarComponent] Add license information.
|
594,286 |
16.11.2021 12:09:34
| -3,600 |
1630000437d6735625f596b956ffe981aa93d484
|
[CalendarComponent] Update nugets and sdk version.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent/CalendarComponent.csproj",
"new_path": "Mobile/Xamarin.Forms/CalendarComponent/src/CalendarComponent/CalendarComponent/CalendarComponent.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2244\" />\n</ItemGroup>\n<ItemGroup>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[CalendarComponent] Update nugets and sdk version.
|
594,286 |
16.11.2021 13:47:16
| -3,600 |
6ead083e1000467898e3b5320d96a161875e0f5d
|
[TextReader] Update nugets and sdk version.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/TextReader/src/TextReader/TextReader/TextReader.csproj",
"new_path": "Mobile/Xamarin.Forms/TextReader/src/TextReader/TextReader/TextReader.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2244\" />\n</ItemGroup>\n<!-- Include Nuget Package for Xamarin building -->\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[TextReader] Update nugets and sdk version.
|
594,286 |
16.11.2021 14:29:21
| -3,600 |
a5fa4594b806a3c6584d87a9513bebf67b8641ad
|
[TextReader] Avoid possible null dereferencing.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/TextReader/src/TextReader/TextReader.Tizen.Mobile/Views/MobileViewResolver.cs",
"new_path": "Mobile/Xamarin.Forms/TextReader/src/TextReader/TextReader.Tizen.Mobile/Views/MobileViewResolver.cs",
"diff": "@@ -51,9 +51,19 @@ namespace TextReader.Tizen.Mobile.Views\nMainPage main = new MainPage();\n+ object color;\n+ if (main.Resources == null)\n+ {\n+ color = Color.White;\n+ }\n+ else\n+ {\n+ color = main.Resources[\"MainColor\"];\n+ }\n+\n_rootPage = new NavigationPage(main)\n{\n- BarBackgroundColor = (Color)main.Resources[\"MainColor\"]\n+ BarBackgroundColor = (Color)color\n};\nreturn _rootPage;\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[TextReader] Avoid possible null dereferencing.
|
594,286 |
17.11.2021 06:30:09
| -3,600 |
36dcf87e7c54f4219d5f686a21c025d1bdca0f7a
|
[MapsView] Update nugets and sdk version.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/MapsView/src/Maps/Maps/Maps.csproj",
"new_path": "Mobile/Xamarin.Forms/MapsView/src/Maps/Maps/Maps.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2244\" />\n</ItemGroup>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[MapsView] Update nugets and sdk version.
|
594,286 |
17.11.2021 09:34:45
| -3,600 |
6eac55fd9fed38aeedaa5e133b73f6346e923132
|
[MapsView] Fix param names.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/MapsView/src/Maps/Maps.Tizen.Mobile/Views/Map.xaml.cs",
"new_path": "Mobile/Xamarin.Forms/MapsView/src/Maps/Maps.Tizen.Mobile/Views/Map.xaml.cs",
"diff": "@@ -97,7 +97,8 @@ namespace Maps.Tizen.Mobile.Views\n/// <summary>\n/// Sets map center to provided position.\n/// </summary>\n- /// <param name=\"position\">Requested position.</param>\n+ /// <param name=\"latitude\">Latitude value.</param>\n+ /// <param name=\"longitude\">Longitude value.</param>\nprivate void SetMapCenter(double latitude, double longitude)\n{\nMapComponent.Map.Center = new Geocoordinates(latitude, longitude);\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[MapsView] Fix param names.
|
594,286 |
17.11.2021 10:03:24
| -3,600 |
55190b9208c715dc254a37f0ac8b2feb3d03f9bd
|
[MapsView] Avoid possible null dereferencing.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/MapsView/src/Maps/Maps.Tizen.Mobile/Renderers/MapRenderer.cs",
"new_path": "Mobile/Xamarin.Forms/MapsView/src/Maps/Maps.Tizen.Mobile/Renderers/MapRenderer.cs",
"diff": "@@ -31,7 +31,7 @@ namespace Maps.Tizen.Mobile.Renderers\n{\nprotected override async void OnElementChanged(ElementChangedEventArgs<MapComponent> e)\n{\n- if (e.OldElement is object)\n+ if (e.OldElement is object && Control != null)\n{\nControl.Resized -= OnMapViewResized;\n}\n@@ -59,7 +59,11 @@ namespace Maps.Tizen.Mobile.Renderers\nmapService?.Dispose();\n}\n+ if (Control != null)\n+ {\nControl.Resized += OnMapViewResized;\n+ }\n+\nElement.Map = Control;\nElement.InvokeMapInitialized();\n}\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[MapsView] Avoid possible null dereferencing.
|
594,286 |
17.11.2021 11:47:37
| -3,600 |
c9bbb7f7cb9cd750704ab66abfaef964de4ec531
|
[Preference] Add license information.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Preference.Tizen.Mobile.cs",
"new_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Preference.Tizen.Mobile.cs",
"diff": "+/*\n+ * Copyright (c) 2017 Samsung Electronics Co., Ltd. All rights reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\nusing Xamarin.Forms;\nnamespace Preference.Tizen.Mobile\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Preference] Add license information.
|
594,286 |
17.11.2021 12:03:38
| -3,600 |
39a836382b4d2ded3973c9d7130cf0620f65bf1c
|
[Preference] Fix spelling errors.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Controls/ToastProxy.cs",
"new_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Controls/ToastProxy.cs",
"diff": "@@ -58,7 +58,7 @@ namespace Preference.Tizen.Mobile.Controls\n#region methods\n/// <summary>\n- /// Class contructor.\n+ /// Class constructor.\n/// Creates internal instance of toast proxy.\n/// </summary>\npublic ToastProxy()\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Renderers/MultilineCellRenderer.cs",
"new_path": "Mobile/Xamarin.Forms/Preference/src/Preference/Preference.Tizen.Mobile/Renderers/MultilineCellRenderer.cs",
"diff": "@@ -129,7 +129,7 @@ namespace Preference.Tizen.Mobile.Renderers\n/// <param name=\"cell\">Actual multiline cell.</param>\n/// <param name=\"property\">Property name.</param>\n/// <param name=\"realizedView\">Set of corresponding properties names and Evas Objects.</param>\n- /// <returns>False if propertiy has been changed. True otherwise.</returns>\n+ /// <returns>False if property has been changed. True otherwise.</returns>\nprotected override bool OnCellPropertyChanged(Cell cell, string property, Dictionary<string, EvasObject> realizedView)\n{\nMultilineCell multilineCell = (MultilineCell)cell;\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Preference] Fix spelling errors.
|
594,286 |
18.11.2021 06:24:52
| -3,600 |
e746fc1737d04a88ce63922fb73301bb10a5b33d
|
[Weather] Update nugets and sdk version.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Weather.csproj",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Weather.csproj",
"diff": "<ItemGroup>\n<PackageReference Include=\"Newtonsoft.Json\" Version=\"12.0.3\" />\n<PackageReference Include=\"System.Net.Http\" Version=\"4.3.4\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2244\" />\n</ItemGroup>\n<ItemGroup>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Weather] Update nugets and sdk version.
|
594,286 |
18.11.2021 07:06:19
| -3,600 |
84c802bd6864ac5c458754d03d30e420c375f986
|
[Weather] Avoid possible null dereferencing.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"diff": "@@ -163,7 +163,10 @@ namespace Weather.ViewModels\nOnPropertyChanged(nameof(InitializationCompleted));\nCityTimeZone = new NotificationTask<Models.Location.TimeZone>(InitializeTimeZone());\n+ if (CityTimeZone != null)\n+ {\nCityTimeZone.PropertyChanged += CityTimeZoneOnPropertyChanged;\n+ }\n});\nCheckForecastCommand = new Command(CheckForecast);\n@@ -241,10 +244,16 @@ namespace Weather.ViewModels\nCurrentWeather = new NotificationTask<CurrentWeather>(InitializeWeather());\nForecast = new NotificationTask<Forecast>(InitializeForecast());\n+ if (CurrentWeather != null)\n+ {\nCurrentWeather.PropertyChanged += CurrentWeatherOnPropertyChanged;\n+ }\n+ if (Forecast != null)\n+ {\nForecast.PropertyChanged += ForecastOnPropertyChanged;\n}\n}\n+ }\n/// <summary>\n/// Callback method that is invoked on Forecast property change.\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Weather] Avoid possible null dereferencing.
|
594,286 |
18.11.2021 07:10:37
| -3,600 |
f9dd5e012ed56be0e62c32b02ad5c97f5abaa638
|
[Weather] Fix coding style errors.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Controls/PageIndicator.xaml.cs",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Controls/PageIndicator.xaml.cs",
"diff": "@@ -79,8 +79,8 @@ namespace Weather.Controls\n/// <summary>\n/// Updates images source on position changes.\n/// </summary>\n- /// <param name=\"oldPosition\"></param>\n- /// <param name=\"newPosition\"></param>\n+ /// <param name=\"oldPosition\">The old position.</param>\n+ /// <param name=\"newPosition\">The new position.</param>\npublic void UpdateIndicators(int oldPosition, int newPosition)\n{\n_dots[oldPosition].Source = DOT_EMPTY;\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Converters/MeasurementSystemConverter.cs",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/Converters/MeasurementSystemConverter.cs",
"diff": "@@ -43,6 +43,7 @@ namespace Weather.Converters\n{\nreturn string.Format(new UnitFormatter(), \"{0:\" + parameter + \"}\", value);\n}\n+\nreturn string.Empty;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/CurrentWeatherViewModel.cs",
"diff": "@@ -248,6 +248,7 @@ namespace Weather.ViewModels\n{\nCurrentWeather.PropertyChanged += CurrentWeatherOnPropertyChanged;\n}\n+\nif (Forecast != null)\n{\nForecast.PropertyChanged += ForecastOnPropertyChanged;\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/ForecastViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/Weather/Weather/Weather/ViewModels/ForecastViewModel.cs",
"diff": "@@ -144,6 +144,7 @@ namespace Weather.ViewModels\n{\ndictionary.Add(day, new List<CurrentWeather>());\n}\n+\ndictionary[day].Add(weather);\n}\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Weather] Fix coding style errors.
|
594,286 |
18.11.2021 07:19:21
| -3,600 |
fd51dd2093c368b03722b3baa9f43d32b39eefbc
|
[BasicCalculator] Update nugets and sdk version.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/BasicCalculator/src/BasicCalculator/BasicCalculator/BasicCalculator.csproj",
"new_path": "Mobile/Xamarin.Forms/BasicCalculator/src/BasicCalculator/BasicCalculator/BasicCalculator.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Tizen.NET\" Version=\"6.0.0.14995\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2244\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[BasicCalculator] Update nugets and sdk version.
|
594,286 |
18.11.2021 07:35:22
| -3,600 |
4c8e4b625ab90028096715d730dc56332d5f0eff
|
[Piano] Add license information.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Piano/Piano/Piano.Tizen.Mobile/Piano.Tizen.Mobile.cs",
"new_path": "Mobile/Xamarin.Forms/Piano/Piano/Piano.Tizen.Mobile/Piano.Tizen.Mobile.cs",
"diff": "/*\n- * Copyright (c) 2017 Samsung Electronics Co., Ltd\n+ * Copyright (c) 2021 Samsung Electronics Co., Ltd. All rights reserved.\n*\n- * Licensed under the Flora License, Version 1.1 (the \"License\");\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Piano/Piano/Piano/Piano.cs",
"new_path": "Mobile/Xamarin.Forms/Piano/Piano/Piano/Piano.cs",
"diff": "/*\n- * Copyright (c) 2017 Samsung Electronics Co., Ltd\n+ * Copyright (c) 2021 Samsung Electronics Co., Ltd. All rights reserved.\n*\n- * Licensed under the Flora License, Version 1.1 (the \"License\");\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Piano] Add license information.
|
594,286 |
18.11.2021 09:36:17
| -3,600 |
c2dc254080d78cb00acff891e9364128e54c68b5
|
[SystemInfo] Update nugets and sdk version.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/SystemInfo/src/SystemInfo/SystemInfo/SystemInfo.csproj",
"new_path": "Mobile/Xamarin.Forms/SystemInfo/src/SystemInfo/SystemInfo/SystemInfo.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2012\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2244\" />\n</ItemGroup>\n</Project>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[SystemInfo] Update nugets and sdk version.
|
594,248 |
29.11.2021 11:36:24
| -3,600 |
4d2c1a7689e08541314da605b32cc8f3229b1eaa
|
[NUI][Pagination] 'name' removed since the method was not found
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Pagination/NUI_Pagination/NUI_Pagination.cs",
"new_path": "Mobile/NUI/Pagination/NUI_Pagination/NUI_Pagination.cs",
"diff": "@@ -40,7 +40,6 @@ namespace NUI_Pagination\nNormal = Tizen.Applications.Application.Current.DirectoryInfo.Resource + \"images/gray.png\",\nSelected = Tizen.Applications.Application.Current.DirectoryInfo.Resource + \"images/blue.png\"\n},\n- Name = \"Pagination\",\n/// size of the pagination box\nSize = new Size(500, 200),\nBackgroundColor = new Color(1.0f, 1.0f, 1.0f, 1.0f),\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Pagination] 'name' removed since the method was not found
|
594,274 |
29.11.2021 21:09:02
| -19,080 |
1eeb45db8478966e804ec98fc73aedf71f815e4b
|
Calendar Sample App Crash Fix
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Calendar/Calendar/Calendar/ViewModels/MonthPageViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/Calendar/Calendar/Calendar/ViewModels/MonthPageViewModel.cs",
"diff": "@@ -119,8 +119,8 @@ namespace Calendar.ViewModels\nprivate void UpdateList()\n{\nMonthDateTime = CacheData.CurrentDateTime;\n- RecordItemProvider.Instance.GetMonthRecords(MonthDateTime);\n- RecordList = RecordItemProvider.Instance.ItemList;\n+ //RecordItemProvider.Instance.GetMonthRecords(MonthDateTime);\n+ //RecordList = RecordItemProvider.Instance.ItemList;\n}\n/// <summary>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Calendar Sample App Crash Fix
Signed-off-by: abhimanyu1dots <65957056+abhimanyu1dots@users.noreply.github.com>
|
594,248 |
29.11.2021 20:04:35
| -3,600 |
ab2d708c5a83d2438908a00384402bb27351d7c5
|
[NUI][Visuals] removed CornerRadius property
The property shouldn't be used - hiden in the source code
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Visuals/NUI_Visuals/NUI_Visuals.cs",
"new_path": "Mobile/NUI/Visuals/NUI_Visuals/NUI_Visuals.cs",
"diff": "@@ -357,7 +357,6 @@ namespace NUI_Visuals\n/// obligatory properties\nThisColorVisual.MixColor = new Color(0.2f, 0.0f, 1.0f, 0.7f);\n/// optional properties\n- ThisColorVisual.CornerRadius = 35.0f;\nThisVisualMap = ThisColorVisual;\nbreak;\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Visuals] removed CornerRadius property
The property shouldn't be used - hiden in the source code
|
594,286 |
18.11.2021 14:54:06
| -3,600 |
ce26703b1791365d9529c47a8ab4e5c99937a404
|
[RotaryTimer] Update nugets and sdk version.
|
[
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/RotaryTimer/src/RotaryTimer/RotaryTimer/RotaryTimer.csproj",
"new_path": "Wearable/Xamarin.Forms/RotaryTimer/src/RotaryTimer/RotaryTimer/RotaryTimer.csproj",
"diff": "<!-- Include Nuget Package for Xamarin building -->\n<ItemGroup>\n- <PackageReference Include=\"Tizen.NET\" Version=\"8.0.0.15631\" />\n- <PackageReference Include=\"Xamarin.Forms\" Version=\"4.8.0.1687\" />\n+ <PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n+ <PackageReference Include=\"Xamarin.Forms\" Version=\"5.0.0.2244\" />\n</ItemGroup>\n<ItemGroup>\n<EmbeddedResource Update=\"Views\\SetTimeView.xaml\">\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[RotaryTimer] Update nugets and sdk version.
|
594,286 |
01.12.2021 11:31:59
| -3,600 |
bb0a358c3980141271491296f5b17fd9dc246d16
|
[Weather] Fix obsolete API warnings.
|
[
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/ForecastPage.xaml.cs",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/ForecastPage.xaml.cs",
"diff": "using System.Linq;\nusing Weather.Utils;\nusing Tizen.Wearable.CircularUI.Forms;\n+using Xamarin.Forms;\nnamespace Weather.Views\n{\n/// <summary>\n/// Interaction logic for ForecastPage.xaml.\n/// </summary>\n- public partial class ForecastPage : CirclePage, IRotaryEventReceiver\n+ public partial class ForecastPage : ContentPage, IRotaryEventReceiver\n{\n#region fields\nprivate bool _rotating = false;\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/MissingKeyErrorPage.xaml.cs",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/MissingKeyErrorPage.xaml.cs",
"diff": "//limitations under the License.\nusing Tizen.Wearable.CircularUI.Forms;\n+using Xamarin.Forms;\nnamespace Weather.Views\n{\n/// <summary>\n/// Interaction logic for MissingKeyErrorPage.xaml\n/// </summary>\n- public partial class MissingKeyErrorPage : CirclePage\n+ public partial class MissingKeyErrorPage : ContentPage\n{\n#region methods\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Weather] Fix obsolete API warnings.
|
594,286 |
02.12.2021 14:34:57
| -3,600 |
16657723888d1da24502cf1ca716e6dba62c2223
|
[Weather] Fix font sizes. Replace action button.
|
[
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/Controls/DoubleLabel.xaml",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/Controls/DoubleLabel.xaml",
"diff": "HorizontalOptions=\"CenterAndExpand\">\n<Label Text=\"{Binding Source={x:Reference Name=Root}, Path=MainText}\"\n- FontSize=\"8\"\n+ FontSize=\"24\"\nHorizontalTextAlignment=\"Center\" />\n<Label Text=\"{Binding Source={x:Reference Name=Root}, Path=SubText}\"\nHorizontalTextAlignment=\"Center\"\nTextColor=\"LightSlateGray\"\n- FontSize=\"6\" />\n+ FontSize=\"18\" />\n</StackLayout>\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/ApiErrorPage.xaml",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/ApiErrorPage.xaml",
"diff": "<ContentPage xmlns=\"http://xamarin.com/schemas/2014/forms\"\nxmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n+ xmlns:tizen=\"clr-namespace:Xamarin.Forms.PlatformConfiguration.TizenSpecific;assembly=Xamarin.Forms.Core\"\nxmlns:viewModels=\"clr-namespace:Weather.ViewModels;assembly=Weather\"\nxmlns:converters=\"clr-namespace:Weather.Converters;assembly=Weather\"\nx:Class=\"Weather.Views.ApiErrorPage\"\n</ContentPage.Resources>\n<w:CircleStackLayout Orientation=\"Vertical\" Spacing=\"10\">\n<Label Text=\"Error\"\n- FontSize=\"12\"\n+ FontSize=\"36\"\nTextColor=\"OrangeRed\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"Center\"/>\n<Label Text=\"Error occurred while trying to get response from API.\"\n- FontSize=\"8\"\n+ FontSize=\"24\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"Center\" />\n<Label Text=\"{Binding Code, StringFormat='HTTP status code: {0}'}\"\n- FontSize=\"6\"\n+ FontSize=\"18\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"Center\" />\n<Label Text=\"{Binding Message}\"\n- FontSize=\"6\"\n+ FontSize=\"18\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"Center\" />\n+ <Button\n+ Text=\"Exit\"\n+ Command=\"{Binding ExitAppCommand}\"\n+ tizen:VisualElement.Style=\"bottom\">\n+ </Button>\n</w:CircleStackLayout>\n- <!--<w:CirclePage.ActionButton>\n- <w:ActionButtonItem Command=\"{Binding ExitAppCommand}\" Text=\"Exit\" />\n- </w:CirclePage.ActionButton>-->\n</ContentPage>\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/MainPage.xaml",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/MainPage.xaml",
"diff": "Spacing=\"5\">\n<Label Text=\"Weather App\"\n- FontSize=\"12\"\n+ FontSize=\"36\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"End\"\nHeightRequest=\"120\"\nMinimumHeightRequest=\"120\"/>\n<Label Text=\"Country code:\"\n- FontSize=\"8\"\n+ FontSize=\"24\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"Center\" />\n</w:PopupEntry>\n<Label Text=\"City:\"\n- FontSize=\"8\"\n+ FontSize=\"24\"\nHorizontalOptions=\"Fill\"\nVerticalOptions=\"Fill\"\nHorizontalTextAlignment=\"Center\"\n<Label Text=\"Matching Cities:\"\n- FontSize=\"6\"\n+ FontSize=\"18\"\nHorizontalOptions=\"Fill\"\nVerticalOptions=\"Fill\"\nHorizontalTextAlignment=\"Center\"\n<DataTemplate>\n<ViewCell>\n<Label Text=\"{Binding Name}\"\n- FontSize=\"10\"\n+ FontSize=\"30\"\nHeightRequest=\"50\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"Center\"\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/MissingKeyErrorPage.xaml",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/Views/MissingKeyErrorPage.xaml",
"diff": "<ContentPage xmlns=\"http://xamarin.com/schemas/2014/forms\"\nxmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n- xmlns:w=\"clr-namespace:Tizen.Wearable.CircularUI.Forms;assembly=Tizen.Wearable.CircularUI.Forms\"\n+ xmlns:tizen=\"clr-namespace:Xamarin.Forms.PlatformConfiguration.TizenSpecific;assembly=Xamarin.Forms.Core\"\nxmlns:viewModels=\"clr-namespace:Weather.ViewModels;assembly=Weather\"\nx:Class=\"Weather.Views.MissingKeyErrorPage\"\nNavigationPage.HasNavigationBar=\"False\">\n<viewModels:ApiErrorViewModel />\n</ContentPage.BindingContext>\n- <!--<ContentPage.ActionButton>\n- <w:ActionButtonItem Command=\"{Binding ExitAppCommand}\" Text=\"Exit app\" />\n- </ContentPage.ActionButton>-->\n-\n<ContentPage.Content>\n<StackLayout\n- VerticalOptions=\"CenterAndExpand\"\n+ VerticalOptions=\"EndAndExpand\"\nHorizontalOptions=\"CenterAndExpand\"\nOrientation=\"Vertical\">\n<Label\nTextColor=\"OrangeRed\"/>\n<Label\nText=\"API key is not set. Please, define the key in "ApiConfig.cs" file and rebuild application.\"\n- FontSize=\"8\"\n+ FontSize=\"24\"\nHorizontalTextAlignment=\"Center\"\nVerticalTextAlignment=\"Center\" />\n+ <Button\n+ Margin=\"0,20\"\n+ Text=\"Exit app\"\n+ Command=\"{Binding ExitAppCommand}\"\n+ tizen:VisualElement.Style=\"bottom\">\n+ </Button>\n</StackLayout>\n</ContentPage.Content>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Weather] Fix font sizes. Replace action button.
|
594,286 |
02.12.2021 14:36:01
| -3,600 |
4124955ea14dcb5db7b172f06db4349d736473a8
|
[Weather] Fix StyleCop warnings.
|
[
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/App.cs",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/App.cs",
"diff": "@@ -52,6 +52,7 @@ namespace Weather\n{\nroot = new MissingKeyErrorPage();\n}\n+\nMainPage = new NavigationPage(root);\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/Behaviors/CountryCodeValidatorBehavior.cs",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/Behaviors/CountryCodeValidatorBehavior.cs",
"diff": "@@ -97,8 +97,9 @@ namespace Weather.Behaviors\n}\n/// <summary>\n- /// Loads supported city list from file.\n+ /// Loads supported country list from file.\n/// </summary>\n+ /// <returns>Task with supported country list.</returns>\nprivate Task<CountryProvider> LoadCountryList()\n{\nreturn Task.Run(() =>\n"
},
{
"change_type": "MODIFY",
"old_path": "Wearable/Xamarin.Forms/Weather/Weather/ViewModels/MainPageViewModel.cs",
"new_path": "Wearable/Xamarin.Forms/Weather/Weather/ViewModels/MainPageViewModel.cs",
"diff": "@@ -200,6 +200,7 @@ namespace Weather.ViewModels\n/// <summary>\n/// Loads list of cities from JSON file.\n/// </summary>\n+ /// <returns>Task with supported city list.</returns>\nprivate Task<CityProvider> LoadCityList()\n{\nvar tcs = new TaskCompletionSource<CityProvider>();\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Weather] Fix StyleCop warnings.
|
594,298 |
06.12.2021 19:46:58
| -32,400 |
edc67c758ccdcd66106f29112c28f53507416c2f
|
[NUI] Fix LinearLayout to make children match parent
The default Width/HeightSpecification is WrapContent.
Moreover, View.Weight works with MatchParent.
Therefore, to make LinearLayout's children match parent, children's
Width/HeightSpecification should be set with MatchParent.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/LinearLayout/NUILinearLayout/NUILinearLayout.cs",
"new_path": "Mobile/NUI/LinearLayout/NUILinearLayout/NUILinearLayout.cs",
"diff": "@@ -81,6 +81,7 @@ namespace NUILinearLayout\nView1 = new View();\nView1.BackgroundColor = new Color(0.8f, 0.7f, 0.3f, 1.0f);\nView1.WidthSpecification = LayoutParamPolicies.MatchParent;\n+ View1.HeightSpecification = LayoutParamPolicies.MatchParent;\nView1.Weight = 0.45f;\nView1.Padding = new Extents(10, 10, 10, 10);\nView1.Margin = new Extents(5, 5, 5, 5);\n@@ -96,6 +97,7 @@ namespace NUILinearLayout\nView2 = new View();\nView2.BackgroundColor = new Color(0.8f, 0.7f, 0.3f, 1.0f);\nView2.WidthSpecification = LayoutParamPolicies.MatchParent;\n+ View2.HeightSpecification = LayoutParamPolicies.MatchParent;\nView2.Weight = 0.25f;\nView2.Margin = new Extents(5, 5, 5, 5);\n@@ -110,6 +112,7 @@ namespace NUILinearLayout\nView3 = new View();\nView3.BackgroundColor = new Color(0.8f, 0.7f, 0.3f, 1.0f);\nView3.WidthSpecification = LayoutParamPolicies.MatchParent;\n+ View3.HeightSpecification = LayoutParamPolicies.MatchParent;\nView3.Weight = 0.3f;\nView3.Margin = new Extents(5, 5, 5, 5);\n@@ -139,6 +142,7 @@ namespace NUILinearLayout\n// Add text on the left side\nTextLeft = new TextLabel();\nTextLeft.BackgroundColor = new Color(0.8f, 0.1f, 0.1f, 1.0f);\n+ TextLeft.WidthSpecification = LayoutParamPolicies.MatchParent;\nTextLeft.HeightSpecification = LayoutParamPolicies.MatchParent;\nTextLeft.Weight = 0.3f;\nTextLeft.TextColor = new Color(0.8f, 0.85f, 0.9f, 1.0f);\n@@ -150,6 +154,7 @@ namespace NUILinearLayout\n// Add text on the right side\nTextRight = new TextLabel();\nTextRight.BackgroundColor = new Color(0.8f, 0.1f, 0.1f, 1.0f);\n+ TextRight.WidthSpecification = LayoutParamPolicies.MatchParent;\nTextRight.HeightSpecification = LayoutParamPolicies.MatchParent;\nTextRight.Weight = 0.7f;\nTextRight.TextColor = new Color(0.8f, 0.85f, 0.9f, 1.0f);\n@@ -201,24 +206,28 @@ namespace NUILinearLayout\n{\nColor1 = new View();\nColor1.BackgroundColor = new Color(0.1f, 0.1f, 0.1f, 1.0f);\n+ Color1.WidthSpecification = LayoutParamPolicies.MatchParent;\nColor1.HeightSpecification = LayoutParamPolicies.MatchParent;\nColor1.Weight = 0.25f;\nColor1.Margin = new Extents(10, 10, 10, 10);\nColor2 = new View();\nColor2.BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1.0f);\n+ Color2.WidthSpecification = LayoutParamPolicies.MatchParent;\nColor2.HeightSpecification = LayoutParamPolicies.MatchParent;\nColor2.Weight = 0.25f;\nColor2.Margin = new Extents(10, 10, 10, 10);\nColor3 = new View();\nColor3.BackgroundColor = new Color(0.1f, 0.1f, 0.1f, 1.0f);\n+ Color3.WidthSpecification = LayoutParamPolicies.MatchParent;\nColor3.HeightSpecification = LayoutParamPolicies.MatchParent;\nColor3.Weight = 0.25f;\nColor3.Margin = new Extents(10, 10, 10, 10);\nColor4 = new View();\nColor4.BackgroundColor = new Color(0.9f, 0.9f, 0.9f, 1.0f);\n+ Color4.WidthSpecification = LayoutParamPolicies.MatchParent;\nColor4.HeightSpecification = LayoutParamPolicies.MatchParent;\nColor4.Weight = 0.25f;\nColor4.Margin = new Extents(10, 10, 10, 10);\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI] Fix LinearLayout to make children match parent
The default Width/HeightSpecification is WrapContent.
Moreover, View.Weight works with MatchParent.
Therefore, to make LinearLayout's children match parent, children's
Width/HeightSpecification should be set with MatchParent.
|
594,248 |
07.12.2021 14:10:53
| -3,600 |
c0b84ea782867d22203ac2d61e3399cb3c659dc5
|
[NUI][Visuals] a line break added and screenshot updated
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Visuals/NUI_Visuals/NUI_Visuals.cs",
"new_path": "Mobile/NUI/Visuals/NUI_Visuals/NUI_Visuals.cs",
"diff": "@@ -252,7 +252,7 @@ namespace NUI_Visuals\nint ButtonHeight = (int)ButtonVisualView.Size2D[1];\nSize2D ButtonSize = new Size2D(ButtonWidth, ButtonHeight);\n- Buttons.Add(SetButton(\"Color Border Gradient\", 0, ButtonSize));\n+ Buttons.Add(SetButton(\"Color Border\\nGradient\", 0, ButtonSize));\nButtons.Add(SetButton(\"Images\", (ButtonWidth + FrameSize), ButtonSize));\nButtons.Add(SetButton(\"Primitives\", 2 * (ButtonWidth + FrameSize), ButtonSize));\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Visuals/NUI_Visuals_screen1.png",
"new_path": "Mobile/NUI/Visuals/NUI_Visuals_screen1.png",
"diff": "Binary files a/Mobile/NUI/Visuals/NUI_Visuals_screen1.png and b/Mobile/NUI/Visuals/NUI_Visuals_screen1.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Visuals] a line break added and screenshot updated
|
594,298 |
08.12.2021 11:40:22
| -32,400 |
d1d23a65748b50ebcad2868fb302ef89dee31a77
|
[NUI] Fix FlexLayout to calculate correct size
The size of Views inside Layout is calculated by Views'
Width/HeightSpecification instead of Width/HeightResizePolicy.
Therefore, some Width/HeightResizePolicy has been replaced with
Width/HeightSpecification.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/FlexLayout/NUIFlexLayout/NUIFlexLayout.cs",
"new_path": "Mobile/NUI/FlexLayout/NUIFlexLayout/NUIFlexLayout.cs",
"diff": "@@ -63,36 +63,34 @@ namespace NUIFlexLayout\nprivate void InitViews()\n{\n// Initialize Root View\n- RootView = new View();\n- RootView.PositionUsesPivotPoint = true;\n- RootView.PivotPoint = PivotPoint.Center;\n- RootView.ParentOrigin = ParentOrigin.Center;\n- RootView.WidthResizePolicy = ResizePolicyType.FillToParent;\n- RootView.HeightResizePolicy = ResizePolicyType.FillToParent;\n- RootView.BackgroundColor = Color.Black;\n+ RootView = new View()\n+ {\n+ Layout = new LinearLayout()\n+ {\n+ LinearOrientation = LinearLayout.Orientation.Vertical,\n+ },\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.MatchParent,\n+ BackgroundColor = Color.Black,\n+ };\n// Initialize Top View\n- TopView = new View();\n- TopView.PositionUsesPivotPoint = true;\n- TopView.PivotPoint = PivotPoint.TopCenter;\n- TopView.ParentOrigin = new Vector3(0.5f, 0.05f, 0.0f);\n- TopView.WidthResizePolicy = ResizePolicyType.FillToParent;\n- TopView.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\n- TopView.SetSizeModeFactor(new Vector3(0.0f, 0.7f, 0.0f));\n- TopView.Padding = new Extents(20, 20, 20, 20);\n- TopView.BackgroundColor = Color.Black;\n+ TopView = new View()\n+ {\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.MatchParent,\n+ Padding = new Extents(20, 20, 20, 20),\n+ BackgroundColor = Color.Black,\n+ };\n// Initialize Button View\n- ButtonView = new View();\n- ButtonView.PositionUsesPivotPoint = true;\n- ButtonView.PivotPoint = PivotPoint.TopCenter;\n- ButtonView.ParentOrigin = new Vector3(0.5f, 0.85f, 0.0f);\n- ButtonView.WidthResizePolicy = ResizePolicyType.FillToParent;\n- ButtonView.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\n- ButtonView.SetSizeModeFactor(new Vector3(0.0f, 0.2f, 0.0f));\n- ButtonView.Padding = new Extents(20, 20, 20, 20);\n- ButtonView.BackgroundColor = Color.Black;\n-\n+ ButtonView = new View()\n+ {\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Padding = new Extents(20, 20, 20, 20),\n+ BackgroundColor = Color.Black,\n+ };\n// Add child views.\nRootView.Add(TopView);\n@@ -108,14 +106,17 @@ namespace NUIFlexLayout\nprivate void InitFlex()\n{\n// Initialize Flex View\n- FlexView = new View();\n- FlexView.PositionUsesPivotPoint = true;\n- FlexView.PivotPoint = PivotPoint.Center;\n- FlexView.ParentOrigin = ParentOrigin.Center;\n- FlexView.HeightSpecification = LayoutParamPolicies.MatchParent;\n- FlexView.WidthSpecification = LayoutParamPolicies.MatchParent;\n- FlexView.BackgroundColor = Color.Black;\n- FlexView.Layout = new FlexLayout() {WrapType = FlexLayout.FlexWrapType.Wrap};\n+ FlexView = new View()\n+ {\n+ Layout = new FlexLayout()\n+ {\n+ WrapType = FlexLayout.FlexWrapType.Wrap\n+ },\n+ HeightSpecification = LayoutParamPolicies.MatchParent,\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ BackgroundColor = Color.Black,\n+ };\n+\nTopView.Add(FlexView);\n// Add elements to Flex View\n@@ -139,40 +140,48 @@ namespace NUIFlexLayout\nButtonView.Layout = ButtonLayout;\n// Initialize Button1\n- Button1 = new Button();\n- Button1.BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f);\n- Button1.HeightResizePolicy = ResizePolicyType.FillToParent;\n- Button1.Text = \"Dir\";\n- Button1.TextColor = Color.White;\n- Button1.Margin = new Extents(10, 10, 10, 10);\n- Button1.Weight = 0.25f;\n+ Button1 = new Button()\n+ {\n+ BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Text = \"Dir\",\n+ TextColor = Color.White,\n+ Margin = new Extents(10, 10, 10, 10),\n+ };\n// Initialize Button2\n- Button2 = new Button();\n- Button2.BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f);\n- Button2.HeightResizePolicy = ResizePolicyType.FillToParent;\n- Button2.Text = \"Just\";\n- Button2.TextColor = Color.White;\n- Button2.Margin = new Extents(10, 10, 10, 10);\n- Button2.Weight = 0.25f;\n+ Button2 = new Button()\n+ {\n+ BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Text = \"Just\",\n+ TextColor = Color.White,\n+ Margin = new Extents(10, 10, 10, 10),\n+ };\n// Initialize Button3\n- Button3 = new Button();\n- Button3.BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f);\n- Button3.HeightResizePolicy = ResizePolicyType.FillToParent;\n- Button3.Text = \"Align\";\n- Button3.TextColor = Color.White;\n- Button3.Margin = new Extents(10, 10, 10, 10);\n- Button3.Weight = 0.25f;\n+ Button3 = new Button()\n+ {\n+ BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Text = \"Align\",\n+ TextColor = Color.White,\n+ Margin = new Extents(10, 10, 10, 10),\n+ };\n// Initialize Button4\n- Button4 = new Button();\n- Button4.BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f);\n- Button4.HeightResizePolicy = ResizePolicyType.FillToParent;\n- Button4.Text = \"Wrap\";\n- Button4.TextColor = Color.White;\n- Button4.Margin = new Extents(10, 10, 10, 10);\n- Button4.Weight = 0.25f;\n+ Button4 = new Button()\n+ {\n+ BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Text = \"Wrap\",\n+ TextColor = Color.White,\n+ Margin = new Extents(10, 10, 10, 10),\n+ };\n// Add Buttons to parent view\nButtonView.Add(Button1);\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI] Fix FlexLayout to calculate correct size
The size of Views inside Layout is calculated by Views'
Width/HeightSpecification instead of Width/HeightResizePolicy.
Therefore, some Width/HeightResizePolicy has been replaced with
Width/HeightSpecification.
|
594,298 |
08.12.2021 15:41:46
| -32,400 |
69b1b19fc9083d0a493953ed702825354ae549da
|
[NUI] Fix GridLayout to calculate correct size
The size of Views inside Layout is calculated by Views'
Width/HeightSpecification instead of Width/HeightResizePolicy.
Therefore, some Width/HeightResizePolicy has been replaced with
Width/HeightSpecification.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/GridLayout/NUIGridLayout/NUIGridLayout.cs",
"new_path": "Mobile/NUI/GridLayout/NUIGridLayout/NUIGridLayout.cs",
"diff": "@@ -72,35 +72,35 @@ namespace NUIGridLayout\n/// </summary>\nprivate void InitViews()\n{\n- RootView = new View();\n- RootView.PositionUsesPivotPoint = true;\n- RootView.PivotPoint = PivotPoint.Center;\n- RootView.ParentOrigin = ParentOrigin.Center;\n- RootView.WidthResizePolicy = ResizePolicyType.FillToParent;\n- RootView.HeightResizePolicy = ResizePolicyType.FillToParent;\n-\n- TopView = new View();\n- TopView.PositionUsesPivotPoint = true;\n- TopView.PivotPoint = PivotPoint.TopCenter;\n- TopView.ParentOrigin = new Vector3(0.5f, 0.05f, 0.0f);\n- TopView.WidthResizePolicy = ResizePolicyType.FillToParent;\n- TopView.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\n- TopView.SetSizeModeFactor(new Vector3(0.0f, 0.7f, 0.0f));\n- TopView.Padding = new Extents(20, 20, 20, 20);\n-\n- GridLayout MyGridLayout = new GridLayout();\n- MyGridLayout.Columns = ColumnCnt;\n- TopView.Layout = MyGridLayout;\n+ RootView = new View()\n+ {\n+ Layout = new LinearLayout()\n+ {\n+ LinearOrientation = LinearLayout.Orientation.Vertical,\n+ },\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.MatchParent,\n+ };\n+\n+ TopView = new View()\n+ {\n+ Layout = new GridLayout()\n+ {\n+ Columns = ColumnCnt,\n+ },\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.MatchParent,\n+ Padding = new Extents(20, 20, 20, 20),\n+ };\n+\nInitGrid();\n- ButtonView = new View();\n- ButtonView.PositionUsesPivotPoint = true;\n- ButtonView.PivotPoint = PivotPoint.TopCenter;\n- ButtonView.ParentOrigin = new Vector3(0.5f, 0.85f, 0.0f);\n- ButtonView.WidthResizePolicy = ResizePolicyType.FillToParent;\n- ButtonView.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\n- ButtonView.SetSizeModeFactor(new Vector3(0.0f, 0.2f, 0.0f));\n- ButtonView.Padding = new Extents(20, 20, 20, 20);\n+ ButtonView = new View()\n+ {\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Padding = new Extents(20, 20, 20, 20),\n+ };\nRootView.Add(TopView);\nRootView.Add(ButtonView);\n@@ -132,21 +132,25 @@ namespace NUIGridLayout\nButtonLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;\nButtonView.Layout = ButtonLayout;\n- Button1 = new Button();\n- Button1.BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f);\n- Button1.HeightResizePolicy = ResizePolicyType.FillToParent;\n- Button1.Text = \"Remove\";\n- Button1.TextColor = Color.White;\n- Button1.Margin = new Extents(10, 10, 10, 10);\n- Button1.Weight = 0.5f;\n-\n- Button2 = new Button();\n- Button2.BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f);\n- Button2.HeightResizePolicy = ResizePolicyType.FillToParent;\n- Button2.Text = \"Add\";\n- Button2.TextColor = Color.White;\n- Button2.Margin = new Extents(10, 10, 10, 10);\n- Button2.Weight = 0.5f;\n+ Button1 = new Button()\n+ {\n+ BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Text = \"Remove\",\n+ TextColor = Color.White,\n+ Margin = new Extents(10, 10, 10, 10),\n+ };\n+\n+ Button2 = new Button()\n+ {\n+ BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.WrapContent,\n+ Text = \"Add\",\n+ TextColor = Color.White,\n+ Margin = new Extents(10, 10, 10, 10),\n+ };\nButtonView.Add(Button1);\nButtonView.Add(Button2);\n@@ -163,9 +167,8 @@ namespace NUIGridLayout\nprivate void Button1Clicked(object sender, Button.ClickEventArgs e)\n{\nColumnCnt = ColumnCnt - 1 > 0 ? ColumnCnt - 1 : 1;\n- GridLayout MyGridLayout = new GridLayout();\n+ var MyGridLayout = TopView.Layout as GridLayout;\nMyGridLayout.Columns = ColumnCnt;\n- TopView.Layout = MyGridLayout;\n}\n/// <summary>\n@@ -176,9 +179,8 @@ namespace NUIGridLayout\nprivate void Button2Clicked(object sender, Button.ClickEventArgs e)\n{\n++ColumnCnt;\n- GridLayout MyGridLayout = new GridLayout();\n+ var MyGridLayout = TopView.Layout as GridLayout;\nMyGridLayout.Columns = ColumnCnt;\n- TopView.Layout = MyGridLayout;\n}\n/// <summary>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI] Fix GridLayout to calculate correct size
The size of Views inside Layout is calculated by Views'
Width/HeightSpecification instead of Width/HeightResizePolicy.
Therefore, some Width/HeightResizePolicy has been replaced with
Width/HeightSpecification.
|
594,223 |
09.12.2021 12:35:17
| -32,400 |
d01e2ec0d1a62da26944f07984e3dc59050c68f2
|
fix fontsize and crashed degree symbol
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/ApplicationInformationViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/ApplicationInformationViewModel.cs",
"diff": "@@ -59,6 +59,8 @@ namespace AppCommon\n/// </summary>\npublic class ApplicationInformationViewModel : INotifyPropertyChanged\n{\n+ private readonly string degree =\"\\u00B0\";\n+\nprivate Color _LowBatteryLEDColor;\nprivate Color _LowMemoryLEDColor;\nprivate string _deviceOrientation;\n@@ -306,28 +308,28 @@ namespace AppCommon\ncase DeviceOrientationStatus.Orientation_0:\n{\nDeviceOrientation = \"Natural position\";\n- RotationDegree = \"0\";\n+ RotationDegree = \"0\" + degree;\nreturn;\n}\ncase DeviceOrientationStatus.Orientation_90:\n{\nDeviceOrientation = \"Right-side up\";\n- RotationDegree = \"90\";\n+ RotationDegree = \"90\" + degree;\nreturn;\n}\ncase DeviceOrientationStatus.Orientation_180:\n{\nDeviceOrientation = \"Up-side down\";\n- RotationDegree = \"180\";\n+ RotationDegree = \"180\" + degree;\nreturn;\n}\ncase DeviceOrientationStatus.Orientation_270:\n{\nDeviceOrientation = \"Left-side up\";\n- RotationDegree = \"270\";\n+ RotationDegree = \"270\" + degree;\nreturn;\n}\n}\n@@ -369,7 +371,7 @@ namespace AppCommon\nRegionFormat = systemSettings.Language;\nDeviceOrientation = \"Natural position\";\n- RotationDegree = \"0\";\n+ RotationDegree = \"0\" + degree;\n}\n}\n}\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/Cells/PathItemCell.cs",
"new_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/Cells/PathItemCell.cs",
"diff": "@@ -66,7 +66,7 @@ namespace AppCommon.Cells\nText = \"Description\",\nHorizontalOptions = LayoutOptions.StartAndExpand,\nVerticalOptions = LayoutOptions.EndAndExpand,\n- FontSize = 30 * 72 * 2.6 / 316,\n+ FontSize = 30,\nFontAttributes = FontAttributes.Bold,\n};\ndescriptionLabel.SetBinding(Label.TextProperty, \"Title\");\n@@ -76,7 +76,7 @@ namespace AppCommon.Cells\nText = \"Path\",\nHorizontalOptions = LayoutOptions.StartAndExpand,\nVerticalOptions = LayoutOptions.StartAndExpand,\n- FontSize = 26 * 72 * 2.6 / 316,\n+ FontSize = 25,\nTextColor = Color.FromRgb(146, 146, 146),\nLineBreakMode = LineBreakMode.CharacterWrap\n};\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/PathsPageViewModel.cs",
"new_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/PathsPageViewModel.cs",
"diff": "@@ -80,12 +80,6 @@ namespace AppCommon\nPath = _appInfo.CachePath\n});\n- Paths.Add(new PathInformation\n- {\n- Title = \"Resource\",\n- Path = _appInfo.ResourcePath\n- });\n-\nPaths.Add(new PathInformation\n{\nTitle = \"Shared Data\",\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/Styles/ApplicationInformationStyle.cs",
"new_path": "Mobile/Xamarin.Forms/UI/AppCommon/AppCommon/AppCommon/Styles/ApplicationInformationStyle.cs",
"diff": "@@ -11,7 +11,7 @@ namespace AppCommon.Styles\n{\nSetters =\n{\n- new Setter { Property = Label.FontSizeProperty, Value = 25 * 72 * 2.6 / 316 },\n+ new Setter { Property = Label.FontSizeProperty, Value = 25 },\nnew Setter { Property = Label.TextColorProperty, Value = Color.FromRgb(146, 146, 146) },\nnew Setter { Property = Label.TextColorProperty, Value = Color.FromRgb(146, 146, 146) },\nnew Setter { Property = Label.LineBreakModeProperty , Value = LineBreakMode.CharacterWrap },\n@@ -23,7 +23,7 @@ namespace AppCommon.Styles\n{\nSetters =\n{\n- new Setter { Property = Label.FontSizeProperty, Value = 132 * 72 * 2.6 / 316 },\n+ new Setter { Property = Label.FontSizeProperty, Value = 130 },\nnew Setter { Property = Label.TextColorProperty, Value = Color.FromRgb(0, 0, 0) },\nnew Setter { Property = Label.HorizontalOptionsProperty, Value = LayoutOptions.StartAndExpand },\nnew Setter { Property = Label.VerticalOptionsProperty, Value = LayoutOptions.StartAndExpand },\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
fix fontsize and crashed degree symbol (#322)
|
594,270 |
08.12.2021 18:46:46
| -32,400 |
3ba3271dac6956ca903dfbffee00f509e6201adf
|
[NUI][CheckBox] Sync with new ButtonStyle usage
This sample will works Tizen.NET.API9 9.0.0.16813 or older
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox.gif",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox.gif",
"diff": "Binary files a/Mobile/NUI/CheckBox/NUI_CheckBox.gif and b/Mobile/NUI/CheckBox/NUI_CheckBox.gif differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"diff": "@@ -46,9 +46,9 @@ namespace NUI_CheckBox\n/// Round shadow, but the area connected with click event remains square\nImageShadow = new ImageShadow(ImageURL + \"RoundShadow.png\"),\n},\n- ParentOrigin = ParentOrigin.BottomCenter,\n+ ParentOrigin = ParentOrigin.Center,\nPositionUsesPivotPoint = true,\n- PivotPoint = PivotPoint.BottomCenter\n+ PivotPoint = PivotPoint.Center\n};\nreturn Style;\n}\n@@ -106,16 +106,17 @@ namespace NUI_CheckBox\n// Default CheckBox\nCheckBoxExample = new CheckBox();\n- CheckBoxExample.Size = CheckBoxSize;\n- CheckBoxExample.ParentOrigin = ParentOrigin.TopCenter;\n+ CheckBoxExample.IconSize = CheckBoxSize;\n+ CheckBoxExample.PivotPoint = PivotPoint.Center;\nCheckBoxExample.PositionUsesPivotPoint = true;\n- CheckBoxExample.PivotPoint = PivotPoint.TopCenter;\n- CheckBoxExample.Position = new Position(0, Space);\n+ CheckBoxExample.ParentOrigin = ParentOrigin.Center;\n+ CheckBoxExample.Position = new Position(0, - (3 * CheckBoxSide + 3 * Space) / 2);\nMainView.Add(CheckBoxExample);\n// Create with properties\nCheckBoxExample = new CheckBox();\nCheckBoxExample.Size = CheckBoxSize;\n+ CheckBoxExample.ItemAlignment = LinearLayout.Alignment.Center;\nCheckBoxExample.ParentOrigin = ParentOrigin.Center;\nCheckBoxExample.PositionUsesPivotPoint = true;\nCheckBoxExample.PivotPoint = PivotPoint.Center;\n@@ -126,6 +127,7 @@ namespace NUI_CheckBox\nNormal = ImageURL + \"Blue.png\",\nSelected = ImageURL + \"BlueCheckMark.png\",\nPressed = ImageURL + \"Red.png\",\n+ SelectedPressed = ImageURL + \"RedCheckMark.png\",\n};\nCheckBoxExample.IconURLSelector = IconURL;\nCheckBoxExample.Icon.Size = new Size2D(160,160);\n@@ -153,26 +155,27 @@ namespace NUI_CheckBox\nIcon = new ImageViewStyle\n{\nSize = CheckBoxSize,\n- // Different icon used depending on the status\nResourceUrl = new Selector<string>\n{\n- Other = ImageURL + \"XSign.png\",\n- Selected = ImageURL + \"CheckMark.png\"\n+ Pressed = ImageURL + \"Red.png\",\n+ Other = ImageURL + \"LightBlue.png\"\n},\n- // Icon opacity set to 0.8 for all checkbox states\n- Opacity = 0.8f,\n- // Shadow visible for all states\n- ImageShadow = new ImageShadow(ImageURL + \"Shadow.png\")\n+ Opacity = new Selector<float?> { Pressed = 0.3f, Other = 1.0f }\n},\n// Style of the overlay image\nOverlay = new ImageViewStyle()\n{\n+ Size = CheckBoxSize,\n+ // Different icon used depending on the status\nResourceUrl = new Selector<string>\n{\n- Pressed = ImageURL + \"Red.png\",\n- Other = ImageURL + \"LightBlue.png\"\n+ Other = ImageURL + \"XSign.png\",\n+ Selected = ImageURL + \"CheckMark.png\"\n},\n- Opacity = new Selector<float?> {Pressed = 0.3f, Other = 1.0f}\n+ // Icon opacity set to 0.8 for all checkbox states\n+ Opacity = 0.8f,\n+ // Shadow visible for all states\n+ ImageShadow = new ImageShadow(ImageURL + \"Shadow.png\")\n}\n};\nCheckBoxExample = new CheckBox(Style);\n@@ -182,7 +185,7 @@ namespace NUI_CheckBox\n// Custom style registration\nTizen.NUI.Components.StyleManager.Instance.RegisterStyle(\"_CustomCheckBoxStyle\", null, typeof(NUI_CheckBox.CustomCheckBoxStyle));\nCustomCheckBox = new CheckBox(\"_CustomCheckBoxStyle\");\n- CustomCheckBox.Position = new Position(0, -Space);\n+ CustomCheckBox.Position = new Position(0, (3 * CheckBoxSide + 3 * Space) / 2);\n// Click event handle\nCustomCheckBox.Clicked += OnClicked;\nMainView.Add(CustomCheckBox);\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox/res/images/RedCheckMark.png",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox/res/images/RedCheckMark.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/CheckBox/NUI_CheckBox/res/images/RedCheckMark.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox_screen1.png",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox_screen1.png",
"diff": "Binary files a/Mobile/NUI/CheckBox/NUI_CheckBox_screen1.png and b/Mobile/NUI/CheckBox/NUI_CheckBox_screen1.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox_screen2.png",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox_screen2.png",
"diff": "Binary files a/Mobile/NUI/CheckBox/NUI_CheckBox_screen2.png and b/Mobile/NUI/CheckBox/NUI_CheckBox_screen2.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/README.md",
"new_path": "Mobile/NUI/CheckBox/README.md",
"diff": "@@ -12,4 +12,6 @@ The animation illustrating the app behavior is as follows:\n\n\n-For more information about the checkbox see the [NUI guide](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/CheckBox/).\n+For more information about the checkbox see the [NUI guide (Tizen.NET.API8 version)](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/CheckBox/).\n+\n+This sample will works Tizen.NET.API9 verson 9.0.0.16813 or bigger.\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][CheckBox] Sync with new ButtonStyle usage
This sample will works Tizen.NET.API9 9.0.0.16813 or older
Signed-off-by: pichulia <eunkiki.hong@samsung.com>
|
594,270 |
09.12.2021 16:34:54
| -32,400 |
a92df561e2c9d5200319622f3cd301864422cbd1
|
[NUI][VideoViewSample] Refactoring layout
This sample will works Tizen.NET.API9 9.0.0.16813 or higher.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/README.md",
"new_path": "Mobile/NUI/VideoViewSample/README.md",
"diff": "@@ -6,3 +6,5 @@ This sample application demonstrates how to use NUI [VideoView](https://samsung.\n### Prerequisites\n* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n* [Visual Studio Tools for Tizen](https://docs.tizen.org/application/vstools/install) - Visual Studio plugin for Tizen .NET application development\n+\n+This sample will works Tizen.NET.API9 verson 9.0.0.16813 or higher.\n\\ No newline at end of file\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/VideoViewSS.png",
"new_path": "Mobile/NUI/VideoViewSample/VideoViewSS.png",
"diff": "Binary files a/Mobile/NUI/VideoViewSample/VideoViewSS.png and b/Mobile/NUI/VideoViewSample/VideoViewSS.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"new_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"diff": "@@ -89,34 +89,53 @@ namespace VideoViewSample\n{\nLinearAlignment = LinearLayout.Alignment.Center,\nLinearOrientation = LinearLayout.Orientation.Vertical,\n- CellPadding = new Size2D(0, 10)\n+ CellPadding = new Size2D(0, 10),\n+ Padding = new Extents(10, 10, 10, 10),\n};\n+ mainView.WidthResizePolicy = ResizePolicyType.FillToParent;\n+ mainView.HeightResizePolicy = ResizePolicyType.FillToParent;\nmainView.Layout = mainLayout;\nApplicationWindow.Add(mainView);\n//Create video view and play movie automatically.\nplayer = new VideoView()\n{\n- HeightResizePolicy = ResizePolicyType.SizeRelativeToParent,\n- WidthResizePolicy = ResizePolicyType.SizeRelativeToParent,\n- SizeModeFactor = new Vector3(1.0f, 0.5f, 1.0f),\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.MatchParent,\nResourceUrl = DirectoryInfo.Resource + \"sample.3gp\",\n+ Weight = 0.5f,\n};\nplayer.Play();\nmainView.Add(player);\n- //Create buttons and push them into the main view.\n+ //Create button container layout.\n+ View buttonContainer = new View()\n+ {\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = LayoutParamPolicies.MatchParent,\n+ BackgroundColor = Color.Gainsboro,\n+ Weight = 0.5f,\n+ };\n+ LinearLayout buttonLayout = new LinearLayout()\n+ {\n+ LinearAlignment = LinearLayout.Alignment.Center,\n+ LinearOrientation = LinearLayout.Orientation.Vertical,\n+ CellPadding = new Size2D(0, 10),\n+ };\n+ buttonContainer.Layout = buttonLayout;\n+ mainView.Add(buttonContainer);\n+\n+ //Create buttons and push them into the button container.\nfor (int i = 0; i < buttonNames.Length; ++i)\n{\nButton btn = new Button\n{\n- ParentOrigin = ParentOrigin.Center,\nSize2D = new Size2D(300, 100),\nTextColor = Color.White,\nText = buttonNames[i],\n};\nbtn.Clicked += OnClicked;\n- mainView.Add(btn);\n+ buttonContainer.Add(btn);\n}\n}\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][VideoViewSample] Refactoring layout
This sample will works Tizen.NET.API9 9.0.0.16813 or higher.
Signed-off-by: pichulia <eunkiki.hong@samsung.com>
|
594,248 |
09.12.2021 02:33:54
| -3,600 |
6b6c49aa575612644bd4163dbcd24da3083b5f56
|
[NUI][View] animation and alignment fixed
animation cleared if not used,
deprecated events changed to the new ones,
text label properly centered,
button default properties changed
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/View/NUIView/NUIView.cs",
"new_path": "Mobile/NUI/View/NUIView/NUIView.cs",
"diff": "@@ -88,31 +88,42 @@ namespace NUIView\nRootView.BackgroundColor = Color.Black;\n// create button and place it at the bottom of the screen\n- Button = new Button();\n- Button.Text = \"Next\";\n- Button.PositionUsesPivotPoint = true;\n- Button.PivotPoint = PivotPoint.TopCenter;\n- Button.ParentOrigin = new Vector3(0.5f, 0.9f, 0.0f);\n- Button.WidthResizePolicy = ResizePolicyType.FillToParent;\n- Button.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\n- Button.SetSizeModeFactor(new Vector3(0.0f, 0.1f, 0.0f));\n+ Button = new Button()\n+ {\n+ Text = \"Next\",\n+ TextColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ PointSize = 12,\n+ PositionUsesPivotPoint = true,\n+ PivotPoint = PivotPoint.BottomCenter,\n+ ParentOrigin = ParentOrigin.BottomCenter,\n+ WidthResizePolicy = ResizePolicyType.FillToParent,\n+ HeightResizePolicy = ResizePolicyType.UseNaturalSize,\n+ BackgroundColor = new Color(0.6f, 0.6f, 0.6f, 1.0f),\n+ };\n// create main view and place it over the button\n- MainView = new View();\n- MainView.PositionUsesPivotPoint = true;\n- MainView.PivotPoint = PivotPoint.TopCenter;\n- MainView.ParentOrigin = new Vector3(0.5f, 0.2f, 0.0f);\n- MainView.WidthResizePolicy = ResizePolicyType.FillToParent;\n- MainView.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\n- MainView.SetSizeModeFactor(new Vector3(0.0f, 0.7f, 0.0f));\n+ MainView = new View()\n+ {\n+ PositionUsesPivotPoint = true,\n+ PivotPoint = PivotPoint.Center,\n+ ParentOrigin = ParentOrigin.Center,\n+ WidthResizePolicy = ResizePolicyType.FillToParent,\n+ HeightResizePolicy = ResizePolicyType.UseNaturalSize,\n+ };\n// create text label that will hold text information\n- TextLabel = new TextLabel();\n- TextLabel.PositionUsesPivotPoint = true;\n- TextLabel.PivotPoint = PivotPoint.TopCenter;\n- TextLabel.ParentOrigin = new Vector3(0.5f, 0.1f, 0.0f);\n- TextLabel.MultiLine = true;\n- TextLabel.TextColor = Color.White;\n+ TextLabel = new TextLabel()\n+ {\n+ PositionUsesPivotPoint = true,\n+ PivotPoint = PivotPoint.TopCenter,\n+ ParentOrigin = new Vector3(0.5f, 0.1f, 0.0f),\n+ WidthResizePolicy = ResizePolicyType.UseNaturalSize,\n+ HeightResizePolicy = ResizePolicyType.UseNaturalSize,\n+ MultiLine = true,\n+ TextColor = Color.White,\n+ PointSize = 10,\n+ FontFamily = \"Arial\",\n+ };\n// add view to their parents\nRootView.Add(TextLabel);\n@@ -125,7 +136,7 @@ namespace NUIView\nCurrentView = 1;\n// add events to button on click and key event to window\n- Button.ClickEvent += ButtonClicked;\n+ Button.Clicked += ButtonClicked;\nWindow.KeyEvent += OnKeyEvent;\n}\n@@ -134,14 +145,22 @@ namespace NUIView\n/// </summary>\n/// <param name=\"sender\">Button instance</param>\n/// <param name=\"e\">Event arguments</param>\n- private void ButtonClicked(object sender, Button.ClickEventArgs e)\n+ private void ButtonClicked(object sender, ClickedEventArgs e)\n{\n+ // clear the animation\n+ if (Animation) Animation.Clear();\n+ Animation = null;\n// clear the previous view, unparent and set to null to dispose of\n+ if (ChildView) {\nChildView.Unparent();\n- ParentView.Unparent();\nChildView.Dispose();\n- ParentView.Dispose();\n+ }\nChildView = null;\n+ // clear the previous view, unparent and set to null to dispose of\n+ if (ParentView) {\n+ ParentView.Unparent();\n+ ParentView.Dispose();\n+ }\nParentView = null;\n// update current view to next view\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/View/Screenshots/screen1.png",
"new_path": "Mobile/NUI/View/Screenshots/screen1.png",
"diff": "Binary files a/Mobile/NUI/View/Screenshots/screen1.png and b/Mobile/NUI/View/Screenshots/screen1.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/View/Screenshots/screen2.png",
"new_path": "Mobile/NUI/View/Screenshots/screen2.png",
"diff": "Binary files a/Mobile/NUI/View/Screenshots/screen2.png and b/Mobile/NUI/View/Screenshots/screen2.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][View] animation and alignment fixed
animation cleared if not used,
deprecated events changed to the new ones,
text label properly centered,
button default properties changed
|
594,285 |
09.12.2021 21:29:12
| -3,600 |
ba196ce355af84f5c042d101e95e23e11a0a9530
|
[NUI][Badges] Adding mainView and binding to View elements
|
[
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/Badges/Badges/res/examl/Badges.XamlPage.examl",
"diff": "+<\n+\"Badges, \"\n+\"Tizen.NUI, \"\n+>\n+<\n+(\"0\" \"Badges.XamlPage\")\n+(\"1\" \"Tizen.NUI.BaseComponents.TextLabel\")\n+(\"1\" \"Tizen.NUI.BaseComponents.View\")\n+(\"1\" \"Tizen.NUI.Binding.PositionTypeConverter\")\n+(\"1\" \"Tizen.NUI.Position\")\n+(\"1\" \"Tizen.NUI.Binding.SizeTypeConverter\")\n+(\"1\" \"Tizen.NUI.Size\")\n+(\"1\" \"Tizen.NUI.Binding.ColorTypeConverter\")\n+(\"1\" \"Tizen.NUI.Color\")\n+>\n+<\n+(\"1\" \"Text\")\n+(\"2\" \"PositionUsesPivotPoint\")\n+(\"2\" \"ParentOrigin\")\n+(\"2\" \"PivotPoint\")\n+(\"2\" \"Size\")\n+(\"1\" \"PointSize\")\n+(\"1\" \"TextColor\")\n+>\n+<\n+>\n+<\n+(\"2\" \"Add\" (d2d ))\n+>\n+<\n+>\n+{d0d }\n+{d1d }\n+&(a1a \"text\")&\n+[(a1a d0d \"Hello, NUI XAML APP!\" )]\n+[(a1a d1d mTruem )]\n+{d3d }\n+@q(a2a \"Center\" )q@\n+[(a1a d2d a3a )]\n+@q(a2a \"Center\" )q@\n+[(a1a d3d a4a )]\n+{d5d }\n+@q(a5a \"700,300,0\" )q@\n+[(a1a d4d a6a )]\n+[(a1a d5d j17j )]\n+{d7d }\n+@q(a7a \"Yellow\" )q@\n+[(a1a d6d a8a )]\n+^(a0a a1a d0d)^\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Badges/Badges/shared/res/Badges.png",
"new_path": "Mobile/NUI/Badges/Badges/shared/res/Badges.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Badges/Badges/shared/res/Badges.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Badges] Adding mainView and binding to View elements
|
594,237 |
10.12.2021 11:51:55
| -3,600 |
2607f49c9dcbb010dc4595d8ccfeb4ae232e937e
|
[Mobile/Camera+TextClassification] increase FontSize
In both cases the fonts has been enlarged by 60%
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Camera/README.md",
"new_path": "Mobile/Xamarin.Forms/Camera/README.md",
"diff": "@@ -16,3 +16,8 @@ Camera is a sample application that demonstrates how to how to take a picture us\n### Author\n* Mateusz Szperna\n+\n+### Instruction\n+When the app is run, it checks for permissions. Please allow the application to use files and camera.\n+The big circle is not a shutter but a slider knob to set delay.\n+To take the picture, please click \"Start\" button on the bottom of the screen.\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Camera/src/Camera/Camera/View/PhotoPreviewPage.xaml",
"new_path": "Mobile/Xamarin.Forms/Camera/src/Camera/Camera/View/PhotoPreviewPage.xaml",
"diff": "BackgroundColor=\"White\"\nIsVisible=\"{Binding IsConfirmPopup}\">\n<Label AbsoluteLayout.LayoutBounds=\"0, 35, 586, 35\"\n- FontSize=\"17\"\n+ FontSize=\"27\"\nHorizontalTextAlignment=\"Center\"\nText=\"Are you sure you want to delete this photo?\"\nVerticalTextAlignment=\"End\" />\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification/Views/UserInput.xaml",
"new_path": "Mobile/Xamarin.Forms/MachineLearning/TextClassification/TextClassification/TextClassification/Views/UserInput.xaml",
"diff": "<ColumnDefinition Width=\"*\" />\n</Grid.ColumnDefinitions>\n- <Label Grid.Row=\"0\" Grid.Column=\"0\" TextColor=\"Black\" FontSize = \"20\" Text=\"Enter your movie comment :\" />\n+ <Label Grid.Row=\"0\" Grid.Column=\"0\" TextColor=\"Black\" FontSize = \"32\" Text=\"Enter your movie comment :\" />\n<Entry x:Name=\"UserCommentEntry\" Grid.Row=\"1\" Grid.Column=\"0\"\nKeyboard=\"Default\"\n<Label TextColor=\"Black\">\n<Label.FormattedText>\n<FormattedString>\n- <Span Text=\" Your comment : \" TextColor=\"Black\" FontSize = \"20\" TextDecorations=\"Underline\"/>\n- <Span x:Name=\"InputLabel\" Text=\"\" TextColor=\"Black\" FontSize = \"20\"/>\n+ <Span Text=\" Your comment : \" TextColor=\"Black\" FontSize = \"32\" TextDecorations=\"Underline\"/>\n+ <Span x:Name=\"InputLabel\" Text=\"\" TextColor=\"Black\" FontSize = \"32\"/>\n</FormattedString>\n</Label.FormattedText>\n</Label>\n- <Label Text=\" Result\" TextColor=\"Black\" LineBreakMode=\"NoWrap\" FontSize = \"22\" />\n+ <Label Text=\" Result\" TextColor=\"Black\" LineBreakMode=\"NoWrap\" FontSize = \"35\" />\n<Label TextColor=\"Black\">\n<Label.FormattedText>\n<FormattedString>\n- <Span Text=\"Used API : \" FontAttributes=\"Bold\" FontSize=\"20\"/>\n- <Span x:Name=\"API\" Text=\"\" FontSize=\"20\" />\n- <Span Text=\" Negative : \" FontAttributes=\"Bold\" FontSize=\"20\"/>\n- <Span x:Name=\"Out_neg\" Text=\"\" FontSize=\"20\" />\n- <Span Text=\" Positive : \" FontAttributes=\"Bold\" FontSize=\"20\"/>\n- <Span x:Name=\"Out_pos\" Text=\"\" FontSize=\"20\"/>\n+ <Span Text=\"Used API : \" FontAttributes=\"Bold\" FontSize=\"32\"/>\n+ <Span x:Name=\"API\" Text=\"\" FontSize=\"32\" />\n+ <Span Text=\" Negative : \" FontAttributes=\"Bold\" FontSize=\"32\"/>\n+ <Span x:Name=\"Out_neg\" Text=\"\" FontSize=\"32\" />\n+ <Span Text=\" Positive : \" FontAttributes=\"Bold\" FontSize=\"32\"/>\n+ <Span x:Name=\"Out_pos\" Text=\"\" FontSize=\"32\"/>\n</FormattedString>\n</Label.FormattedText>\n</Label>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile/Camera+TextClassification] increase FontSize
In both cases the fonts has been enlarged by 60%
|
594,248 |
10.12.2021 02:42:55
| -3,600 |
e4d18bb89290885dd38e10d716b41849b3ad6fcf
|
[NUI][FlexLayout] added a field with a description
of the flex layout properties
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/FlexLayout/NUIFlexLayout/NUIFlexLayout.cs",
"new_path": "Mobile/NUI/FlexLayout/NUIFlexLayout/NUIFlexLayout.cs",
"diff": "@@ -26,7 +26,11 @@ namespace NUIFlexLayout\n/// <summary>\n/// All views present in the application\n/// </summary>\n- private View RootView, TopView, ButtonView, FlexView;\n+ private View RootView, TopView, ButtonView, FlexView, Description;\n+ /// <summary>\n+ /// Labels corresponding to the properties changed with a given button\n+ /// </summary>\n+ private TextLabel Label1, Label2, Label3, Label4;\n/// <summary>\n/// Buttons used to change properties of flex view\n/// </summary>\n@@ -92,14 +96,46 @@ namespace NUIFlexLayout\nBackgroundColor = Color.Black,\n};\n+ // Initialize Description View\n+ Label1 = InitLabel(0.0f);\n+ Label2 = InitLabel(0.25f);\n+ Label3 = InitLabel(0.5f);\n+ Label4 = InitLabel(0.75f);\n+ Description = new View()\n+ {\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ HeightSpecification = 200,\n+ };\n+ Description.Add(Label1);\n+ Description.Add(Label2);\n+ Description.Add(Label3);\n+ Description.Add(Label4);\n+\n// Add child views.\nRootView.Add(TopView);\nRootView.Add(ButtonView);\n+ RootView.Add(Description);\nWindow.Instance.Add(RootView);\nInitFlex();\nWindow.Instance.KeyEvent += OnKeyEvent;\n}\n+ /// <summary>\n+ /// Initialize a label and put it on the given coordinate inside a parent\n+ /// </summary>\n+ /// <param name=\"y\">A vertical coordinate of the ParentOrigin</param>\n+ private TextLabel InitLabel(float y)\n+ {\n+ TextLabel Label = new TextLabel()\n+ {\n+ PositionUsesPivotPoint = true,\n+ PivotPoint = PivotPoint.TopCenter,\n+ ParentOrigin = new Vector3(0.5f, y, 0.0f),\n+ TextColor = Color.White,\n+ };\n+ return Label;\n+ }\n+\n/// <summary>\n/// Initialize flex layout and fill it with text labels\n/// </summary>\n@@ -116,6 +152,10 @@ namespace NUIFlexLayout\nWidthSpecification = LayoutParamPolicies.MatchParent,\nBackgroundColor = Color.Black,\n};\n+ Label1.Text = \"Direction type: \" + ((FlexLayout)FlexView.Layout).Direction;\n+ Label2.Text = \"Justification type: \" + ((FlexLayout)FlexView.Layout).Justification;\n+ Label3.Text = \"Alignment type: \" + ((FlexLayout)FlexView.Layout).Alignment;\n+ Label4.Text = \"Wrap type: \" + ((FlexLayout)FlexView.Layout).WrapType;\nTopView.Add(FlexView);\n@@ -190,10 +230,10 @@ namespace NUIFlexLayout\nButtonView.Add(Button4);\n// Register button click events\n- Button1.ClickEvent += Button1Clicked;\n- Button2.ClickEvent += Button2Clicked;\n- Button3.ClickEvent += Button3Clicked;\n- Button4.ClickEvent += Button4Clicked;\n+ Button1.Clicked += Button1Clicked;\n+ Button2.Clicked += Button2Clicked;\n+ Button3.Clicked += Button3Clicked;\n+ Button4.Clicked += Button4Clicked;\n}\n/// <summary>\n@@ -201,13 +241,14 @@ namespace NUIFlexLayout\n/// </summary>\n/// <param name=\"sender\">Button instance</param>\n/// <param name=\"e\">Event arguments</param>\n- private void Button1Clicked(object sender, Button.ClickEventArgs e)\n+ private void Button1Clicked(object sender, ClickedEventArgs e)\n{\nFlexLayout Layout = (FlexLayout)FlexView.Layout;\nFlexLayout.FlexDirection newDirection = Layout.Direction + 1;\nif (newDirection > FlexLayout.FlexDirection.RowReverse) {\nnewDirection = FlexLayout.FlexDirection.Column;\n}\n+ Label1.Text = \"Direction type: \" + newDirection;\nLayout.Direction = newDirection;\nFlexView.Layout = Layout;\n}\n@@ -217,13 +258,14 @@ namespace NUIFlexLayout\n/// </summary>\n/// <param name=\"sender\">Button instance</param>\n/// <param name=\"e\">Event arguments</param>\n- private void Button2Clicked(object sender, Button.ClickEventArgs e)\n+ private void Button2Clicked(object sender, ClickedEventArgs e)\n{\nFlexLayout Layout = (FlexLayout)FlexView.Layout;\nFlexLayout.FlexJustification newJust = Layout.Justification + 1;\n- if (newJust > FlexLayout.FlexJustification.SpaceAround) {\n+ if (newJust > FlexLayout.FlexJustification.SpaceEvenly) {\nnewJust = FlexLayout.FlexJustification.FlexStart;\n}\n+ Label2.Text = \"Justification type: \" + newJust;\nLayout.Justification = newJust;\nFlexView.Layout = Layout;\n}\n@@ -233,13 +275,14 @@ namespace NUIFlexLayout\n/// </summary>\n/// <param name=\"sender\">Button instance</param>\n/// <param name=\"e\">Event arguments</param>\n- private void Button3Clicked(object sender, Button.ClickEventArgs e)\n+ private void Button3Clicked(object sender, ClickedEventArgs e)\n{\nFlexLayout Layout = (FlexLayout)FlexView.Layout;\nFlexLayout.AlignmentType newAlign = Layout.Alignment + 1;\nif (newAlign > FlexLayout.AlignmentType.Stretch) {\nnewAlign = FlexLayout.AlignmentType.Auto;\n}\n+ Label3.Text = \"Alignment type: \" + newAlign;\nLayout.Alignment = newAlign;\nFlexView.Layout = Layout;\n}\n@@ -249,7 +292,7 @@ namespace NUIFlexLayout\n/// </summary>\n/// <param name=\"sender\">Button instance</param>\n/// <param name=\"e\">Event arguments</param>\n- private void Button4Clicked(object sender, Button.ClickEventArgs e)\n+ private void Button4Clicked(object sender, ClickedEventArgs e)\n{\nFlexLayout Layout = (FlexLayout)FlexView.Layout;\nif (Layout.WrapType == FlexLayout.FlexWrapType.Wrap) {\n@@ -258,6 +301,7 @@ namespace NUIFlexLayout\nelse {\nLayout.WrapType = FlexLayout.FlexWrapType.Wrap;\n}\n+ Label4.Text = \"Wrap type: \" + Layout.WrapType;\nFlexView.Layout = Layout;\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/FlexLayout/NUIFlexLayout/NUIFlexLayout.csproj",
"new_path": "Mobile/NUI/FlexLayout/NUIFlexLayout/NUIFlexLayout.csproj",
"diff": "<TargetFramework>tizen60</TargetFramework>\n</PropertyGroup>\n+ <ItemGroup>\n+ <PackageReference Include=\"Tizen.NET.API9\" Version=\"9.0.0.16813\" />\n+ </ItemGroup>\n+\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/FlexLayout/Screenshots/screen1.png",
"new_path": "Mobile/NUI/FlexLayout/Screenshots/screen1.png",
"diff": "Binary files a/Mobile/NUI/FlexLayout/Screenshots/screen1.png and b/Mobile/NUI/FlexLayout/Screenshots/screen1.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/FlexLayout/Screenshots/screen2.png",
"new_path": "Mobile/NUI/FlexLayout/Screenshots/screen2.png",
"diff": "Binary files a/Mobile/NUI/FlexLayout/Screenshots/screen2.png and b/Mobile/NUI/FlexLayout/Screenshots/screen2.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][FlexLayout] added a field with a description
of the flex layout properties
|
594,248 |
10.12.2021 01:31:19
| -3,600 |
ae87323b2641f84904b0861bd1188a8b460827e6
|
[NUI] samples - minor changes
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/README.md",
"new_path": "Mobile/NUI/CheckBox/README.md",
"diff": "@@ -14,4 +14,4 @@ The animation illustrating the app behavior is as follows:\nFor more information about the checkbox see the [NUI guide (Tizen.NET.API8 version)](https://docs.tizen.org/application/dotnet/guides/nui/nui-components/CheckBox/).\n-This sample will works Tizen.NET.API9 verson 9.0.0.16813 or bigger.\n+This sample works Tizen.NET.API9 verson 9.0.0.16813 or bigger.\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CustomLayout/NUI_CustomLayout/NUI_CustomLayout.cs",
"new_path": "Mobile/NUI/CustomLayout/NUI_CustomLayout/NUI_CustomLayout.cs",
"diff": "@@ -122,13 +122,14 @@ namespace SimpleLayout\nitemView.Add(icon);\nPropertyMap titleStyle = new PropertyMap();\n- titleStyle.Add(\"weight\", new PropertyValue(600));\n+ titleStyle.Add(\"weight\", new PropertyValue(\"semiBold\"));\n//Create item title\nTextLabel title = new TextLabel(ListItems[i].GetLabel());\n- title.Size2D = new Size2D(400, 50);\n+ title.Size2D = new Size2D(400, 60);\ntitle.FontStyle = titleStyle;\ntitle.Name = ItemContentNameTitle;\n+ title.PixelSize = 38.0f;\nitemView.Add(title);\nstring strDescription = ListItems[i].GetDescription();\n@@ -137,9 +138,13 @@ namespace SimpleLayout\nTextLabel description = new TextLabel(strDescription);\ndescription.Size2D = new Size2D(500, 50);\ndescription.Name = ItemContentNameDescription;\n- description.PixelSize = 24.0f;\n+ description.PixelSize = 28.0f;\nitemView.Add(description);\n}\n+ else\n+ {\n+ title.Size2D = new Size2D(400, 110);\n+ }\nmainView.Add(itemView);\n}\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/CustomLayout/NUI_Custom_Layout.png",
"new_path": "Mobile/NUI/CustomLayout/NUI_Custom_Layout.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/CustomLayout/NUI_Custom_Layout.png differ\n"
},
{
"change_type": "DELETE",
"old_path": "Mobile/NUI/CustomLayout/NUI_Custom_Layut.png",
"new_path": "Mobile/NUI/CustomLayout/NUI_Custom_Layut.png",
"diff": "Binary files a/Mobile/NUI/CustomLayout/NUI_Custom_Layut.png and /dev/null differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CustomLayout/README.md",
"new_path": "Mobile/NUI/CustomLayout/README.md",
"diff": "@@ -37,7 +37,7 @@ protected override void onLayout(bool changed, LayoutLength left, LayoutLength t\nThis sample app demonstrates how to create list items as it is depicted below. Example shows two different list items, with title and description and only with title. The second one has different width.\n-[screenshot](!./../NUI_Custom_Layut.png)\n+\n### Prerequisites\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI] samples - minor changes
|
594,248 |
11.12.2021 02:47:11
| -3,600 |
852e5a1357fa4c465561f7eb7ca5da9f19329ba6
|
[NUI][GridLayout] warnings removed; preventing to draw outside the window
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/GridLayout/NUIGridLayout/NUIGridLayout.cs",
"new_path": "Mobile/NUI/GridLayout/NUIGridLayout/NUIGridLayout.cs",
"diff": "@@ -42,11 +42,33 @@ namespace NUIGridLayout\n/// <summary>\n/// Items in view count\n/// </summary>\n- private static int ItemsCnt = 40;\n+ private static int ItemsCnt = 55;\n/// <summary>\n/// Items in one column count\n/// </summary>\n- private static int ColumnCnt = 5;\n+ private static int ColumnCnt = 6;\n+ /// <summary>\n+ /// Width/Height of the single item\n+ /// </summary>\n+ private static int ItemSide = 55;\n+ /// <summary>\n+ /// Right/Left/Top/Bottom single item margin\n+ /// </summary>\n+ private static ushort ItemMargin = 10;\n+\n+ /// <summary>\n+ /// Custom style for a button\n+ /// <summary>\n+ ButtonStyle Style = new ButtonStyle\n+ {\n+ Size = new Size(300, 100),\n+ CornerRadius = 28.0f,\n+ BackgroundColor = new Selector<Color>()\n+ {\n+ Other = new Color(0.25f, 0.25f, 0.25f, 1.0f),\n+ Disabled = new Color(0.8f, 0.8f, 0.8f, 1.0f),\n+ },\n+ };\n/// <summary>\n/// Overridden method that is called after app launch\n@@ -93,8 +115,6 @@ namespace NUIGridLayout\nPadding = new Extents(20, 20, 20, 20),\n};\n- InitGrid();\n-\nButtonView = new View()\n{\nWidthSpecification = LayoutParamPolicies.MatchParent,\n@@ -116,8 +136,11 @@ namespace NUIGridLayout\nfor (int i = 0; i < ItemsCnt; i++)\n{\nTextLabel t = new TextLabel();\n- t.Margin = new Extents(10, 10, 10, 10);\n+ t.Margin = new Extents(ItemMargin, ItemMargin, ItemMargin, ItemMargin);\nt.Text = \"X\";\n+ t.HorizontalAlignment = HorizontalAlignment.Center;\n+ t.VerticalAlignment = VerticalAlignment.Center;\n+ t.Size2D = new Size2D(ItemSide, ItemSide);\nt.BackgroundColor = new Color(0.8f, 0.2f, 0.2f, 1.0f);\nTopView.Add(t);\n}\n@@ -132,55 +155,80 @@ namespace NUIGridLayout\nButtonLayout.LinearOrientation = LinearLayout.Orientation.Horizontal;\nButtonView.Layout = ButtonLayout;\n- Button1 = new Button()\n+ Button1 = new Button(Style)\n{\n- BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\nWidthSpecification = LayoutParamPolicies.MatchParent,\nHeightSpecification = LayoutParamPolicies.WrapContent,\nText = \"Remove\",\nTextColor = Color.White,\n+ TextAlignment = HorizontalAlignment.Center,\nMargin = new Extents(10, 10, 10, 10),\n};\n- Button2 = new Button()\n+ Button2 = new Button(Style)\n{\n- BackgroundColor = new Color(0.25f, 0.25f, 0.25f, 1.0f),\nWidthSpecification = LayoutParamPolicies.MatchParent,\nHeightSpecification = LayoutParamPolicies.WrapContent,\nText = \"Add\",\nTextColor = Color.White,\n+ TextAlignment = HorizontalAlignment.Center,\nMargin = new Extents(10, 10, 10, 10),\n};\nButtonView.Add(Button1);\nButtonView.Add(Button2);\n- Button1.ClickEvent += Button1Clicked;\n- Button2.ClickEvent += Button2Clicked;\n+ Button1.Clicked += Button1Clicked;\n+ Button2.Clicked += Button2Clicked;\n}\n/// <summary>\n/// The method called when the left button is clicked\n+ /// It dos not allow to go outside the window boundaries - disables the left button\n/// </summary>\n/// <param name=\"sender\">Button instance</param>\n/// <param name=\"e\">Event arguments</param>\n- private void Button1Clicked(object sender, Button.ClickEventArgs e)\n+ private void Button1Clicked(object sender, ClickedEventArgs e)\n{\nColumnCnt = ColumnCnt - 1 > 0 ? ColumnCnt - 1 : 1;\nvar MyGridLayout = TopView.Layout as GridLayout;\nMyGridLayout.Columns = ColumnCnt;\n+\n+ if (!Button2.IsEnabled)\n+ {\n+ Button2.IsEnabled = true;\n+ }\n+\n+ var RowCnt = Math.Ceiling((double)(ItemsCnt) / (MyGridLayout.Columns - 1));\n+ int NextItemsHeight = (int)((ItemSide + 2 * ItemMargin) * RowCnt + TopView.Padding.Top + TopView.Padding.Bottom);\n+ if (NextItemsHeight > TopView.SizeHeight)\n+ {\n+ Button1.IsEnabled = false;\n+ }\n}\n/// <summary>\n- /// The method called when the right button is clicked\n+ /// The method called when the right button is clicked.\n+ /// It dos not allow to go outside the window boundaries - disables the right button\n/// </summary>\n/// <param name=\"sender\">Button instance</param>\n/// <param name=\"e\">Event arguments</param>\n- private void Button2Clicked(object sender, Button.ClickEventArgs e)\n+ private void Button2Clicked(object sender, ClickedEventArgs e)\n{\n++ColumnCnt;\nvar MyGridLayout = TopView.Layout as GridLayout;\nMyGridLayout.Columns = ColumnCnt;\n+\n+ if (!Button1.IsEnabled)\n+ {\n+ Button1.IsEnabled = true;\n+ }\n+\n+ int NextItemsWidth = (int)((ItemSide + 2 * ItemMargin) * (ColumnCnt + 1) + TopView.Padding.Start + TopView.Padding.End);\n+ if (NextItemsWidth > TopView.SizeWidth)\n+ {\n+ Button2.IsEnabled = false;\n+ }\n}\n/// <summary>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/GridLayout/NUIGridLayout/NUIGridLayout.csproj",
"new_path": "Mobile/NUI/GridLayout/NUIGridLayout/NUIGridLayout.csproj",
"diff": "<TargetFramework>tizen60</TargetFramework>\n</PropertyGroup>\n+ <ItemGroup>\n+ <PackageReference Include=\"Tizen.NET.API9\" Version=\"9.0.0.16813\" />\n+ </ItemGroup>\n+\n</Project>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/GridLayout/Screenshots/screen1.png",
"new_path": "Mobile/NUI/GridLayout/Screenshots/screen1.png",
"diff": "Binary files a/Mobile/NUI/GridLayout/Screenshots/screen1.png and b/Mobile/NUI/GridLayout/Screenshots/screen1.png differ\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/GridLayout/Screenshots/screen2.png",
"new_path": "Mobile/NUI/GridLayout/Screenshots/screen2.png",
"diff": "Binary files a/Mobile/NUI/GridLayout/Screenshots/screen2.png and b/Mobile/NUI/GridLayout/Screenshots/screen2.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][GridLayout] warnings removed; preventing to draw outside the window
|
594,282 |
12.12.2021 15:30:01
| -19,080 |
6a0acca740ac6da9c87d0f4d3ede27e570a25076
|
Fix text size too small issue JIRA:SAD-918
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Accounts/SampleAccount/SampleAccount/Views/AccountSignOut.xaml",
"new_path": "Mobile/Xamarin.Forms/Accounts/SampleAccount/SampleAccount/Views/AccountSignOut.xaml",
"diff": "Title=\"Sample Account\">\n<ContentPage.Content>\n<StackLayout Orientation=\"Vertical\" BackgroundColor=\"White\">\n- <Label x:Name=\"AccountLabel\" Text=\"\" TextColor=\"Black\" LineBreakMode=\"CharacterWrap\" FontSize = \"20\"/>\n- <Label Text=\"Sample Account ID\" TextColor=\"Black\" LineBreakMode=\"WordWrap\" FontSize = \"15\"/>\n+ <Label x:Name=\"AccountLabel\" Text=\"\" TextColor=\"Black\" LineBreakMode=\"CharacterWrap\" FontSize = \"40\"/>\n+ <Label Text=\"Sample Account ID\" TextColor=\"Black\" LineBreakMode=\"WordWrap\" FontSize = \"30\"/>\n<Button Text=\"SIGN OUT\"\nClicked=\"SignOutClicked\"\nHorizontalOptions=\"Fill\"\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
Fix text size too small issue JIRA:SAD-918
Signed-off-by: Abhimanyu Swami/Application S/W Group /SRI-Delhi/Engineer/Samsung Electronics <abhimanyu1.s@samsung.com>
|
594,230 |
14.12.2021 10:48:21
| -32,400 |
c7e4446c781ae74009a4e4bd9d82661d64d9fa51
|
[Mobild][MediaContent] Fix DB Filter expression
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/MediaContent/src/MediaContent/MediaContent.Tizen.Mobile/Services/DatabaseManagerService.cs",
"new_path": "Mobile/Xamarin.Forms/MediaContent/src/MediaContent/MediaContent.Tizen.Mobile/Services/DatabaseManagerService.cs",
"diff": "@@ -52,7 +52,7 @@ namespace MediaContent.Tizen.Mobile.Services\n/// Directory condition template.\n/// </summary>\nprivate const string DIRECTORY_CONDITION =\n- \" AND PATH LIKE '{0}%'\";\n+ \" AND {0} LIKE '{1}%'\";\n/// <summary>\n/// An instance of MediaDatabase class.\n@@ -143,7 +143,7 @@ namespace MediaContent.Tizen.Mobile.Services\n{\nvar selectArgs = new SelectArguments\n{\n- FilterExpression = stringBuilder.ToString() + String.Format(DIRECTORY_CONDITION, storageId)\n+ FilterExpression = stringBuilder.ToString() + String.Format(DIRECTORY_CONDITION, MediaInfoColumns.Path, storageId)\n};\ntry\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobild][MediaContent] Fix DB Filter expression (#331)
|
594,286 |
13.12.2021 14:10:40
| -3,600 |
e45d3a73e2c5f027ddae35edff2baad9c831fe05
|
[Badge] Remove old badge inormation before adding the new one.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Badges/src/Badges/Badges.Tizen.Mobile/Services/AppList.cs",
"new_path": "Mobile/Xamarin.Forms/Badges/src/Badges/Badges.Tizen.Mobile/Services/AppList.cs",
"diff": "@@ -101,6 +101,7 @@ namespace Badges.Tizen.Mobile\n{\ntry\n{\n+ BadgeControl.Remove(appId);\nBadgeControl.Add(new Badge(appId, badgeCount, true));\n}\ncatch (Exception e)\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Badge] Remove old badge inormation before adding the new one.
|
594,285 |
15.12.2021 10:49:47
| -3,600 |
72ac60d7c88332169528e063a4e5d6d61032ddb1
|
[NUI][Badges] Adding events to UI buttons
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Badges/Badges/XamlPage.xaml.cs",
"new_path": "Mobile/NUI/Badges/Badges/XamlPage.xaml.cs",
"diff": "using Tizen.NUI;\nusing Tizen.NUI.BaseComponents;\nusing Tizen.NUI.Components;\n+using Tizen.Applications;\n+using System.Collections.Generic;\n+using System.Linq;\n+using Badges.Models;\n+using Badges.ViewModels;\nnamespace Badges\n{\npublic partial class XamlPage : ContentPage\n{\n+ List<AppInfo> changeableApplications;\n+ List<AppInfo> others;\n+ View selectedView;\n+ AppInfo selectedIteam;\npublic XamlPage()\n{\nInitializeComponent();\n+ changeableApplications = new List<AppInfo>();\n+ others = new List<AppInfo>();\n+ fillApplicationsList();\n+ fillScroller();\n+ IncreaseButton.Clicked += OnKeyEventIncreaseButton;\n+ ReduceButton.Clicked += OnKeyEventReduceButton;\n+ ApplyButton.Clicked += OnKeyEventApplyButton;\n+ ResetButton.Clicked += OnKeyEventResetButton;\n+ }\n+ public bool OnTouchEvent(object sender, View.TouchEventArgs args)\n+ {\n+ if(selectedView != null)\n+ {\n+ selectedView.BackgroundColor = Color.White;\n+ }\n+ selectedView = sender as View;\n+ //#cfd8dc\n+ selectedView.BackgroundColor = Color.Gray;\n+ selectedIteam = changeableApplications.Find(x => x.AppName.Equals(selectedView.Name));\n+ CounterNumberFiled.Text = selectedIteam.BadgeCounter.ToString();\n+ ReduceButton.IsEnabled = true;\n+ IncreaseButton.IsEnabled = true;\n+ ApplyButton.IsEnabled = true;\n+ ResetButton.IsEnabled = true;\n+ return true;\n+ }\n+ public void OnKeyEventIncreaseButton(object sender, ClickedEventArgs args)\n+ {\n+ selectedIteam.BadgeCounter++;\n+ if(selectedIteam.BadgeCounter > 99)\n+ {\n+ CounterNumberFiled.Text = \"99+\";\n+ }\n+ else\n+ {\n+ CounterNumberFiled.Text = selectedIteam.BadgeCounter.ToString();\n+ }\n+ }\n+ public void OnKeyEventReduceButton(object sender, ClickedEventArgs args)\n+ {\n+ if(selectedIteam.BadgeCounter > 0)\n+ {\n+ selectedIteam.BadgeCounter--;\n+ CounterNumberFiled.Text = selectedIteam.BadgeCounter.ToString();\n+ }\n+ }\n+ public void OnKeyEventApplyButton(object sender, ClickedEventArgs args)\n+ {\n+ if(selectedView!=null)\n+ {\n+ selectedView.Remove(selectedView.Children.Last());\n+ selectedView.Add(new TextLabel\n+ {\n+ Text = selectedIteam.BadgeCounter.ToString()\n+ });\n+ }\n+ }\n+ public void OnKeyEventResetButton(object sender, ClickedEventArgs args)\n+ {\n+ if (selectedView != null)\n+ {\n+ selectedIteam.BadgeCounter = 0;\n+ CounterNumberFiled.Text = selectedIteam.BadgeCounter.ToString();\n+ selectedView.Remove(selectedView.Children.Last());\n+ selectedView.Add(new TextLabel\n+ {\n+ Text = \"0\"\n+ });\n+ }\n+ }\n+ public void fillApplicationsList()\n+ {\n+ IEnumerable<Package> packageList = PackageManager.GetPackages();\n+ foreach (Package pkg in packageList)\n+ {\n+ var list = pkg.GetApplications();\n+ foreach (var app in list)\n+ {\n+ if(!app.IsNoDisplay)\n+ {\n+ if(app.IsPreload)\n+ {\n+ others.Add(new AppInfo(app.Label, app.PackageId, false, 0));\n+ }\n+ else\n+ {\n+ changeableApplications.Add(new AppInfo(app.Label, app.PackageId, true, 0));\n+ }\n+ }\n+ }\n+ }\n+ }\n+ public void fillScroller()\n+ {\n+ addListLabelToScroller(\"Changeable Applications\");\n+ addListToScroller(changeableApplications);\n+ addListLabelToScroller(\"Others\");\n+ addListToScroller(others);\n+ }\n+ public void addListToScroller(List<AppInfo> list)\n+ {\n+ foreach (var app in list)\n+ {\n+ Scroller.Add(new View\n+ {\n+ WidthSpecification = LayoutParamPolicies.MatchParent,\n+ Name = app.AppName,\n+ Layout = new FlexLayout\n+ {\n+ Direction = FlexLayout.FlexDirection.Row,\n+ Justification = FlexLayout.FlexJustification.SpaceBetween,\n+ }\n+ });\n+ if (app.IsAvailable)\n+ {\n+ Scroller.Children.Last().TouchEvent += OnTouchEvent;\n+ Scroller.Children.Last().Add(new TextLabel\n+ {\n+ Text = app.AppName\n+ });\n+ }\n+ else\n+ {\n+ Scroller.Children.Last().Add(new TextLabel\n+ {\n+ Text = app.AppName,\n+ TextColor = Color.Gray\n+ });\n+ }\n+ Scroller.Children.Last().Add(new TextLabel\n+ {\n+ Text = app.BadgeCounter.ToString()\n+ });\n+ }\n+ }\n+ public void addListLabelToScroller(string label)\n+ {\n+ Scroller.Add(new View());\n+ Scroller.Children.Last().Add(new TextLabel\n+ {\n+ Text = label,\n+ PointSize = 12,\n+ TextColor = Color.Cyan\n+ });\n}\n}\n}\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Badges/Badges/res/examl/Badges.XamlPage.examl",
"new_path": "Mobile/NUI/Badges/Badges/res/examl/Badges.XamlPage.examl",
"diff": "-<\n-\"Badges, \"\n-\"Tizen.NUI, \"\n->\n-<\n-(\"0\" \"Badges.XamlPage\")\n-(\"1\" \"Tizen.NUI.BaseComponents.TextLabel\")\n-(\"1\" \"Tizen.NUI.BaseComponents.View\")\n-(\"1\" \"Tizen.NUI.Binding.PositionTypeConverter\")\n-(\"1\" \"Tizen.NUI.Position\")\n-(\"1\" \"Tizen.NUI.Binding.SizeTypeConverter\")\n-(\"1\" \"Tizen.NUI.Size\")\n-(\"1\" \"Tizen.NUI.Binding.ColorTypeConverter\")\n-(\"1\" \"Tizen.NUI.Color\")\n->\n-<\n-(\"1\" \"Text\")\n-(\"2\" \"PositionUsesPivotPoint\")\n-(\"2\" \"ParentOrigin\")\n-(\"2\" \"PivotPoint\")\n-(\"2\" \"Size\")\n-(\"1\" \"PointSize\")\n-(\"1\" \"TextColor\")\n->\n-<\n->\n-<\n-(\"2\" \"Add\" (d2d ))\n->\n-<\n->\n-{d0d }\n-{d1d }\n-&(a1a \"text\")&\n-[(a1a d0d \"Hello, NUI XAML APP!\" )]\n-[(a1a d1d mTruem )]\n-{d3d }\n-@q(a2a \"Center\" )q@\n-[(a1a d2d a3a )]\n-@q(a2a \"Center\" )q@\n-[(a1a d3d a4a )]\n-{d5d }\n-@q(a5a \"700,300,0\" )q@\n-[(a1a d4d a6a )]\n-[(a1a d5d j17j )]\n-{d7d }\n-@q(a7a \"Yellow\" )q@\n-[(a1a d6d a8a )]\n-^(a0a a1a d0d)^\n+(d0d (\"Badges, \" ))\n+(d0d (\"Tizen.NUI, \" ))\n+(d0d (\"Tizen.NUI.Components, \" ))\n+(d1d (d0d \"Badges.XamlPage\"))\n+(d1d (d1d \"Tizen.NUI.BaseComponents.View\"))\n+(d1d (d2d \"Tizen.NUI.Components.ContentPage\"))\n+(d1d (d1d \"Tizen.NUI.BaseComponents.LayoutParamPolicies\"))\n+(d1d (d1d \"Tizen.NUI.KeyValue\"))\n+(d1d (d1d \"Tizen.NUI.PropertyMap\"))\n+(d1d (d1d \"Tizen.NUI.BaseComponents.TextLabel\"))\n+(d1d (d2d \"Tizen.NUI.Components.AppBar\"))\n+(d1d (d0d \"Badges.ViewModels.ViewModel\"))\n+(d1d (d1d \"Tizen.NUI.FlexLayout\"))\n+(d1d (d2d \"Tizen.NUI.Components.Button\"))\n+(d1d (d2d \"Tizen.NUI.Components.ScrollableBase\"))\n+(d1d (d1d \"Tizen.NUI.Binding.BindableObject\"))\n+(d1d (d1d \"Tizen.NUI.Binding.ColorTypeConverter\"))\n+(d1d (d1d \"Tizen.NUI.Color\"))\n+(d1d (d1d \"Tizen.NUI.HorizontalAlignment\"))\n+(d1d (d1d \"Tizen.NUI.VerticalAlignment\"))\n+(d1d (d1d \"Tizen.NUI.FlexLayout+FlexDirection\"))\n+(d1d (d1d \"Tizen.NUI.FlexLayout+FlexJustification\"))\n+(d1d (d1d \"Tizen.NUI.FlexLayout+AlignmentType\"))\n+(d1d (d2d \"Tizen.NUI.Components.ScrollableBase+Direction\"))\n+(d2d (d1d \"WidthSpecification\" ))\n+(d2d (d1d \"HeightSpecification\" ))\n+(d2d (d1d \"BackgroundColor\" ))\n+(d2d (d2d \"AppBar\" ))\n+(d2d (d2d \"Content\" ))\n+(d2d (d4d \"Key\" ))\n+(d2d (d4d \"Value\" ))\n+(d2d (d6d \"HorizontalAlignment\" ))\n+(d2d (d6d \"VerticalAlignment\" ))\n+(d2d (d6d \"TextColor\" ))\n+(d2d (d6d \"PointSize\" ))\n+(d2d (d6d \"Text\" ))\n+(d2d (d6d \"FontStyle\" ))\n+(d2d (d1d \"Name\" ))\n+(d2d (d7d \"Title\" ))\n+(d2d (d7d \"TitleContent\" ))\n+(d2d (d9d \"Direction\" ))\n+(d2d (d9d \"Justification\" ))\n+(d2d (d9d \"ItemsAlignment\" ))\n+(d2d (d10d \"Text\" ))\n+(d2d (d10d \"IsEnabled\" ))\n+(d2d (d1d \"Layout\" ))\n+(d2d (d11d \"ScrollingDirection\" ))\n+(d2d (d11d \"HideScrollbar\" ))\n+(d2d (d11d \"Layout\" ))\n+(d2d (d12d \"BindingContext\" ))\n+(d4d (d5d \"Add\" (d4d )))\n+(d4d (d1d \"Add\" (d1d )))\n+(d5d (d9d \"FlexGrowProperty\" ))\n+(d6d (d0d d-1d ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d6d (d4d d-1d ))\n+(d6d (d4d d-1d ))\n+(d6d (d4d d-1d ))\n+(d6d (d5d d-1d ))\n+(d6d (d6d d-1d ))\n+(d6d (d7d d-1d ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d6d (d8d d-1d ))\n+(d6d (d9d d-1d ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d6d (d9d d-1d ))\n+(d6d (d10d d-1d ))\n+(d6d (d6d d-1d ))\n+(d6d (d10d d-1d ))\n+(d6d (d1d d-1d ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d6d (d9d d-1d ))\n+(d6d (d10d d-1d ))\n+(d6d (d10d d-1d ))\n+(d6d (d1d d-1d ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d9d (d3d zz \"MatchParent\" ))\n+(d6d (d9d d-1d ))\n+(d6d (d11d d-1d ))\n+(d6d (d1d d-1d ))\n+(d6d (d1d d-1d ))\n+(d23d (a35a \"MainView\" ))\n+(d23d (a13a \"context\" ))\n+(d23d (a21a \"CounterView\" ))\n+(d23d (a18a \"ReduceButton\" ))\n+(d23d (a19a \"CounterNumberFiled\" ))\n+(d23d (a20a \"IncreaseButton\" ))\n+(d23d (a27a \"ButtonView\" ))\n+(d23d (a25a \"ApplyButton\" ))\n+(d23d (a26a \"ResetButton\" ))\n+(d23d (a34a \"ChangeableApplicationsListView\" ))\n+(d23d (a33a \"Scroller\" ))\n+(d14d (d0d d0d a1a ))\n+(d14d (d0d d1d a2a ))\n+(d6d (d13d d-1d ))\n+(d11d (a36a \"White\" ))\n+(d14d (d0d d2d a37a ))\n+(d14d (d10d d13d \"appBar\" ))\n+(d14d (d10d d14d \"Badges\" ))\n+(d11d (a36a \"#00a9bf\" ))\n+(d14d (d10d d2d a38a ))\n+(d14d (d9d d0d a3a ))\n+(d14d (d9d d1d a4a ))\n+(d12d (d15d \"End\" ))\n+(d14d (d9d d7d a39a ))\n+(d12d (d16d \"Center\" ))\n+(d14d (d9d d8d a40a ))\n+(d11d (a36a \"White\" ))\n+(d14d (d9d d9d a41a ))\n+(d14d (d9d d10d j12j ))\n+(d14d (d9d d11d \"Sample Account\" ))\n+(d14d (d5d d5d \"width\" ))\n+(d14d (d5d d6d \"expanded\" ))\n+(d19d (d8d a5a d0d ))\n+(d14d (d6d d5d \"weight\" ))\n+(d14d (d6d d6d \"medium\" ))\n+(d19d (d8d a6a d0d ))\n+(d14d (d7d d5d \"slant\" ))\n+(d14d (d7d d6d \"italic\" ))\n+(d19d (d8d a7a d0d ))\n+(d14d (d9d d12d a8a ))\n+(d14d (d10d d15d a9a ))\n+(d14d (d0d d3d a10a ))\n+(d14d (d35d d0d a11a ))\n+(d14d (d35d d1d a12a ))\n+(d11d (a36a \"White\" ))\n+(d14d (d35d d2d a42a ))\n+(d14d (d35d d25d a13a ))\n+(d12d (d17d \"Column\" ))\n+(d14d (d14d d16d a43a ))\n+(d12d (d18d \"SpaceAround\" ))\n+(d14d (d14d d17d a44a ))\n+(d14d (d35d d21d a14a ))\n+(d14d (d21d d0d a15a ))\n+(d14d (d21d d1d a16a ))\n+(d11d (a36a \"White\" ))\n+(d14d (d21d d2d a45a ))\n+(d12d (d18d \"SpaceAround\" ))\n+(d14d (d17d d17d a46a ))\n+(d12d (d19d \"Center\" ))\n+(d14d (d17d d18d a47a ))\n+(d12d (d17d \"Row\" ))\n+(d14d (d17d d16d a48a ))\n+(d14d (d21d d21d a17a ))\n+(d14d (d18d d19d \"-\" ))\n+(d14d (d18d d20d mFalsem ))\n+(d19d (d21d a18a d1d ))\n+(d14d (d19d d11d \"0\" ))\n+(d14d (d19d d10d j20j ))\n+(d11d (a36a \"Black\" ))\n+(d14d (d19d d9d a49a ))\n+(d19d (d21d a19a d1d ))\n+(d14d (d20d d19d \"+\" ))\n+(d14d (d20d d20d mFalsem ))\n+(d19d (d21d a20a d1d ))\n+(d19d (d35d a21a d1d ))\n+(d14d (d27d d0d a22a ))\n+(d14d (d27d d1d a23a ))\n+(d11d (a36a \"White\" ))\n+(d14d (d27d d2d a50a ))\n+(d12d (d17d \"Row\" ))\n+(d14d (d24d d16d a51a ))\n+(d12d (d18d \"SpaceAround\" ))\n+(d14d (d24d d17d a52a ))\n+(d12d (d19d \"FlexEnd\" ))\n+(d14d (d24d d18d a53a ))\n+(d14d (d27d d21d a24a ))\n+(d14d (d25d d19d \"Apply\" ))\n+(d14d (d25d d20d mFalsem ))\n+(d15d (d25d d0d j0j ))\n+(d11d (a36a \"#00a9bf\" ))\n+(d14d (d25d d2d a54a ))\n+(d19d (d27d a25a d1d ))\n+(d14d (d26d d19d \"Reset\" ))\n+(d14d (d26d d20d mFalsem ))\n+(d15d (d26d d0d j0j ))\n+(d11d (a36a \"#00a9bf\" ))\n+(d14d (d26d d2d a55a ))\n+(d19d (d27d a26a d1d ))\n+(d19d (d35d a27a d1d ))\n+(d14d (d34d d0d a28a ))\n+(d14d (d34d d1d a29a ))\n+(d11d (a36a \"White\" ))\n+(d14d (d34d d2d a56a ))\n+(d12d (d20d \"Vertical\" ))\n+(d14d (d33d d22d a57a ))\n+(d14d (d33d d23d mFalsem ))\n+(d14d (d33d d0d a30a ))\n+(d14d (d33d d1d a31a ))\n+(d12d (d18d \"SpaceBetween\" ))\n+(d14d (d32d d17d a58a ))\n+(d12d (d17d \"Column\" ))\n+(d14d (d32d d16d a59a ))\n+(d14d (d33d d24d a32a ))\n+(d19d (d34d a33a d1d ))\n+(d19d (d35d a34a d1d ))\n+(d14d (d0d d4d a35a ))\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Badges/Badges/res/layout/XamlPage.xaml",
"new_path": "Mobile/NUI/Badges/Badges/res/layout/XamlPage.xaml",
"diff": "<AppBar\nName=\"appBar\"\nTitle=\"Badges\"\n- BackgroundColor=\"Blue\">\n+ BackgroundColor=\"#00a9bf\">\n<AppBar.TitleContent>\n<!-- TextLabel holding Appbar title -->\n<TextLabel WidthSpecification=\"{Static LayoutParamPolicies.MatchParent}\"\nVerticalAlignment=\"Center\"\n- BackgroundColor=\"Blue\"\n-\nTextColor=\"White\"\nPointSize=\"12\"\n</View.BindingContext>\n<View.Layout>\n- <LinearLayout LinearOrientation=\"Vertical\"/>\n+ <FlexLayout Direction=\"Column\" Justification=\"SpaceAround\"/>\n</View.Layout>\n<View x:Name=\"CounterView\"\nBackgroundColor=\"White\">\n<View.Layout>\n- <LinearLayout LinearOrientation=\"Horizontal\" LinearAlignment=\"Center\"/>\n+ <FlexLayout Justification=\"SpaceAround\" ItemsAlignment=\"Center\" Direction=\"Row\"/>\n</View.Layout>\n<Button\n- BindingContext=\"{Binding Source={x:Reference context}}\"\nx:Name=\"ReduceButton\"\n- IsEnabled=\"{Binding Flag}\"\n- Command=\"{Binding ReduceCounter}\"/>\n+ Text=\"-\"\n+ IsEnabled=\"False\"/>\n<b:TextLabel\n- BindingContext=\"{Binding Source={x:Reference context}}\"\nx:Name=\"CounterNumberFiled\"\n- Text=\"{Binding CounterText}\"\n+ Text=\"0\"\n+ PointSize=\"20\"\nTextColor=\"Black\"/>\n<Button\n- BindingContext=\"{Binding Source={x:Reference context}}\"\nx:Name=\"IncreaseButton\"\n- IsEnabled=\"{Binding Flag}\"\n- Command=\"{Binding IncreaseCounter}\"/>\n+ Text=\"+\"\n+ IsEnabled=\"False\"/>\n</View>\n<View x:Name=\"ButtonView\"\nBackgroundColor=\"White\">\n<View.Layout>\n- <LinearLayout LinearOrientation=\"Horizontal\" LinearAlignment=\"Center\"/>\n+ <FlexLayout Direction=\"Row\" Justification=\"SpaceAround\" ItemsAlignment=\"FlexEnd\"/>\n</View.Layout>\n<Button\n- BindingContext=\"{Binding Source={x:Reference context}}\"\nx:Name=\"ApplyButton\"\nText =\"Apply\"\n- Command=\"{Binding ApplyBadges}\"/>\n+ IsEnabled=\"False\"\n+ FlexLayout.FlexGrow=\"0.0\"\n+ BackgroundColor=\"#00a9bf\"/>\n<Button\n- BindingContext=\"{Binding Source={x:Reference context}}\"\nx:Name=\"ResetButton\"\nText=\"Reset\"\n- Command=\"{Binding ResetBadges}\"/>\n+ IsEnabled=\"False\"\n+ FlexLayout.FlexGrow=\"0.0\"\n+ BackgroundColor=\"#00a9bf\"/>\n</View>\n<View x:Name=\"ChangeableApplicationsListView\"\nHeightSpecification=\"{Static LayoutParamPolicies.MatchParent}\"\nBackgroundColor=\"White\">\n- <View.Layout>\n- <LinearLayout LinearOrientation=\"Vertical\" LinearAlignment=\"Center\"/>\n- </View.Layout>\n+ <ScrollableBase x:Name=\"Scroller\"\n+ ScrollingDirection=\"Vertical\"\n+ HideScrollbar=\"false\"\n+ WidthSpecification=\"{Static LayoutParamPolicies.MatchParent}\"\n+ HeightSpecification=\"{Static LayoutParamPolicies.MatchParent}\">\n- <b:TextField\n- x:Name=\"ChangeableApplicationsLabel\"\n- Text=\"Changeable Applications\"\n- TextColor=\"Blue\"/>\n- <ScrollView\n- x:Name=\"ChangeableApplicationsList\">\n+ <ScrollableBase.Layout>\n+ <FlexLayout Justification=\"SpaceBetween\" Direction=\"Column\"/>\n+ </ScrollableBase.Layout>\n- </ScrollView>\n+ </ScrollableBase>\n</View>\n</View>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Badges] Adding events to UI buttons
|
594,243 |
15.12.2021 13:04:36
| -3,600 |
095d54a6380e5c753c7fdbc4ffefe51db0e3678e
|
[NUI][Badges] Adding screenshot to README file
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Badges/README.md",
"new_path": "Mobile/NUI/Badges/README.md",
"diff": "Badges is a sample application which demonstrates how to manage applications badge\ncounter using [Tizen Applications API](https://samsung.github.io/TizenFX/stable/api/Tizen.Applications.html).\n-\n+\n### Features\n* List of changeable applications (with current badge value)\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Badges] Adding screenshot to README file
|
594,286 |
16.12.2021 06:40:41
| -3,600 |
f679d02fcc8c5cdfb810804a514103b5ee855acb
|
[Badges] Check if badge is added.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Badges/src/Badges/Badges.Tizen.Mobile/Services/AppList.cs",
"new_path": "Mobile/Xamarin.Forms/Badges/src/Badges/Badges.Tizen.Mobile/Services/AppList.cs",
"diff": "@@ -100,8 +100,11 @@ namespace Badges.Tizen.Mobile\npublic void SetBadge(string appId, int badgeCount)\n{\ntry\n+ {\n+ if(IsBadgeAdded(appId))\n{\nBadgeControl.Remove(appId);\n+ }\nBadgeControl.Add(new Badge(appId, badgeCount, true));\n}\ncatch (Exception e)\n@@ -110,6 +113,19 @@ namespace Badges.Tizen.Mobile\n}\n}\n+ private bool IsBadgeAdded(string appId)\n+ {\n+ try\n+ {\n+ BadgeControl.Find(appId);\n+ }\n+ catch (Exception e)\n+ {\n+ Debug.WriteLine($\"Error getting badge information for {appId}: {e.Message}\");\n+ return false;\n+ }\n+ return true;\n+ }\n#endregion methods\n}\n}\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Badges] Check if badge is added.
|
594,270 |
17.12.2021 16:50:58
| -32,400 |
5d09822145ace515eae608c302fbd4807041eab9
|
[NUI][VideoViewSample] Hotfix for Video Forward action
Hotfix patch for Forward
tizen-6.5-unified_20211213.1 version fix this problem.
But if we need to release older version of tizen, use this sample.
This patch just change Forward / Backward step 1 sec to 2 sec.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"new_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"diff": "@@ -159,10 +159,10 @@ namespace VideoViewSample\nplayer.Stop();\nbreak;\ncase \"forward\":\n- player.Forward(1000); // +1 sec\n+ player.Forward(2000); // +2 sec\nbreak;\ncase \"backward\":\n- player.Backward(1000); // -1 sec\n+ player.Backward(2000); // -2 sec\nbreak;\n}\n}\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][VideoViewSample] Hotfix for Video Forward action
Hotfix patch for Forward
tizen-6.5-unified_20211213.1 version fix this problem.
But if we need to release older version of tizen, use this sample.
This patch just change Forward / Backward step 1 sec to 2 sec.
Signed-off-by: pichulia <eunkiki.hong@samsung.com>
|
594,286 |
16.12.2021 15:15:24
| -3,600 |
1cfdf6542f287213e5a6ab60650a9c6579b4f9b9
|
[Badges] Check if app's badge is changeable.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/Xamarin.Forms/Badges/src/Badges/Badges.Tizen.Mobile/Services/AppList.cs",
"new_path": "Mobile/Xamarin.Forms/Badges/src/Badges/Badges.Tizen.Mobile/Services/AppList.cs",
"diff": "@@ -21,6 +21,7 @@ using Tizen.Applications;\nusing Badges.Interfaces;\nusing Badges.Models;\nusing Badges.Tizen.Mobile;\n+using System.Linq;\n[assembly: Xamarin.Forms.Dependency(typeof(AppList))]\n@@ -31,6 +32,7 @@ namespace Badges.Tizen.Mobile\n/// </summary>\ninternal class AppList : IAppListService\n{\n+ private const string notificationPrivilege = \"http://tizen.org/privilege/notification\";\n#region methods\n/// <summary>\n@@ -40,8 +42,6 @@ namespace Badges.Tizen.Mobile\n/// <param name=\"applicationListCb\">Delegate to call on every application retrieval.</param>\npublic async void GetAppList(AddAppToListDelegate applicationListCb)\n{\n- var myCert = PackageManager.GetPackage(Application.Current.ApplicationInfo.PackageId)?\n- .Certificates[CertificateType.Author].Signer;\nIEnumerable<ApplicationInfo> installedApplications =\nawait ApplicationManager.GetInstalledApplicationsAsync();\n@@ -52,28 +52,20 @@ namespace Badges.Tizen.Mobile\ncontinue;\n}\n- Package pkg;\n+ bool isChangable;\ntry\n{\n- pkg = PackageManager.GetPackage(tizenAppInfo.PackageId);\n+ isChangable = IsChangeable(tizenAppInfo);\n}\n- catch (Exception e)\n+ catch\n{\n- Debug.WriteLine($\"Error getting application {tizenAppInfo.ApplicationId} information: {e.Message}\");\ncontinue;\n}\n- var appSignerCert = pkg?.Certificates[CertificateType.Author].Signer;\n- if (appSignerCert == null)\n- {\n- continue;\n- }\n-\n- bool isEnabled = appSignerCert.Equals(myCert);\nvar appInfo = new AppInfo(\nappName: tizenAppInfo.Label,\nappId: tizenAppInfo.ApplicationId,\n- isAvailable: isEnabled,\n+ isAvailable: isChangable,\nbadgeCounter: 0);\ntry\n{\n@@ -103,10 +95,15 @@ namespace Badges.Tizen.Mobile\n{\nif(IsBadgeAdded(appId))\n{\n- BadgeControl.Remove(appId);\n+ Badge badge = BadgeControl.Find(appId);\n+ badge.Count = badgeCount;\n+ BadgeControl.Update(badge);\n}\n+ else\n+ {\nBadgeControl.Add(new Badge(appId, badgeCount, true));\n}\n+ }\ncatch (Exception e)\n{\nDebug.WriteLine($\"Error setting badge for {appId}: {e.Message}\");\n@@ -126,6 +123,27 @@ namespace Badges.Tizen.Mobile\n}\nreturn true;\n}\n+\n+ private bool IsChangeable(ApplicationInfo tizenAppInfo)\n+ {\n+ Package pkg;\n+ try\n+ {\n+ pkg = PackageManager.GetPackage(tizenAppInfo.PackageId);\n+ }\n+ catch (Exception e)\n+ {\n+ Debug.WriteLine($\"Error getting application {tizenAppInfo.ApplicationId} information: {e.Message}\");\n+ throw;\n+ }\n+\n+ string applicationId = Application.Current.ApplicationInfo.ApplicationId;\n+ CertCompareResultType certCompareResultType = PackageManager.CompareCertInfoByApplicationId(applicationId, tizenAppInfo.ApplicationId);\n+ bool isCertMatch = certCompareResultType == CertCompareResultType.Match ? true : false;\n+\n+ return isCertMatch && pkg.Privileges.Contains(notificationPrivilege);\n+ }\n+\n#endregion methods\n}\n}\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Badges] Check if app's badge is changeable.
|
594,270 |
17.12.2021 19:19:58
| -32,400 |
82611d0cebf9574d33bbff426c75f0d8783c710e
|
[NUI][VideoViewSample] Make Forward more big step
Current video sample have too long sampling times.
To make it works well, we need to set forward/backward time more than 2.5 seconds.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"new_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"diff": "@@ -159,10 +159,10 @@ namespace VideoViewSample\nplayer.Stop();\nbreak;\ncase \"forward\":\n- player.Forward(2000); // +2 sec\n+ player.Forward(2500); // +2.5 sec\nbreak;\ncase \"backward\":\n- player.Backward(2000); // -2 sec\n+ player.Backward(2500); // -2.5 sec\nbreak;\n}\n}\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][VideoViewSample] Make Forward more big step
Current video sample have too long sampling times.
To make it works well, we need to set forward/backward time more than 2.5 seconds.
Signed-off-by: pichulia <eunkiki.hong@samsung.com>
|
594,285 |
25.01.2022 12:11:14
| -3,600 |
ba5709f0558b81eba43fc8cffac7e2477eb10d94
|
[Mobile][NUI] Alarm Application Sample
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Alarms/Alarms/Alarms.csproj",
"new_path": "Mobile/NUI/Alarms/Alarms/Alarms.csproj",
"diff": "</PropertyGroup>\n<ItemGroup>\n<None Remove=\"res\\layout\\AddAlarmPage.xaml\" />\n- <None Remove=\"res\\layout\\ChooseAlarmTypePage.xaml\" />\n- <None Remove=\"res\\layout\\ChooseAppPage.xaml\" />\n</ItemGroup>\n<ItemGroup>\n<SubType>Designer</SubType>\n<Generator>MSBuild:Compile</Generator>\n</EmbeddedResource>\n- <EmbeddedResource Include=\"res\\layout\\ChooseAlarmTypePage.xaml\">\n- <SubType>Designer</SubType>\n- <Generator>MSBuild:Compile</Generator>\n- </EmbeddedResource>\n- <EmbeddedResource Include=\"res\\layout\\ChooseAppPage.xaml\">\n- <SubType>Designer</SubType>\n- <Generator>MSBuild:Compile</Generator>\n- </EmbeddedResource>\n<EmbeddedResource Include=\"res\\layout\\MainPage.xaml\">\n<Generator>MSBuild:Compile</Generator>\n</EmbeddedResource>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Alarms/Alarms/ViewModels/AddAlarmPageViewModel.cs",
"new_path": "Mobile/NUI/Alarms/Alarms/ViewModels/AddAlarmPageViewModel.cs",
"diff": "@@ -28,7 +28,6 @@ namespace Alarms.ViewModels\nprivate string date;\nprivate string time;\nprivate DateTime localDate;\n-\npublic ICommand DateMonthUp { get; private set; }\npublic ICommand DateDayUp { get; private set; }\npublic ICommand DateYearUp { get; private set; }\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Alarms/Alarms/res/examl/Alarms.MainPage.examl",
"new_path": "Mobile/NUI/Alarms/Alarms/res/examl/Alarms.MainPage.examl",
"diff": "(d2d (d8d \"Direction\" ))\n(d2d (d8d \"Justification\" ))\n(d2d (d8d \"ItemsAlignment\" ))\n+(d2d (d9d \"Layout\" ))\n(d2d (d10d \"Text\" ))\n+(d2d (d10d \"IsEnabled\" ))\n(d2d (d1d \"Layout\" ))\n(d4d (d5d \"Add\" (d4d )))\n(d4d (d1d \"Add\" (d1d )))\n(d9d (d3d zz \"MatchParent\" ))\n(d9d (d3d zz \"MatchParent\" ))\n(d9d (d3d zz \"MatchParent\" ))\n+(d6d (d8d d-1d ))\n(d6d (d9d d-1d ))\n(d6d (d1d d-1d ))\n(d9d (d3d zz \"MatchParent\" ))\n(d6d (d10d d-1d ))\n(d6d (d1d d-1d ))\n(d6d (d1d d-1d ))\n-(d23d (a26a \"MainView\" ))\n-(d23d (a19a \"ScrollerView\" ))\n-(d23d (a18a \"Scroller\" ))\n-(d23d (a25a \"ButtonView\" ))\n-(d23d (a23a \"SetAlaramButton\" ))\n-(d23d (a24a \"RemoveAlaramButton\" ))\n+(d23d (a27a \"MainView\" ))\n+(d23d (a20a \"ScrollerView\" ))\n+(d23d (a19a \"Scroller\" ))\n+(d23d (a26a \"ButtonView\" ))\n+(d23d (a24a \"SetAlaramButton\" ))\n+(d23d (a25a \"RemoveAlaramButton\" ))\n(d14d (d0d d0d a1a ))\n(d14d (d0d d1d a2a ))\n(d6d (d11d d-1d ))\n-(d11d (a27a \"White\" ))\n-(d14d (d0d d2d a28a ))\n+(d11d (a28a \"White\" ))\n+(d14d (d0d d2d a29a ))\n(d14d (d10d d13d \"appBar\" ))\n(d14d (d10d d14d \"Alarms\" ))\n-(d11d (a27a \"#00a9bf\" ))\n-(d14d (d10d d2d a29a ))\n+(d11d (a28a \"#00a9bf\" ))\n+(d14d (d10d d2d a30a ))\n(d14d (d9d d0d a3a ))\n(d14d (d9d d1d a4a ))\n(d12d (d13d \"End\" ))\n-(d14d (d9d d7d a30a ))\n+(d14d (d9d d7d a31a ))\n(d12d (d14d \"Center\" ))\n-(d14d (d9d d8d a31a ))\n-(d11d (a27a \"White\" ))\n-(d14d (d9d d9d a32a ))\n+(d14d (d9d d8d a32a ))\n+(d11d (a28a \"White\" ))\n+(d14d (d9d d9d a33a ))\n(d14d (d9d d10d j12j ))\n(d14d (d9d d11d \"Alarms\" ))\n(d14d (d5d d5d \"width\" ))\n(d14d (d9d d12d a8a ))\n(d14d (d10d d15d a9a ))\n(d14d (d0d d3d a10a ))\n-(d14d (d26d d0d a11a ))\n-(d14d (d26d d1d a12a ))\n+(d14d (d27d d0d a11a ))\n+(d14d (d27d d1d a12a ))\n+(d12d (d15d \"Column\" ))\n+(d14d (d13d d16d a34a ))\n+(d12d (d16d \"SpaceAround\" ))\n+(d14d (d13d d17d a35a ))\n+(d12d (d17d \"Center\" ))\n+(d14d (d13d d18d a36a ))\n+(d14d (d27d d22d a13a ))\n+(d14d (d20d d0d a14a ))\n+(d14d (d20d d1d a15a ))\n+(d14d (d19d d0d a16a ))\n+(d14d (d19d d1d a17a ))\n(d12d (d15d \"Column\" ))\n-(d14d (d13d d16d a33a ))\n+(d14d (d18d d16d a37a ))\n(d12d (d16d \"SpaceAround\" ))\n-(d14d (d13d d17d a34a ))\n+(d14d (d18d d17d a38a ))\n(d12d (d17d \"Center\" ))\n-(d14d (d13d d18d a35a ))\n-(d14d (d26d d20d a13a ))\n-(d14d (d19d d0d a14a ))\n-(d14d (d19d d1d a15a ))\n-(d14d (d18d d0d a16a ))\n-(d14d (d18d d1d a17a ))\n-(d19d (d19d a18a d1d ))\n-(d19d (d26d a19a d1d ))\n-(d14d (d25d d0d a20a ))\n-(d14d (d25d d1d a21a ))\n+(d14d (d18d d18d a39a ))\n+(d14d (d19d d19d a18a ))\n+(d19d (d20d a19a d1d ))\n+(d19d (d27d a20a d1d ))\n+(d14d (d26d d0d a21a ))\n+(d14d (d26d d1d a22a ))\n(d12d (d15d \"Row\" ))\n-(d14d (d22d d16d a36a ))\n+(d14d (d23d d16d a40a ))\n(d12d (d16d \"SpaceAround\" ))\n-(d14d (d22d d17d a37a ))\n+(d14d (d23d d17d a41a ))\n(d12d (d17d \"Center\" ))\n-(d14d (d22d d18d a38a ))\n-(d14d (d25d d20d a22a ))\n-(d14d (d23d d19d \"Set the alarm\" ))\n-(d19d (d25d a23a d1d ))\n-(d14d (d24d d19d \"Remove the alarm\" ))\n-(d19d (d25d a24a d1d ))\n+(d14d (d23d d18d a42a ))\n+(d14d (d26d d22d a23a ))\n+(d14d (d24d d20d \"Set the alarm\" ))\n+(d19d (d26d a24a d1d ))\n+(d14d (d25d d20d \"Remove the alarm\" ))\n+(d14d (d25d d21d mFalsem ))\n(d19d (d26d a25a d1d ))\n-(d14d (d0d d4d a26a ))\n+(d19d (d27d a26a d1d ))\n+(d14d (d0d d4d a27a ))\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Alarms/Alarms/res/layout/MainPage.xaml",
"new_path": "Mobile/NUI/Alarms/Alarms/res/layout/MainPage.xaml",
"diff": "WidthSpecification=\"{Static LayoutParamPolicies.MatchParent}\"\nHeightSpecification=\"{Static LayoutParamPolicies.MatchParent}\">\n+ <Scrollable.Layout>\n+ <FlexLayout Direction=\"Column\" Justification=\"SpaceAround\" ItemsAlignment=\"Center\"/>\n+ </Scrollable.Layout>\n+\n</ScrollableBase>\n</View>\n<Button\nx:Name=\"RemoveAlaramButton\"\n- Text=\"Remove the alarm\"/>\n+ Text=\"Remove the alarm\"\n+ IsEnabled=\"False\"/>\n</View>\n</View>\n"
},
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Alarms/Alarms/tizen-manifest.xml",
"new_path": "Mobile/NUI/Alarms/Alarms/tizen-manifest.xml",
"diff": "<privilege>http://tizen.org/privilege/alarm.set</privilege>\n<privilege>http://tizen.org/privilege/appmanager.launch</privilege>\n<privilege>http://tizen.org/privilege/packagemanager.info</privilege>\n+ <privilege>http://tizen.org/privilege/notification</privilege>\n</privileges>\n<dependencies />\n<provides-appdefined-privileges />\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][NUI] Alarm Application Sample
|
594,285 |
25.01.2022 12:17:22
| -3,600 |
47d96910f10494984c0f04cdfab69322e2a87de4
|
[Mobile][NUI][Alarms] Adding README.md file
|
[
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/Alarms/README.md",
"diff": "+# Alarms\n+Alarms is a sample application that demonstrates how to schedule start of application at specified date and time or after delay using [Tizen Applications API](https://developer.tizen.org/dev-guide/csapi/api/Tizen.Applications.html).\n+\n+\n+\n+\n+\n+### Features\n+* Creating alarm to be triggered after some delay\n+* Creating alarm to be triggered at specified date in the future\n+* Removing alarms\n+* Triggering alarms by launching specified applications\n+\n+### Prerequisites\n+* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n+* [Visual Studio Tools for Tizen](https://developer.tizen.org/development/tizen-.net-preview/visual-studio-tools-tizen) - Visual Studio plugin for Tizen .NET application development\n+\n+### Author\n+* Dariusz Paziewski\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Alarms/Screenshots/alarm_list.png",
"new_path": "Mobile/NUI/Alarms/Screenshots/alarm_list.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Alarms/Screenshots/alarm_list.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Alarms/Screenshots/list_of_apps_to_be_chosen.png",
"new_path": "Mobile/NUI/Alarms/Screenshots/list_of_apps_to_be_chosen.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Alarms/Screenshots/list_of_apps_to_be_chosen.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Alarms/Screenshots/removing_alarms.png",
"new_path": "Mobile/NUI/Alarms/Screenshots/removing_alarms.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Alarms/Screenshots/removing_alarms.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][NUI][Alarms] Adding README.md file
|
594,285 |
23.03.2022 13:14:51
| -3,600 |
4fb3b218d41c84abe71080ae27dede57dec892cb
|
[NUI][Mobile] Updateing Tizen NUI version
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/Geofence/Geofence/Geofence.csproj",
"new_path": "Mobile/NUI/Geofence/Geofence/Geofence.csproj",
"diff": "<ItemGroup>\n<PackageReference Include=\"Tizen.NET\" Version=\"9.0.0.16760\" />\n- <PackageReference Include=\"Tizen.NUI.XamlBuild\" Version=\"1.0.32\" />\n+ <PackageReference Include=\"Tizen.NUI.XamlBuild\" Version=\"1.0.34\" />\n</ItemGroup>\n<PropertyGroup>\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][Mobile] Updateing Tizen NUI version
|
594,298 |
24.03.2022 11:44:56
| -32,400 |
2f10e435f5642da480204cce5c281f956c415729
|
[NUI][CheckBox] Replace ItemAlignment to LinearLayout.HorizontalAlignment
Since Button.ItemAlignment uses deprecated LinearLayout.Alignment, it
causes warning.
To resolve the warning, Button.ItemAlignment is replaced to
LinearLayout.HorizontalAlignment.
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"new_path": "Mobile/NUI/CheckBox/NUI_CheckBox/NUI_CheckBox.cs",
"diff": "@@ -116,7 +116,7 @@ namespace NUI_CheckBox\n// Create with properties\nCheckBoxExample = new CheckBox();\nCheckBoxExample.Size = CheckBoxSize;\n- CheckBoxExample.ItemAlignment = LinearLayout.Alignment.Center;\n+ (CheckBoxExample.Layout as LinearLayout).HorizontalAlignment = HorizontalAlignment.Center;\nCheckBoxExample.ParentOrigin = ParentOrigin.Center;\nCheckBoxExample.PositionUsesPivotPoint = true;\nCheckBoxExample.PivotPoint = PivotPoint.Center;\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][CheckBox] Replace ItemAlignment to LinearLayout.HorizontalAlignment
Since Button.ItemAlignment uses deprecated LinearLayout.Alignment, it
causes warning.
To resolve the warning, Button.ItemAlignment is replaced to
LinearLayout.HorizontalAlignment.
|
594,248 |
24.03.2022 10:49:22
| -3,600 |
02abd0c4d614c387ab851a97ab1a19df2672b262
|
[NUI][VideoViewSample] replace deprecated attribs
LinearLayout.Alignment -> LinearLayout.HorizontalAlignment or LinearLayout.VerticalAlignment
|
[
{
"change_type": "MODIFY",
"old_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"new_path": "Mobile/NUI/VideoViewSample/VideoViewSample/VideoViewSample.cs",
"diff": "@@ -87,7 +87,8 @@ namespace VideoViewSample\n//Setup linear layout for components stored in main view.\nLinearLayout mainLayout = new LinearLayout()\n{\n- LinearAlignment = LinearLayout.Alignment.Center,\n+ HorizontalAlignment = HorizontalAlignment.Center,\n+ VerticalAlignment = VerticalAlignment.Center,\nLinearOrientation = LinearLayout.Orientation.Vertical,\nCellPadding = new Size2D(0, 10),\nPadding = new Extents(10, 10, 10, 10),\n@@ -118,7 +119,8 @@ namespace VideoViewSample\n};\nLinearLayout buttonLayout = new LinearLayout()\n{\n- LinearAlignment = LinearLayout.Alignment.Center,\n+ HorizontalAlignment = HorizontalAlignment.Center,\n+ VerticalAlignment = VerticalAlignment.Center,\nLinearOrientation = LinearLayout.Orientation.Vertical,\nCellPadding = new Size2D(0, 10),\n};\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][VideoViewSample] replace deprecated attribs
LinearLayout.Alignment -> LinearLayout.HorizontalAlignment or LinearLayout.VerticalAlignment
|
594,285 |
22.04.2022 13:36:40
| -7,200 |
3f0abbb5bd95e7e24d0ed087a3e495553678338a
|
[Mobile][NUI] Adding README file
|
[
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/Alarms/README.md",
"diff": "+# Alarms\n+Alarms is a sample application that demonstrates how to schedule alarm at specified date and time using [Tizen Applications API](https://developer.tizen.org/dev-guide/csapi/api/Tizen.Applications.html).\n+\n+\n+\n+\n+\n+### Features\n+* Creating alarm to be triggered at specified date in the future\n+* Removing alarms\n+\n+### Prerequisites\n+* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n+* [Visual Studio Tools for Tizen](https://developer.tizen.org/development/tizen-.net-preview/visual-studio-tools-tizen) - Visual Studio plugin for Tizen .NET application development\n+\n+### Author\n+* Bartosz Chrescionko\n\\ No newline at end of file\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Alarms/Screenshots/alarm_list.png",
"new_path": "Mobile/NUI/Alarms/Screenshots/alarm_list.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Alarms/Screenshots/alarm_list.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Alarms/Screenshots/list_of_apps_to_be_chosen.png",
"new_path": "Mobile/NUI/Alarms/Screenshots/list_of_apps_to_be_chosen.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Alarms/Screenshots/list_of_apps_to_be_chosen.png differ\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/Alarms/Screenshots/removing_alarms.png",
"new_path": "Mobile/NUI/Alarms/Screenshots/removing_alarms.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/Alarms/Screenshots/removing_alarms.png differ\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[Mobile][NUI] Adding README file
|
594,295 |
29.08.2022 14:25:43
| -32,400 |
cc8d39bce881ed0e176006b508749f07cbb88bba
|
[NUI][MachineLearningTrain] Add MachineLearningTrain Sample app
Add CIFAR and MNIST
|
[
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/CIFAR/label.dat",
"diff": "+airplane\n+automobile\n+bird\n+cat\n+deer\n+dog\n+frog\n+horse\n+ship\n+truck\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/CIFAR/model.ini",
"diff": "+# Model Section : Model\n+[Model]\n+Type = NeuralNetwork # Model Type : Regression, KNN, NeuralNetwork\n+Learning_rate = 0.0001 # Learning Rate\n+Decay_rate = 0.96 # for the decay_rate for the decayed learning rate\n+Decay_steps = 1000 # decay step for the exponential decayed learning rate\n+Epochs = 1 # Epoch\n+Optimizer = adam # Optimizer : sgd (stochastic gradien decent),\n+ # adam (Adamtive Moment Estimation)\n+loss = cross # Cost(loss) function : mse (mean squared error)\n+ # cross (cross entropy)\n+batch_size = 3\n+save_path = \"model.bin\" # model path to save / read\n+beta1 = 0.9 # beta 1 for adam\n+beta2 = 0.9999 # beta 2 for adam\n+epsilon = 1e-7 # epsilon for adam\n+\n+[DataSet]\n+BufferSize=3\n+TrainData=\"trainingSet.dat\"\n+ValidData=\"trainingSet.dat\"\n+\n+# Layer Section : Name\n+[inputlayer]\n+Type = input\n+Input_Shape = 1:1:62720 # Input Layer Dimensions\n+Normalization = true\n+\n+[outputlayer]\n+Type = fully_connected\n+Unit = 10 # Output Layer Dimension ( = Weight Width )\n+bias_initializer = zeros\n+Activation = sigmoid # activation : sigmoid, softmax\n+Weight_Regularizer = l2norm\n+Weight_Regularizer_Constant = 0.005\n+input_layers=inputlayer\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/CIFAR/trainingSet.dat",
"new_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/CIFAR/trainingSet.dat",
"diff": "Binary files /dev/null and b/Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/CIFAR/trainingSet.dat differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/MNIST/mnist.ini",
"diff": "+# Network Section : Network\n+\n+[Model]\n+Type = NeuralNetwork # Network Type : Regression, KNN, NeuralNetwork\n+Epochs = 1500 # Epochs\n+Loss = cross # Loss function : mse (mean squared error)\n+ # cross ( for cross entropy )\n+# Save_Path = \"mnist_model.bin\" # model path to save / read\n+batch_size = 32 # batch size\n+\n+[Optimizer]\n+Type = adam\n+beta1 = 0.9 # beta 1 for adam\n+beta2 = 0.999 # beta 2 for adam\n+epsilon = 1e-7 # epsilon for adam\n+\n+[LearningRateScheduler]\n+type=constant\n+Learning_rate = 1e-4 # Learning Rate\n+\n+# Layer Section : Name\n+[inputlayer]\n+Type = input\n+Input_Shape = 1:28:28\n+\n+# Layer Section : Name\n+[conv2d_c1_layer]\n+Type = conv2d\n+input_layers = inputlayer\n+kernel_size = 5,5\n+bias_initializer=zeros\n+Activation=sigmoid\n+weight_initializer = xavier_uniform\n+filters = 6\n+stride = 1,1\n+padding = 0,0\n+\n+[pooling2d_p1]\n+Type=pooling2d\n+input_layers = conv2d_c1_layer\n+pool_size = 2,2\n+stride =2,2\n+padding = 0,0\n+pooling = average\n+\n+[conv2d_c2_layer]\n+Type = conv2d\n+input_layers = pooling2d_p1\n+kernel_size = 5,5\n+bias_initializer=zeros\n+Activation=sigmoid\n+weight_initializer = xavier_uniform\n+filters = 12\n+stride = 1,1\n+padding = 0,0\n+\n+[pooling2d_p2]\n+Type=pooling2d\n+input_layers = conv2d_c2_layer\n+pool_size = 2,2\n+stride =2,2\n+padding = 0,0\n+pooling = average\n+\n+[flatten]\n+Type=flatten\n+input_layers = pooling2d_p2\n+\n+[outputlayer]\n+Type = fully_connected\n+input_layers=flatten\n+Unit = 10 # Output Layer Dimension ( = Weight Width )\n+weight_initializer = xavier_uniform\n+bias_initializer = zeros\n+Activation = softmax # activation : sigmoid, softmax\n+\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/MNIST/mnist_trainingSet.dat",
"new_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/MNIST/mnist_trainingSet.dat",
"diff": "Binary files /dev/null and b/Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/MNIST/mnist_trainingSet.dat differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/res/MNIST/mnist_valid.ini",
"diff": "+# Network Section : Network\n+[Model]\n+Type = NeuralNetwork # Network Type : Regression, KNN, NeuralNetwork\n+Epochs = 100 # Epochs\n+Loss = cross # Loss function : mse (mean squared error)\n+ # cross ( for cross entropy )\n+Save_Path = \"model.bin\" # model path to save / read\n+batch_size = 32 # batch size\n+\n+[Optimizer]\n+Type = adam\n+Learning_rate = 1e-4 # Learning Rate\n+beta1 = 0.9 # beta 1 for adam\n+beta2 = 0.999 # beta 2 for adam\n+epsilon = 1e-7 # epsilon for adam\n+\n+# Layer Section : Name\n+[inputlayer]\n+Type = input\n+Input_Shape = 1:28:28\n+\n+#Layer Section : Name\n+[conv2d_c1_layer]\n+Type = conv2d\n+input_layers = inputlayer\n+kernel_size = 5,5\n+bias_initializer = zeros\n+Activation=sigmoid\n+weight_initializer = xavier_uniform\n+filters = 6\n+stride = 1,1\n+padding = 0,0\n+\n+[pooling2d_p1]\n+Type=pooling2d\n+input_layers = conv2d_c1_layer\n+pool_size = 2,2\n+stride =2,2\n+padding = 0,0\n+pooling = average\n+\n+[conv2d_c2_layer]\n+Type = conv2d\n+input_layers = pooling2d_p1\n+kernel_size = 5,5\n+bias_initializer = zeros\n+Activation=sigmoid\n+weight_initializer = xavier_uniform\n+filters = 12\n+stride = 1,1\n+padding = 0,0\n+\n+[pooling2d_p2]\n+Type=pooling2d\n+input_layers = conv2d_c2_layer\n+pool_size = 2,2\n+stride =2,2\n+padding = 0,0\n+pooling = average\n+\n+[flatten]\n+Type=flatten\n+input_layers = pooling2d_p2\n+\n+[outputlayer]\n+Type = fully_connected\n+input_layers = flatten\n+Unit = 10 # Output Layer Dimension ( = Weight Width )\n+weight_initializer = xavier_uniform\n+bias_initializer = zeros\n+Activation = softmax # activation : sigmoid, softmax\n"
},
{
"change_type": "ADD",
"old_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/shared/res/MachineLearningTrainSample.png",
"new_path": "Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/shared/res/MachineLearningTrainSample.png",
"diff": "Binary files /dev/null and b/Mobile/NUI/MachineLearningTrainSample/MachineLearningTrainSample/shared/res/MachineLearningTrainSample.png differ\n"
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "Mobile/NUI/MachineLearningTrainSample/README.md",
"diff": "+# MachineLearningTrainSample\n+This sample application implemented CIFAR and MNIST using Tizen.MachineLearning.Train.\n+It you press each button, you can check the operation on the console.\n+\n+### Prerequisites\n+* [Visual Studio](https://www.visualstudio.com/) - Buildtool, IDE\n+* [Visual Studio Tools for Tizen](https://docs.tizen.org/application/vstools/install) - Visual Studio plugin for Tizen .NET application development\n+\n+This sample works for Tizen.NET.API10 or higher.\n"
}
] |
C#
|
Apache License 2.0
|
samsung/tizen-csharp-samples
|
[NUI][MachineLearningTrain] Add MachineLearningTrain Sample app
- Add CIFAR and MNIST
Signed-off-by: hyunil park <hyunil46.park@samsung.com>
|
734,003 |
15.10.2018 22:21:24
| 25,200 |
eb783ddc912266f2106fee4684b24f178d7d4d06
|
Update history for 1.8.0 release
|
[
{
"change_type": "MODIFY",
"old_path": "CHANGES.md",
"new_path": "CHANGES.md",
"diff": "+# 1.8.0\n+- [All Changes](https://github.com/Asenar/less.php/compare/v1.7.0.13...v1.8.0)\n+- Wikimedia fork\n+- Supports up to PHP 7.3\n+- No longer tested against PHP 5, though it's still remains allowed in `composer.json` for HHVM compatibility\n+- Switched to [semantic versioning](https://semver.org/), hence version numbers now use 3 digits\n+\n# 1.7.0.13\n- [All Changes](https://github.com/Asenar/less.php/compare/v1.7.0.12...v1.7.0.13)\n- Fix composer.json (PSR-4 was invalid)\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Update history for 1.8.0 release
|
734,017 |
15.01.2019 10:35:12
| -3,600 |
60bfc83f3113ab595c193804b78c494eabbeb3d7
|
Fix strpos needle conversion in PHP > 7.3.0
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/SourceMap/Generator.php",
"new_path": "lib/Less/SourceMap/Generator.php",
"diff": "@@ -169,7 +169,7 @@ class Less_SourceMap_Generator extends Less_Configurable {\n$basePath = $this->getOption('sourceMapBasepath');\n// \"Trim\" the 'sourceMapBasepath' from the output filename.\n- if (strpos($filename, $basePath) === 0) {\n+ if (is_string($basePath) && strpos($filename, $basePath) === 0) {\n$filename = substr($filename, strlen($basePath));\n}\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Fix strpos needle conversion in PHP > 7.3.0
|
734,003 |
15.01.2019 19:08:47
| 28,800 |
686d813507fcf8b76045919a38233fcf1323002d
|
Start release notes for 1.8.1
|
[
{
"change_type": "MODIFY",
"old_path": "CHANGES.md",
"new_path": "CHANGES.md",
"diff": "+# 1.8.1\n+- [All Changes](https://github.com/Asenar/less.php/compare/v1.8.0...v1.8.1)\n+- Another PHP 7.3 compatibility tweak\n+\n# 1.8.0\n- [All Changes](https://github.com/Asenar/less.php/compare/v1.7.0.13...v1.8.0)\n- Wikimedia fork\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Start release notes for 1.8.1
|
734,023 |
02.04.2019 12:52:12
| 21,600 |
46db15b83f5488825a0e1015b7c364cd75b56225
|
Update Version.php with the current release ID
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Version.php",
"new_path": "lib/Less/Version.php",
"diff": "*/\nclass Less_Version{\n- const version = '1.7.0.13'; // The current build number of less.php\n+ const version = '1.8.1'; // The current build number of less.php\nconst less_version = '2.5.3'; // The less.js version that this build should be compatible with\nconst cache_version = '253'; // The parser cache version\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Update Version.php with the current release ID
|
734,003 |
13.08.2019 12:32:42
| 25,200 |
bfc2e8546c6dd8257f1fb61ed3840f28e7cfc21c
|
build: Make Travis CI pass
* Allow several alternative PHPUnit versions to satisfy all possible PHP
* Allow failures on PHP nightlies
Closes
|
[
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "@@ -8,6 +8,10 @@ php:\n- hhvm-3.18\n- nightly\n+matrix:\n+ allow_failures:\n+ - php: nightly\n+\nsudo: false\ninstall:\n"
},
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"PHP\" : \">=5.3\"\n},\n\"require-dev\": {\n- \"phpunit/phpunit\": \"~4.8.24\"\n+ \"phpunit/phpunit\": \"~4.8.36 || 6.5.14 || 7.5.14\"\n},\n\"scripts\": {\n\"test\": [\n"
},
{
"change_type": "MODIFY",
"old_path": "test/phpunit/bootstrap.php",
"new_path": "test/phpunit/bootstrap.php",
"diff": "<?php\n+if (!class_exists(PHPUnit_Framework_TestCase::class)) {\n+ class_alias(\\PHPUnit\\Framework\\TestCase::class, PHPUnit_Framework_TestCase::class);\n+}\nclass phpunit_bootstrap extends PHPUnit_Framework_TestCase{\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
build: Make Travis CI pass
* Allow several alternative PHPUnit versions to satisfy all possible PHP
* Allow failures on PHP nightlies
Closes #12.
|
734,014 |
25.10.2019 18:18:12
| -7,200 |
6fa33b5a7fa020cac847d216322c658c537777f0
|
Require PHP 7.2.9+, up from 5.3+
* Require PHP 7.2.9+
* Drop PHPUnit 4.x use
* Drop PHPUnit 6.x use
Closes
|
[
{
"change_type": "MODIFY",
"old_path": ".travis.yml",
"new_path": ".travis.yml",
"diff": "language: php\nphp:\n- - 7.3\n- 7.2\n- - 7.1\n- - 7\n- - hhvm-3.18\n+ - 7.3\n- 7.4snapshot\n- nightly\n"
},
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "}\n],\n\"require\": {\n- \"PHP\" : \">=5.3\"\n+ \"PHP\" : \">=7.2.9\"\n},\n\"require-dev\": {\n- \"phpunit/phpunit\": \"~4.8.36 || 6.5.14 || 7.5.14\"\n+ \"phpunit/phpunit\": \"7.5.14\"\n},\n\"scripts\": {\n\"test\": [\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Require PHP 7.2.9+, up from 5.3+
* Require PHP 7.2.9+
* Drop PHPUnit 4.x use
* Drop PHPUnit 6.x use
Closes #17.
|
734,014 |
28.10.2019 16:10:39
| 0 |
e4c117c9cd7c413f09e455ed3ba4ef7fb40b4a03
|
build: Install GitHub Actions to replace Travis
Closes
|
[
{
"change_type": "ADD",
"old_path": null,
"new_path": ".github/workflows/php.yml",
"diff": "+name: PHP Composer\n+\n+on: [push,pull_request]\n+\n+jobs:\n+ build:\n+ name: Test PHP ${{ matrix.php-version }}\n+\n+ strategy:\n+ matrix:\n+ php-version: ['7.2', '7.3', '7.4']\n+\n+ runs-on: ubuntu-latest\n+\n+ steps:\n+ - name: Checkout\n+ uses: actions/checkout@v1\n+\n+ - name: Setup PHP, with composer and extensions\n+ uses: shivammathur/setup-php@master\n+ with:\n+ php-version: ${{ matrix.php-version }}\n+ extension-csv: dom, mbstring\n+ # coverage: xdebug\n+\n+ - name: Validate composer.json and composer.lock\n+ run: composer validate\n+\n+ - name: Install dependencies\n+ run: composer install --prefer-dist --no-progress --no-suggest\n+\n+ - name: Run test suite\n+ run: composer run-script test\n"
},
{
"change_type": "DELETE",
"old_path": ".travis.yml",
"new_path": null,
"diff": "-language: php\n-\n-php:\n- - 7.2\n- - 7.3\n- - 7.4snapshot\n- - nightly\n-\n-matrix:\n- allow_failures:\n- - php: nightly\n-\n-sudo: false\n-\n-install:\n- - travis_retry composer install --no-interaction --prefer-source\n-\n-script:\n- - composer test\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
build: Install GitHub Actions to replace Travis
Closes #18.
|
734,014 |
06.11.2019 12:53:34
| 18,000 |
ba18e492e3d0ee9018d1ad36a6d60a29fb55b6af
|
Fix "all changes" compare link for 1.8.1 to 1.8.2
|
[
{
"change_type": "MODIFY",
"old_path": "CHANGES.md",
"new_path": "CHANGES.md",
"diff": "# 1.8.2\n-- [All Changes](https://github.com/wikimedia/less.php/compare/v1.8.1...1.8.2)\n+- [All Changes](https://github.com/wikimedia/less.php/compare/1.8.1...1.8.2)\n- Require PHP 7.2.9+, up from 5.3+ (James Forrester)\n- Release: Update Version.php with the current release ID (COBadger)\n- Fix access array offset on value of type null (Michele Locati)\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Fix "all changes" compare link for 1.8.1 to 1.8.2
|
734,014 |
06.11.2019 12:58:36
| 28,800 |
7e045117b9e7fdc1481d1dbeec984858a38e839f
|
Version.php: Bump to 1.8.3 in preparation for next release
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Version.php",
"new_path": "lib/Less/Version.php",
"diff": "*/\nclass Less_Version{\n- const version = '1.8.1'; // The current build number of less.php\n+ const version = '1.8.3'; // The current build number of less.php\nconst less_version = '2.5.3'; // The less.js version that this build should be compatible with\nconst cache_version = '253'; // The parser cache version\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Version.php: Bump to 1.8.3 in preparation for next release (#20)
|
734,014 |
04.02.2020 14:36:29
| 28,800 |
c1affb4d4472c9e100fc80bf456b4334862ace3c
|
Tag v2.0.0
|
[
{
"change_type": "MODIFY",
"old_path": "CHANGES.md",
"new_path": "CHANGES.md",
"diff": "-# 1.8.3\n-- [All Changes](https://github.com/wikimedia/less.php/compare/1.8.2...1.8.3)\n-- Allow installation with PHP 7.1 (Franz Liedke)\n+# 2.0.0\n+- [All Changes](https://github.com/wikimedia/less.php/compare/1.8.2...2.0.0)\n+- Relax PHP requirement down to 7.1, from 7.2.9 (Franz Liedke)\n+- Reflect recent breaking changes properly with the semantic versioning (James Forrester)\n# 1.8.2\n- [All Changes](https://github.com/wikimedia/less.php/compare/1.8.1...1.8.2)\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Tag v2.0.0
Signed-off-by: James D. Forrester <jforrester@wikimedia.org>
|
734,012 |
03.05.2021 15:06:03
| 25,200 |
58f87d3773300e10df68d7ae7e2717f1690d6176
|
docs: Remove unneeded blank lines from doc comment blocks
At the end of the block, so not being used to separate anything
Closes
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Cache.php",
"new_path": "lib/Less/Cache.php",
"diff": "@@ -7,7 +7,6 @@ require_once dirname( __FILE__ ).'/Version.php';\n*\n* @package Less\n* @subpackage cache\n- *\n*/\nclass Less_Cache {\n@@ -214,7 +213,6 @@ class Less_Cache {\n/**\n* Delete unused less.php files\n- *\n*/\npublic static function CleanCache() {\nstatic $clean = false;\n@@ -275,7 +273,6 @@ class Less_Cache {\n/**\n* Get the list of less files and generated css file from a list file\n- *\n*/\nstatic function ListFiles( $list_file, &$list, &$css_file_name ) {\n$list = explode( \"\\n\", file_get_contents( $list_file ) );\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Configurable.php",
"new_path": "lib/Less/Configurable.php",
"diff": "@@ -30,7 +30,6 @@ abstract class Less_Configurable {\n*\n* @throws Exception\n* @param array|object $options\n- *\n*/\npublic function setOptions( $options ) {\n$options = array_intersect_key( $options, $this->defaultOptions );\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Environment.php",
"new_path": "lib/Less/Environment.php",
"diff": "@@ -110,7 +110,6 @@ class Less_Environment {\n* Does not remove leading \"../\"\n* @param string path or url\n* @return string Canonicalized path\n- *\n*/\npublic static function normalizePath( $path ) {\n$segments = explode( '/', $path );\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Exception/Chunk.php",
"new_path": "lib/Less/Exception/Chunk.php",
"diff": "@@ -40,7 +40,6 @@ class Less_Exception_Chunk extends Less_Exception_Parser {\n/**\n* See less.js chunks()\n* We don't actually need the chunks\n- *\n*/\nprotected function Chunks() {\n$level = 0;\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Parser.php",
"new_path": "lib/Less/Parser.php",
"diff": "@@ -7,7 +7,6 @@ require_once dirname( __FILE__ ).'/Cache.php';\n*\n* @package Less\n* @subpackage parser\n- *\n*/\nclass Less_Parser {\n@@ -94,7 +93,6 @@ class Less_Parser {\n/**\n* Reset the parser state completely\n- *\n*/\npublic function Reset( $options = null ) {\n$this->rules = array();\n@@ -117,7 +115,6 @@ class Less_Parser {\n/**\n* Set one or more compiler options\n* options: import_dirs, cache_dir, cache_method\n- *\n*/\npublic function SetOptions( $options ) {\nforeach ( $options as $option => $value ) {\n@@ -127,7 +124,6 @@ class Less_Parser {\n/**\n* Set one compiler option\n- *\n*/\npublic function SetOption( $option, $value ) {\nswitch ( $option ) {\n@@ -357,7 +353,6 @@ class Less_Parser {\n/**\n* Run pre-compile visitors\n- *\n*/\nprivate function PreVisitors( $root ) {\nif ( Less_Parser::$options['plugins'] ) {\n@@ -371,7 +366,6 @@ class Less_Parser {\n/**\n* Run post-compile visitors\n- *\n*/\nprivate function PostVisitors( $evaldRoot ) {\n$visitors = array();\n@@ -530,7 +524,6 @@ class Less_Parser {\n/**\n* @deprecated 1.5.1.2\n- *\n*/\npublic function SetCacheDir( $dir ) {\nif ( !file_exists( $dir ) ) {\n@@ -674,7 +667,6 @@ class Less_Parser {\n/**\n* Set up the input buffer\n- *\n*/\npublic function SetInput( $file_path ) {\nif ( $file_path ) {\n@@ -696,7 +688,6 @@ class Less_Parser {\n/**\n* Free up some memory\n- *\n*/\npublic function UnsetInput() {\nunset( $this->input, $this->pos, $this->input_len, $this->furthest );\n@@ -1909,7 +1900,6 @@ class Less_Parser {\n/**\n* Custom less.php parse function for finding simple name-value css pairs\n* ex: width:100px;\n- *\n*/\nprivate function parseNameValue() {\n$index = $this->pos;\n@@ -2411,7 +2401,6 @@ class Less_Parser {\n/**\n* An operand is anything that can be part of an operation,\n* such as a Color, or a Variable\n- *\n*/\nprivate function parseOperand() {\n$negate = false;\n@@ -2547,7 +2536,6 @@ class Less_Parser {\n/**\n* Round numbers similarly to javascript\n* eg: 1.499999 to 1 instead of 2\n- *\n*/\npublic static function round( $i, $precision = 0 ) {\n$precision = pow( 10, $precision );\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Tree/Ruleset.php",
"new_path": "lib/Less/Tree/Ruleset.php",
"diff": "@@ -184,7 +184,6 @@ class Less_Tree_Ruleset extends Less_Tree {\n/**\n* Compile the selectors and create a new ruleset object for the compile() method\n- *\n*/\nprivate function PrepareRuleset( $env ) {\n$hasOnePassingSelector = false;\n"
},
{
"change_type": "MODIFY",
"old_path": "test/phpunit/FixturesTest.php",
"new_path": "test/phpunit/FixturesTest.php",
"diff": "@@ -4,7 +4,6 @@ class phpunit_FixturesTest extends phpunit_bootstrap {\n/**\n* Test the contents of the files in /test/Fixtures/lessjs/expected\n- *\n*/\nfunction testLessJs() {\necho \"\\nBegin Tests\";\n@@ -33,7 +32,6 @@ class phpunit_FixturesTest extends phpunit_bootstrap {\n* Change a css file name to a less file name\n*\n* eg: /Fixtures/lessjs/css/filename.css -> /Fixtures/lessjs/less/filename.less\n- *\n*/\nfunction TranslateFile( $file_css, $dir = 'less', $type = 'less' ) {\n$filename = basename( $file_css );\n@@ -44,7 +42,6 @@ class phpunit_FixturesTest extends phpunit_bootstrap {\n/**\n* Compare the parser results with the expected css\n- *\n*/\nfunction CompareFile( $expected_file ) {\n$less_file = $this->TranslateFile( $expected_file );\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
docs: Remove unneeded blank lines from doc comment blocks
At the end of the block, so not being used to separate anything
Closes https://github.com/wikimedia/less.php/pull/60.
|
734,018 |
27.11.2020 15:14:57
| -3,600 |
aed782b95419991d4e54e154cedcd28f83ea2322
|
Add support for "Url" type to `Parser::getVariables()`
Closes
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Parser.php",
"new_path": "lib/Less/Parser.php",
"diff": "@@ -301,6 +301,10 @@ class Less_Parser {\nreturn $this->findVarByName( $var->name );\ncase 'Keyword':\nreturn $var->value;\n+ case 'Url':\n+ // Based on Less_Tree_Url::genCSS()\n+ // Recurse to serialize the Less_Tree_Quoted value\n+ return 'url(' . $this->getVariableValue( $var->value ) . ')';\ncase 'Rule':\nreturn $this->getVariableValue( $var->value );\ncase 'Value':\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Add support for "Url" type to `Parser::getVariables()`
Closes https://github.com/wikimedia/less.php/pull/51.
|
734,012 |
09.08.2021 16:21:04
| 25,200 |
91c64a233fa309b5d6805f644dc63bb666e5546b
|
Parser: Deduplicate internal NewObj* methods
Make use of the splat (`...`) operator, available since PHP 5.6 to instantiate classes with a variable
number of parameters.
Though the old NewObj0() and NewObj1() did not use the ObjCache() helper method to determine their
cache strings, the results should be the same.
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Parser.php",
"new_path": "lib/Less/Parser.php",
"diff": "@@ -968,13 +968,13 @@ class Less_Parser {\nif ( $this->input[$this->pos + 1] === '/' ) {\n$match = $this->MatchReg( '/\\\\G\\/\\/.*/' );\n- return $this->NewObj4( 'Less_Tree_Comment', array( $match[0], true, $this->pos, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Comment', array( $match[0], true, $this->pos, $this->env->currentFileInfo ) );\n}\n// $comment = $this->MatchReg('/\\\\G\\/\\*(?:[^*]|\\*+[^\\/*])*\\*+\\/\\n?/');\n$comment = $this->MatchReg( '/\\\\G\\/\\*(?s).*?\\*+\\/\\n?/' );// not the same as less.js to prevent fatal errors\nif ( $comment ) {\n- return $this->NewObj4( 'Less_Tree_Comment', array( $comment[0], false, $this->pos, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Comment', array( $comment[0], false, $this->pos, $this->env->currentFileInfo ) );\n}\n}\n@@ -1023,7 +1023,7 @@ class Less_Parser {\n}\n$quoted = $char.$matched.$char;\n- return $this->NewObj5( 'Less_Tree_Quoted', array( $quoted, $matched, $e, $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Quoted', array( $quoted, $matched, $e, $index, $this->env->currentFileInfo ) );\n}\n/**\n@@ -1076,7 +1076,7 @@ class Less_Parser {\nif ( $color ) {\nreturn $color;\n}\n- return $this->NewObj1( 'Less_Tree_Keyword', $k );\n+ return $this->NewObj( 'Less_Tree_Keyword', [ $k ] );\n}\n}\n@@ -1086,11 +1086,11 @@ class Less_Parser {\nif ( Less_Colors::hasOwnProperty( $keyword ) ) {\n// detect named color\n- return $this->NewObj1( 'Less_Tree_Color', substr( Less_Colors::color( $keyword ), 1 ) );\n+ return $this->NewObj( 'Less_Tree_Color', [ substr( Less_Colors::color( $keyword ), 1 ) ] );\n}\nif ( $keyword === 'transparent' ) {\n- return $this->NewObj3( 'Less_Tree_Color', array( array( 0, 0, 0 ), 0, true ) );\n+ return $this->NewObj( 'Less_Tree_Color', array( array( 0, 0, 0 ), 0, true ) );\n}\n}\n@@ -1135,7 +1135,7 @@ class Less_Parser {\n}\nif ( $name ) {\n- return $this->NewObj4( 'Less_Tree_Call', array( $name, $args, $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Call', array( $name, $args, $index, $this->env->currentFileInfo ) );\n}\n}\n@@ -1181,7 +1181,7 @@ class Less_Parser {\n$value = $this->parseEntity();\nif ( $value ) {\n- return $this->NewObj2( 'Less_Tree_Assignment', array( $key[0], $value ) );\n+ return $this->NewObj( 'Less_Tree_Assignment', array( $key[0], $value ) );\n}\n}\n@@ -1205,10 +1205,10 @@ class Less_Parser {\n$this->expectChar( ')' );\nif ( isset( $value->value ) || $value instanceof Less_Tree_Variable ) {\n- return $this->NewObj2( 'Less_Tree_Url', array( $value, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Url', array( $value, $this->env->currentFileInfo ) );\n}\n- return $this->NewObj2( 'Less_Tree_Url', array( $this->NewObj1( 'Less_Tree_Anonymous', $value ), $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Url', array( $this->NewObj( 'Less_Tree_Anonymous', [ $value ] ), $this->env->currentFileInfo ) );\n}\n//\n@@ -1222,7 +1222,7 @@ class Less_Parser {\nprivate function parseEntitiesVariable() {\n$index = $this->pos;\nif ( $this->PeekChar( '@' ) && ( $name = $this->MatchReg( '/\\\\G@@?[\\w-]+/' ) ) ) {\n- return $this->NewObj3( 'Less_Tree_Variable', array( $name[0], $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Variable', array( $name[0], $index, $this->env->currentFileInfo ) );\n}\n}\n@@ -1231,7 +1231,7 @@ class Less_Parser {\n$index = $this->pos;\nif ( $this->input_len > ( $this->pos + 1 ) && $this->input[$this->pos] === '@' && ( $curly = $this->MatchReg( '/\\\\G@\\{([\\w-]+)\\}/' ) ) ) {\n- return $this->NewObj3( 'Less_Tree_Variable', array( '@'.$curly[1], $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Variable', array( '@'.$curly[1], $index, $this->env->currentFileInfo ) );\n}\n}\n@@ -1244,7 +1244,7 @@ class Less_Parser {\n//\nprivate function parseEntitiesColor() {\nif ( $this->PeekChar( '#' ) && ( $rgb = $this->MatchReg( '/\\\\G#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/' ) ) ) {\n- return $this->NewObj1( 'Less_Tree_Color', $rgb[1] );\n+ return $this->NewObj( 'Less_Tree_Color', [ $rgb[1] ] );\n}\n}\n@@ -1265,9 +1265,9 @@ class Less_Parser {\nif ( $value ) {\nif ( isset( $value[2] ) ) {\n- return $this->NewObj2( 'Less_Tree_Dimension', array( $value[1],$value[2] ) );\n+ return $this->NewObj( 'Less_Tree_Dimension', array( $value[1],$value[2] ) );\n}\n- return $this->NewObj1( 'Less_Tree_Dimension', $value[1] );\n+ return $this->NewObj( 'Less_Tree_Dimension', [ $value[1] ] );\n}\n}\n@@ -1279,7 +1279,7 @@ class Less_Parser {\nfunction parseUnicodeDescriptor() {\n$ud = $this->MatchReg( '/\\\\G(U\\+[0-9a-fA-F?]+)(\\-[0-9a-fA-F?]+)?/' );\nif ( $ud ) {\n- return $this->NewObj1( 'Less_Tree_UnicodeDescriptor', $ud[0] );\n+ return $this->NewObj( 'Less_Tree_UnicodeDescriptor', [ $ud[0] ] );\n}\n}\n@@ -1303,7 +1303,7 @@ class Less_Parser {\n}\n$str = $this->MatchReg( '/\\\\G`([^`]*)`/' );\nif ( $str ) {\n- return $this->NewObj3( 'Less_Tree_Javascript', array( $str[1], $this->pos, $e ) );\n+ return $this->NewObj( 'Less_Tree_Javascript', array( $str[1], $this->pos, $e ) );\n}\n}\n@@ -1325,7 +1325,7 @@ class Less_Parser {\n//\nprivate function parseRulesetCall() {\nif ( $this->input[$this->pos] === '@' && ( $name = $this->MatchReg( '/\\\\G(@[\\w-]+)\\s*\\(\\s*\\)\\s*;/' ) ) ) {\n- return $this->NewObj1( 'Less_Tree_RulesetCall', $name[1] );\n+ return $this->NewObj( 'Less_Tree_RulesetCall', [ $name[1] ] );\n}\n}\n@@ -1356,7 +1356,7 @@ class Less_Parser {\n$option = $option[1];\n}\n- $extendList[] = $this->NewObj3( 'Less_Tree_Extend', array( $this->NewObj1( 'Less_Tree_Selector', $elements ), $option, $index ) );\n+ $extendList[] = $this->NewObj( 'Less_Tree_Extend', array( $this->NewObj( 'Less_Tree_Selector', [ $elements ] ), $option, $index ) );\n}while ( $this->MatchChar( \",\" ) );\n@@ -1405,7 +1405,7 @@ class Less_Parser {\nif ( $this->parseEnd() ) {\n$this->forget();\n- return $this->NewObj5( 'Less_Tree_Mixin_Call', array( $elements, $args, $index, $this->env->currentFileInfo, $important ) );\n+ return $this->NewObj( 'Less_Tree_Mixin_Call', array( $elements, $args, $index, $this->env->currentFileInfo, $important ) );\n}\n}\n@@ -1422,7 +1422,7 @@ class Less_Parser {\nif ( !$e ) {\nbreak;\n}\n- $elements[] = $this->NewObj4( 'Less_Tree_Element', array( $c, $e[0], $elemIndex, $this->env->currentFileInfo ) );\n+ $elements[] = $this->NewObj( 'Less_Tree_Element', array( $c, $e[0], $elemIndex, $this->env->currentFileInfo ) );\n$c = $this->MatchChar( '>' );\n}\n@@ -1552,7 +1552,7 @@ class Less_Parser {\n$isSemiColonSeperated = true;\nif ( count( $expressions ) > 1 ) {\n- $value = $this->NewObj1( 'Less_Tree_Value', $expressions );\n+ $value = $this->NewObj( 'Less_Tree_Value', [ $expressions ] );\n}\n$argsSemiColon[] = array( 'name' => $name, 'value' => $value );\n@@ -1625,7 +1625,7 @@ class Less_Parser {\nif ( is_array( $ruleset ) ) {\n$this->forget();\n- return $this->NewObj5( 'Less_Tree_Mixin_Definition', array( $name, $params, $ruleset, $cond, $variadic ) );\n+ return $this->NewObj( 'Less_Tree_Mixin_Definition', array( $name, $params, $ruleset, $cond, $variadic ) );\n}\n$this->restore();\n@@ -1672,7 +1672,7 @@ class Less_Parser {\n}\n$this->expectChar( ')' );\n- return $this->NewObj1( 'Less_Tree_Alpha', $value );\n+ return $this->NewObj( 'Less_Tree_Alpha', [ $value ] );\n}\n//\n@@ -1698,7 +1698,7 @@ class Less_Parser {\n$this->save();\nif ( $this->MatchChar( '(' ) ) {\nif ( ( $v = $this->parseSelector() ) && $this->MatchChar( ')' ) ) {\n- $e = $this->NewObj1( 'Less_Tree_Paren', $v );\n+ $e = $this->NewObj( 'Less_Tree_Paren', [ $v ] );\n$this->forget();\n} else {\n$this->restore();\n@@ -1709,7 +1709,7 @@ class Less_Parser {\n}\nif ( !is_null( $e ) ) {\n- return $this->NewObj4( 'Less_Tree_Element', array( $c, $e, $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Element', array( $c, $e, $index, $this->env->currentFileInfo ) );\n}\n}\n@@ -1792,7 +1792,7 @@ class Less_Parser {\n}\nif ( $elements ) {\n- return $this->NewObj5( 'Less_Tree_Selector', array( $elements, $extendList, $condition, $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Selector', array( $elements, $extendList, $condition, $index, $this->env->currentFileInfo ) );\n}\nif ( $extendList ) {\n$this->Error( 'Extend must be used to extend a selector, it cannot be used on its own' );\n@@ -1822,7 +1822,7 @@ class Less_Parser {\n$this->expectChar( ']' );\n- return $this->NewObj3( 'Less_Tree_Attribute', array( $key, $op === null ? null : $op[0], $val ) );\n+ return $this->NewObj( 'Less_Tree_Attribute', array( $key, $op === null ? null : $op[0], $val ) );\n}\n//\n@@ -1842,7 +1842,7 @@ class Less_Parser {\n$block = $this->parseBlock();\nif ( $block ) {\n- $block = $this->NewObj2( 'Less_Tree_Ruleset', array( null, $block ) );\n+ $block = $this->NewObj( 'Less_Tree_Ruleset', array( null, $block ) );\n}\nreturn $block;\n@@ -1851,7 +1851,7 @@ class Less_Parser {\nprivate function parseDetachedRuleset() {\n$blockRuleset = $this->parseBlockRuleset();\nif ( $blockRuleset ) {\n- return $this->NewObj1( 'Less_Tree_DetachedRuleset', $blockRuleset );\n+ return $this->NewObj( 'Less_Tree_DetachedRuleset', [ $blockRuleset ] );\n}\n}\n@@ -1888,7 +1888,7 @@ class Less_Parser {\n$rules = $this->parseBlock();\nif ( is_array( $rules ) ) {\n$this->forget();\n- return $this->NewObj2( 'Less_Tree_Ruleset', array( $selectors, $rules ) ); // Less_Environment::$strictImports\n+ return $this->NewObj( 'Less_Tree_Ruleset', array( $selectors, $rules ) ); // Less_Environment::$strictImports\n}\n}\n@@ -1917,7 +1917,7 @@ class Less_Parser {\n$match[2] .= ' !important';\n}\n- return $this->NewObj4( 'Less_Tree_NameValue', array( $match[1], $match[2], $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_NameValue', array( $match[1], $match[2], $index, $this->env->currentFileInfo ) );\n}\n$this->restore();\n@@ -1971,7 +1971,7 @@ class Less_Parser {\nif ( $value && $this->parseEnd() ) {\n$this->forget();\n- return $this->NewObj6( 'Less_Tree_Rule', array( $name, $value, $important, $merge, $startOfRule, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Rule', array( $name, $value, $important, $merge, $startOfRule, $this->env->currentFileInfo ) );\n} else {\n$this->furthest = $this->pos;\n$this->restore();\n@@ -1987,7 +1987,7 @@ class Less_Parser {\nfunction parseAnonymousValue() {\nif ( preg_match( '/\\\\G([^@+\\/\\'\"*`(;{}-]*);/', $this->input, $match, 0, $this->pos ) ) {\n$this->pos += strlen( $match[1] );\n- return $this->NewObj1( 'Less_Tree_Anonymous', $match[1] );\n+ return $this->NewObj( 'Less_Tree_Anonymous', [ $match[1] ] );\n}\n}\n@@ -2014,11 +2014,11 @@ class Less_Parser {\n$features = $this->parseMediaFeatures();\nif ( $this->MatchChar( ';' ) ) {\nif ( $features ) {\n- $features = $this->NewObj1( 'Less_Tree_Value', $features );\n+ $features = $this->NewObj( 'Less_Tree_Value', [ $features ] );\n}\n$this->forget();\n- return $this->NewObj5( 'Less_Tree_Import', array( $path, $features, $options, $this->pos, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Import', array( $path, $features, $options, $this->pos, $this->env->currentFileInfo ) );\n}\n}\n}\n@@ -2075,10 +2075,10 @@ class Less_Parser {\n$e = $this->parseValue();\nif ( $this->MatchChar( ')' ) ) {\nif ( $p && $e ) {\n- $r = $this->NewObj7( 'Less_Tree_Rule', array( $p, $e, null, null, $this->pos, $this->env->currentFileInfo, true ) );\n- $nodes[] = $this->NewObj1( 'Less_Tree_Paren', $r );\n+ $r = $this->NewObj( 'Less_Tree_Rule', array( $p, $e, null, null, $this->pos, $this->env->currentFileInfo, true ) );\n+ $nodes[] = $this->NewObj( 'Less_Tree_Paren', [ $r ] );\n} elseif ( $e ) {\n- $nodes[] = $this->NewObj1( 'Less_Tree_Paren', $e );\n+ $nodes[] = $this->NewObj( 'Less_Tree_Paren', [ $e ] );\n} else {\nreturn null;\n}\n@@ -2087,7 +2087,7 @@ class Less_Parser {\n} while ( $e );\nif ( $nodes ) {\n- return $this->NewObj1( 'Less_Tree_Expression', $nodes );\n+ return $this->NewObj( 'Less_Tree_Expression', [ $nodes ] );\n}\n}\n@@ -2117,7 +2117,7 @@ class Less_Parser {\n$rules = $this->parseBlock();\nif ( is_array( $rules ) ) {\n- return $this->NewObj4( 'Less_Tree_Media', array( $rules, $features, $this->pos, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Media', array( $rules, $features, $this->pos, $this->env->currentFileInfo ) );\n}\n}\n}\n@@ -2213,7 +2213,7 @@ class Less_Parser {\n$value = $this->MatchReg( '/\\\\G[^{;]+/' );\nif ( $value ) {\n- $value = $this->NewObj1( 'Less_Tree_Anonymous', trim( $value[0] ) );\n+ $value = $this->NewObj( 'Less_Tree_Anonymous', [ trim( $value[0] ) ] );\n}\n}\n@@ -2223,7 +2223,7 @@ class Less_Parser {\nif ( $rules || ( !$hasBlock && $value && $this->MatchChar( ';' ) ) ) {\n$this->forget();\n- return $this->NewObj5( 'Less_Tree_Directive', array( $name, $value, $rules, $index, $this->env->currentFileInfo ) );\n+ return $this->NewObj( 'Less_Tree_Directive', array( $name, $value, $rules, $index, $this->env->currentFileInfo ) );\n}\n$this->restore();\n@@ -2251,7 +2251,7 @@ class Less_Parser {\n}while ( $e );\nif ( $expressions ) {\n- return $this->NewObj1( 'Less_Tree_Value', $expressions );\n+ return $this->NewObj( 'Less_Tree_Value', [ $expressions ] );\n}\n}\n@@ -2266,7 +2266,7 @@ class Less_Parser {\n$a = $this->parseAddition();\nif ( $a ) {\n$this->expectChar( ')' );\n- return $this->NewObj2( 'Less_Tree_Expression', array( array( $a ), true ) ); // instead of $e->parens = true so the value is cached\n+ return $this->NewObj( 'Less_Tree_Expression', array( array( $a ), true ) ); // instead of $e->parens = true so the value is cached\n}\n}\n}\n@@ -2302,7 +2302,7 @@ class Less_Parser {\n$m->parensInOp = true;\n$a->parensInOp = true;\n- $return = $this->NewObj3( 'Less_Tree_Operation', array( $op, array( $return, $a ), $isSpaced ) );\n+ $return = $this->NewObj( 'Less_Tree_Operation', array( $op, array( $return, $a ), $isSpaced ) );\n}\n}\nreturn $return;\n@@ -2340,7 +2340,7 @@ class Less_Parser {\n$m->parensInOp = true;\n$a->parensInOp = true;\n- $return = $this->NewObj3( 'Less_Tree_Operation', array( $op, array( $return, $a ), $isSpaced ) );\n+ $return = $this->NewObj( 'Less_Tree_Operation', array( $op, array( $return, $a ), $isSpaced ) );\n}\n}\n@@ -2365,7 +2365,7 @@ class Less_Parser {\nbreak;\n}\n- $return = $this->NewObj4( 'Less_Tree_Condition', array( 'or', $return, $b, $index ) );\n+ $return = $this->NewObj( 'Less_Tree_Condition', array( 'or', $return, $b, $index ) );\n}\nreturn $return;\n}\n@@ -2385,16 +2385,16 @@ class Less_Parser {\nif ( $op ) {\n$b = $this->MatchFuncs( array( 'parseAddition','parseEntitiesKeyword','parseEntitiesQuoted' ) );\nif ( $b ) {\n- $c = $this->NewObj5( 'Less_Tree_Condition', array( $op[0], $a, $b, $index, $negate ) );\n+ $c = $this->NewObj( 'Less_Tree_Condition', array( $op[0], $a, $b, $index, $negate ) );\n} else {\n$this->Error( 'Unexpected expression' );\n}\n} else {\n- $k = $this->NewObj1( 'Less_Tree_Keyword', 'true' );\n- $c = $this->NewObj5( 'Less_Tree_Condition', array( '=', $a, $k, $index, $negate ) );\n+ $k = $this->NewObj( 'Less_Tree_Keyword', [ 'true' ] );\n+ $c = $this->NewObj( 'Less_Tree_Condition', array( '=', $a, $k, $index, $negate ) );\n}\n$this->expectChar( ')' );\n- return $this->MatchReg( '/\\\\Gand/' ) ? $this->NewObj3( 'Less_Tree_Condition', array( 'and', $c, $this->parseCondition() ) ) : $c;\n+ return $this->MatchReg( '/\\\\Gand/' ) ? $this->NewObj( 'Less_Tree_Condition', array( 'and', $c, $this->parseCondition() ) ) : $c;\n}\n}\n@@ -2417,7 +2417,7 @@ class Less_Parser {\nif ( $negate ) {\n$o->parensInOp = true;\n- $o = $this->NewObj1( 'Less_Tree_Negative', $o );\n+ $o = $this->NewObj( 'Less_Tree_Negative', [ $o ] );\n}\nreturn $o;\n@@ -2440,14 +2440,14 @@ class Less_Parser {\nif ( !$this->PeekReg( '/\\\\G\\/[\\/*]/' ) ) {\n$delim = $this->MatchChar( '/' );\nif ( $delim ) {\n- $entities[] = $this->NewObj1( 'Less_Tree_Anonymous', $delim );\n+ $entities[] = $this->NewObj( 'Less_Tree_Anonymous', [ $delim ] );\n}\n}\n}\n} while ( $e );\nif ( $entities ) {\n- return $this->NewObj1( 'Less_Tree_Expression', $entities );\n+ return $this->NewObj( 'Less_Tree_Expression', [ $entities ] );\n}\n}\n@@ -2490,9 +2490,9 @@ class Less_Parser {\n}\nforeach ( $name as $k => $s ) {\nif ( !$s || $s[0] !== '@' ) {\n- $name[$k] = $this->NewObj1( 'Less_Tree_Keyword', $s );\n+ $name[$k] = $this->NewObj( 'Less_Tree_Keyword', [ $s ] );\n} else {\n- $name[$k] = $this->NewObj3( 'Less_Tree_Variable', array( '@' . substr( $s, 2, -1 ), $index[$k], $this->env->currentFileInfo ) );\n+ $name[$k] = $this->NewObj( 'Less_Tree_Variable', array( '@' . substr( $s, 2, -1 ), $index[$k], $this->env->currentFileInfo ) );\n}\n}\nreturn $name;\n@@ -2548,68 +2548,19 @@ class Less_Parser {\n}\n/**\n- * Create Less_Tree_* objects and optionally generate a cache string\n+ * Create a new instance of $class with args $args, and optionally generates a cache string.\n+ * $class should be a Less_Tree_* class.\n*\n- * @return mixed\n+ * @phan-param class-string<Less_Tree> $class\n+ * @phan-param array<int,mixed> $args\n+ * @phan-return Less_True\n+ *\n+ * @param string $class\n+ * @param mixed[] $args\n+ * @return Less_Tree Instance of $class subclass created with $args\n*/\n- public function NewObj0( $class ) {\n- $obj = new $class();\n- if ( $this->CacheEnabled() ) {\n- $obj->cache_string = ' new '.$class.'()';\n- }\n- return $obj;\n- }\n-\n- public function NewObj1( $class, $arg ) {\n- $obj = new $class( $arg );\n- if ( $this->CacheEnabled() ) {\n- $obj->cache_string = ' new '.$class.'('.Less_Parser::ArgString( $arg ).')';\n- }\n- return $obj;\n- }\n-\n- public function NewObj2( $class, $args ) {\n- $obj = new $class( $args[0], $args[1] );\n- if ( $this->CacheEnabled() ) {\n- $this->ObjCache( $obj, $class, $args );\n- }\n- return $obj;\n- }\n-\n- public function NewObj3( $class, $args ) {\n- $obj = new $class( $args[0], $args[1], $args[2] );\n- if ( $this->CacheEnabled() ) {\n- $this->ObjCache( $obj, $class, $args );\n- }\n- return $obj;\n- }\n-\n- public function NewObj4( $class, $args ) {\n- $obj = new $class( $args[0], $args[1], $args[2], $args[3] );\n- if ( $this->CacheEnabled() ) {\n- $this->ObjCache( $obj, $class, $args );\n- }\n- return $obj;\n- }\n-\n- public function NewObj5( $class, $args ) {\n- $obj = new $class( $args[0], $args[1], $args[2], $args[3], $args[4] );\n- if ( $this->CacheEnabled() ) {\n- $this->ObjCache( $obj, $class, $args );\n- }\n- return $obj;\n- }\n-\n- public function NewObj6( $class, $args ) {\n- $obj = new $class( $args[0], $args[1], $args[2], $args[3], $args[4], $args[5] );\n- if ( $this->CacheEnabled() ) {\n- $this->ObjCache( $obj, $class, $args );\n- }\n- return $obj;\n- }\n-\n- public function NewObj7( $class, $args ) {\n- $obj = new $class( $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6] );\n+ public function NewObj( $class, $args = [] ) {\n+ $obj = new $class( ...$args );\nif ( $this->CacheEnabled() ) {\n$this->ObjCache( $obj, $class, $args );\n}\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Parser: Deduplicate internal NewObj* methods
Make use of the splat (`...`) operator, available since PHP 5.6 to instantiate classes with a variable
number of parameters.
Though the old NewObj0() and NewObj1() did not use the ObjCache() helper method to determine their
cache strings, the results should be the same.
|
734,012 |
09.08.2021 18:37:43
| 25,200 |
b55a13d9f16fe6020a3df5870d78e52c9b950f6c
|
Parser: Simplify NewObj() code
Merge single use functions ObjCache() and ArgCache() into NewObj() and make use of string interpolation
instead concatenation.
Also use __CLASS__ instead of hardcoding the current class name.
Closes
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Parser.php",
"new_path": "lib/Less/Parser.php",
"diff": "@@ -2562,20 +2562,16 @@ class Less_Parser {\npublic function NewObj( $class, $args = [] ) {\n$obj = new $class( ...$args );\nif ( $this->CacheEnabled() ) {\n- $this->ObjCache( $obj, $class, $args );\n+ $argStrings = array_map(\n+ [ __CLASS__, 'ArgString' ],\n+ $args\n+ );\n+ $argCache = implode( ',', $argStrings );\n+ $obj->cache_string = \" new $class($argCache)\";\n}\nreturn $obj;\n}\n- // caching\n- public function ObjCache( $obj, $class, $args = array() ) {\n- $obj->cache_string = ' new '.$class.'('. self::ArgCache( $args ).')';\n- }\n-\n- public function ArgCache( $args ) {\n- return implode( ',', array_map( array( 'Less_Parser','ArgString' ), $args ) );\n- }\n-\n/**\n* Convert an argument to a string for use in the parser cache\n*\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Parser: Simplify NewObj() code
Merge single use functions ObjCache() and ArgCache() into NewObj() and make use of string interpolation
instead concatenation.
Also use __CLASS__ instead of hardcoding the current class name.
Closes https://github.com/wikimedia/less.php/pull/72.
|
734,012 |
09.08.2021 20:39:50
| 25,200 |
4f2cee90daf3a67cb2b453a1e4bc364d62089fa4
|
Less_Colors: Use private constant instead of public property
Convert public static `Less_Colors::$colors` to private constant, and use new `[]` style for array.
Add strict typehints to methods, all existing callers already pass strings.
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Colors.php",
"new_path": "lib/Less/Colors.php",
"diff": "*/\nclass Less_Colors {\n- public static $colors = array(\n+ private const COLORS = [\n'aliceblue' => '#f0f8ff',\n'antiquewhite' => '#faebd7',\n'aqua' => '#00ffff',\n@@ -155,15 +155,24 @@ class Less_Colors {\n'white' => '#ffffff',\n'whitesmoke' => '#f5f5f5',\n'yellow' => '#ffff00',\n- 'yellowgreen' => '#9acd32'\n- );\n+ 'yellowgreen' => '#9acd32',\n+ ];\n- public static function hasOwnProperty( $color ) {\n- return isset( self::$colors[$color] );\n+ /**\n+ * @param string $color\n+ * @return bool\n+ */\n+ public static function hasOwnProperty( string $color ): bool {\n+ return isset( self::COLORS[$color] );\n}\n- public static function color( $color ) {\n- return self::$colors[$color];\n+ /**\n+ * @param string $color Should be an existing color name,\n+ * checked via hasOwnProperty()\n+ * @return string the corresponding hexadecimal representation\n+ */\n+ public static function color( string $color ): string {\n+ return self::COLORS[$color];\n}\n}\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Less_Colors: Use private constant instead of public property
Convert public static `Less_Colors::$colors` to private constant, and use new `[]` style for array.
Add strict typehints to methods, all existing callers already pass strings.
|
734,008 |
22.12.2022 15:46:25
| 0 |
1e6598b242306bd16c2fdac8e00afd769613b424
|
build: Update dev deps and add PHP 8.1 and PHP 8.2 to test matrix
|
[
{
"change_type": "MODIFY",
"old_path": ".github/workflows/php.yml",
"new_path": ".github/workflows/php.yml",
"diff": "@@ -13,17 +13,21 @@ jobs:\nmatrix:\ninclude:\n# Includes php7.1 - 8.0 and composer 2\n- # https://github.com/actions/virtual-environments/blob/ubuntu18/20210318.0/images/linux/Ubuntu1804-README.md#php\n+ # https://github.com/actions/runner-images/blob/ubuntu18/20210318.0/images/linux/Ubuntu1804-README.md#php\n- php: '7.2'\nos: ubuntu-18.04\n- php: '7.3'\nos: ubuntu-18.04\n- # Includes php7.4 - 8.0 and composer 2\n- # https://github.com/actions/virtual-environments/blob/ubuntu20/20210318.0/images/linux/Ubuntu2004-README.md#php\n+ # Includes php7.4 - 8.2 and composer 2\n+ # https://github.com/actions/runner-images/blob/ubuntu20/20221212.2/images/linux/Ubuntu2004-Readme.md#php\n- php: '7.4'\nos: ubuntu-20.04\n- php: '8.0'\nos: ubuntu-20.04\n+ - php: '8.1'\n+ os: ubuntu-20.04\n+ - php: '8.2'\n+ os: ubuntu-20.04\nruns-on: ${{ matrix.os }}\n"
},
{
"change_type": "MODIFY",
"old_path": ".phpcs.xml",
"new_path": ".phpcs.xml",
"diff": "<exclude name=\"MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures\" />\n<exclude name=\"MediaWiki.Files.ClassMatchesFilename.NotMatch\" />\n<exclude name=\"MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName\" />\n- <exclude name=\"MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix\" />\n+ <exclude name=\"MediaWiki.NamingConventions.PrefixedGlobalFunctions.allowedPrefix\" />\n<exclude name=\"MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix\" />\n<exclude name=\"MediaWiki.Usage.AssignmentInReturn.AssignmentInReturn\" />\n<exclude name=\"MediaWiki.Usage.DirUsage.FunctionFound\" />\n"
},
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"php\": \">=7.2.9\"\n},\n\"require-dev\": {\n- \"mediawiki/mediawiki-codesniffer\": \"34.0.0\",\n- \"mediawiki/mediawiki-phan-config\": \"0.10.6\",\n- \"mediawiki/minus-x\": \"1.0.0\",\n- \"php-parallel-lint/php-console-highlighter\": \"0.5.0\",\n- \"php-parallel-lint/php-parallel-lint\": \"1.2.0\",\n+ \"mediawiki/mediawiki-codesniffer\": \"39.0.0\",\n+ \"mediawiki/mediawiki-phan-config\": \"0.11.1\",\n+ \"mediawiki/minus-x\": \"1.1.1\",\n+ \"php-parallel-lint/php-console-highlighter\": \"1.0.0\",\n+ \"php-parallel-lint/php-parallel-lint\": \"1.3.2\",\n\"phpunit/phpunit\": \"^8.5\"\n},\n\"scripts\": {\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Tree/Color.php",
"new_path": "lib/Less/Tree/Color.php",
"diff": "@@ -136,11 +136,14 @@ class Less_Tree_Color extends Less_Tree {\n$s = $l > 0.5 ? $d / ( 2 - $max - $min ) : $d / ( $max + $min );\nswitch ( $max ) {\n- case $r: $h = ( $g - $b ) / $d + ( $g < $b ? 6 : 0 );\n+ case $r:\n+ $h = ( $g - $b ) / $d + ( $g < $b ? 6 : 0 );\nbreak;\n- case $g: $h = ( $b - $r ) / $d + 2;\n+ case $g:\n+ $h = ( $b - $r ) / $d + 2;\nbreak;\n- case $b: $h = ( $r - $g ) / $d + 4;\n+ case $b:\n+ $h = ( $r - $g ) / $d + 4;\nbreak;\n}\n$h /= 6;\n@@ -170,11 +173,14 @@ break;\n$h = 0;\nif ( $max !== $min ) {\nswitch ( $max ) {\n- case $r: $h = ( $g - $b ) / $d + ( $g < $b ? 6 : 0 );\n+ case $r:\n+ $h = ( $g - $b ) / $d + ( $g < $b ? 6 : 0 );\nbreak;\n- case $g: $h = ( $b - $r ) / $d + 2;\n+ case $g:\n+ $h = ( $b - $r ) / $d + 2;\nbreak;\n- case $b: $h = ( $r - $g ) / $d + 4;\n+ case $b:\n+ $h = ( $r - $g ) / $d + 4;\nbreak;\n}\n$h /= 6;\n"
},
{
"change_type": "MODIFY",
"old_path": "test/index.php",
"new_path": "test/index.php",
"diff": "@@ -649,7 +649,6 @@ function obj( $mixed, $objects = array() ) {\n$type = gettype( $mixed );\nswitch ( $type ) {\ncase 'object':\n-\nif ( in_array( $mixed, $objects, true ) ) {\nreturn 'recursive';\n}\n@@ -672,8 +671,8 @@ function obj( $mixed, $objects = array() ) {\n$temp[$key] = $value;\n}\n$mixed = $temp;\n+ // fall-through\ncase 'array':\n-\nif ( !count( $mixed ) ) {\n$output = $type.'()';\nbreak;\n@@ -703,6 +702,7 @@ function obj( $mixed, $objects = array() ) {\n} else {\n$mixed = 'false';\n}\n+ // fall-through\ndefault:\n$output = '('.$type.')'.htmlspecialchars( $mixed, ENT_COMPAT, 'UTF-8', false ).'';\nbreak;\n"
},
{
"change_type": "MODIFY",
"old_path": "test/php-diff/lib/Diff/Renderer/Abstract.php",
"new_path": "test/php-diff/lib/Diff/Renderer/Abstract.php",
"diff": "abstract class Diff_Renderer_Abstract {\n/**\n- * @var object Instance of the diff class that this renderer is generating the rendered diff for.\n+ * @var Diff Instance of the Diff class that this renderer is generating the rendered diff for.\n*/\npublic $diff;\n"
},
{
"change_type": "MODIFY",
"old_path": "test/phpunit/bootstrap.php",
"new_path": "test/phpunit/bootstrap.php",
"diff": "<?php\n-if ( !class_exists( PHPUnit_Framework_TestCase::class ) ) {\n- class_alias( \\PHPUnit\\Framework\\TestCase::class, PHPUnit_Framework_TestCase::class );\n-}\n-\n-class phpunit_bootstrap extends PHPUnit_Framework_TestCase {\n+class phpunit_bootstrap extends PHPUnit\\Framework\\TestCase {\npublic $fixtures_dir;\npublic $cache_dir;\n"
},
{
"change_type": "MODIFY",
"old_path": "test/tracefile-analyser.php",
"new_path": "test/tracefile-analyser.php",
"diff": "@@ -178,7 +178,7 @@ class drXdebugTraceFileParser {\nif ( $sortKey !== null ) {\nuasort( $result,\n- function ( $a, $b ) use ( $sortKey )\n+ static function ( $a, $b ) use ( $sortKey )\n{\nreturn ( $a[$sortKey] > $b[$sortKey] ) ? -1 : ( $a[$sortKey] < $b[$sortKey] ? 1 : 0 );\n}\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
build: Update dev deps and add PHP 8.1 and PHP 8.2 to test matrix
|
734,015 |
19.07.2022 21:22:17
| -3,600 |
f2f1a77d9d03407d567e0d77405825d5f2a43a5a
|
Less_Functions: Fix "Implicit conversion" PHP 8.1 deprecation warning
Closes
Ref
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Functions.php",
"new_path": "lib/Less/Functions.php",
"diff": "@@ -123,7 +123,7 @@ class Less_Functions {\n$v = Less_Functions::number( $v );\n$a = Less_Functions::number( $a );\n- $i = floor( ( $h / 60 ) % 6 );\n+ $i = floor( (int)( $h / 60 ) % 6 );\n$f = ( $h / 60 ) - $i;\n$vs = array( $v,\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Less_Functions: Fix "Implicit conversion" PHP 8.1 deprecation warning
Closes https://github.com/wikimedia/less.php/pull/81.
Ref https://github.com/wikimedia/less.php/issues/80.
|
734,022 |
19.12.2022 19:06:48
| -19,080 |
a93b0827b650a347f7c694e1e234f8c86efa8812
|
Fix dynamic property PHP 8.2 warning for `allExtends` and `extendOnEveryPath`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Directive::$allExtends`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Media::$allExtends`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Ruleset::$extendOnEveryPath`
Closes
|
[
{
"change_type": "MODIFY",
"old_path": "lib/Less/Tree.php",
"new_path": "lib/Less/Tree.php",
"diff": "class Less_Tree {\npublic $cache_string;\n+ public $parensInOp = false;\n+ public $extendOnEveryPath;\n+ public $allExtends;\npublic function toCSS() {\n$output = new Less_Output();\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Tree/Dimension.php",
"new_path": "lib/Less/Tree/Dimension.php",
"diff": "@@ -11,7 +11,6 @@ class Less_Tree_Dimension extends Less_Tree {\npublic $value;\npublic $unit;\npublic $type = 'Dimension';\n- public $parensInOp;\npublic function __construct( $value, $unit = null ) {\n$this->value = floatval( $value );\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Tree/Expression.php",
"new_path": "lib/Less/Tree/Expression.php",
"diff": "@@ -10,7 +10,6 @@ class Less_Tree_Expression extends Less_Tree {\npublic $value = array();\npublic $parens = false;\n- public $parensInOp = false;\npublic $type = 'Expression';\npublic function __construct( $value, $parens = null ) {\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Tree/Operation.php",
"new_path": "lib/Less/Tree/Operation.php",
"diff": "@@ -12,7 +12,6 @@ class Less_Tree_Operation extends Less_Tree {\npublic $operands;\npublic $isSpaced;\npublic $type = 'Operation';\n- public $parensInOp;\n/**\n* @param string $op\n"
},
{
"change_type": "MODIFY",
"old_path": "lib/Less/Tree/Variable.php",
"new_path": "lib/Less/Tree/Variable.php",
"diff": "@@ -13,7 +13,6 @@ class Less_Tree_Variable extends Less_Tree {\npublic $currentFileInfo;\npublic $evaluating = false;\npublic $type = 'Variable';\n- public $parensInOp;\n/**\n* @param string $name\n"
}
] |
JavaScript
|
Apache License 2.0
|
wikimedia/less.php
|
Fix dynamic property PHP 8.2 warning for `allExtends` and `extendOnEveryPath`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Directive::$allExtends`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Media::$allExtends`
> PHP Deprecated: Creation of dynamic property `Less_Tree_Ruleset::$extendOnEveryPath`
Closes https://github.com/wikimedia/less.php/pull/87.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.