Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into v.next #1318

Merged
merged 13 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/Open_PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Sync v.next with main

# PRs are completed with squash and merge option - this commit will be cherry-picked for v.next.
on:
push:
branches:
- main

jobs:
sync_branches:
runs-on: ubuntu-latest
steps:

# Clone just the main branch of the samples repo.
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 2

# Cherry-pick the most recent commit from main into v.next.
- name: Cherry-pick from main into v.next
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
run: |
# Configure the bot's git identity.
git config --global user.name "ArcGIS Maps SDK [bot]"
git config --global user.email "[email protected]"

# Store the commit hash of the most recent commit from main.
COMMIT_HASH=$(git rev-parse HEAD)

# Name the target branch.
SYNC_BRANCH="sync/$COMMIT_HASH"

# Pull v.next and branch off with the cherry-picked commit.
git fetch --depth=2 origin v.next
git switch v.next
git branch $SYNC_BRANCH
git switch $SYNC_BRANCH
git cherry-pick $COMMIT_HASH

# Push the new head branch to the remote and try to open a PR.
git push -u origin $SYNC_BRANCH
if ! git diff --quiet v.next; then
echo "Diff detected."
gh pr create \
--title "[Automated] Sync v.next with main" \
--body "This PR was automaticaly opened to update v.next with the most recent commit from main." \
--head "$SYNC_BRANCH" \
--base "v.next" || CANNOT_OPEN_PR=$?
if [ -n "$CANNOT_OPEN_PR" ]; then
echo "Failed to open PR."
git branch -D $SYNC_BRANCH
else
echo "PR successfully opened."
fi
else
echo "No diff detected."
git branch -D $SYNC_BRANCH
fi
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace ArcGIS.Samples.AddCustomDynamicEntityDataSource
public partial class AddCustomDynamicEntityDataSource
{
// Path to AIS Traffic Data json file.
private readonly string _localJsonFile = DataManager.GetDataFolder("a8a942c228af4fac96baa78ad60f511f", "AIS_MarineCadastre_SelectedVessels_CustomDataSource.json");
private readonly string _localJsonFile = DataManager.GetDataFolder("a8a942c228af4fac96baa78ad60f511f", "AIS_MarineCadastre_SelectedVessels_CustomDataSource.jsonl");

public AddCustomDynamicEntityDataSource()
{
Expand Down
8 changes: 7 additions & 1 deletion src/WPF/WPF.Viewer/ArcGIS.WPF.Viewer.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetFrameworks>net8.0-windows10.0.19041.0;net472</TargetFrameworks>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<ArcGISLocalServerIgnoreMissingComponent>True</ArcGISLocalServerIgnoreMissingComponent>
Expand All @@ -18,6 +18,7 @@
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
<DefineConstants>$(DefineConstants);TRACE;NET_CORE_3</DefineConstants>
<NoWarn>1701;1702;CA1416</NoWarn>
<PlatformTarget Condition="'$(TargetFramework)'=='net472'">AnyCPU</PlatformTarget>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -67,6 +68,11 @@
<PackageReference Include="Markdig" />
<PackageReference Include="System.Speech" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net472'">
<PackageReference Include="System.Text.Json" />
<Reference Include="System.Security"/>
<Reference Include="System.IO.Compression" />
</ItemGroup>
<ItemGroup>
<Compile Update="Converters\*.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace ArcGIS.WPF.Samples.AddCustomDynamicEntityDataSource
public partial class AddCustomDynamicEntityDataSource
{
// Path to AIS Traffic Data json file.
private readonly string _localJsonFile = DataManager.GetDataFolder("a8a942c228af4fac96baa78ad60f511f", "AIS_MarineCadastre_SelectedVessels_CustomDataSource.json");
private readonly string _localJsonFile = DataManager.GetDataFolder("a8a942c228af4fac96baa78ad60f511f", "AIS_MarineCadastre_SelectedVessels_CustomDataSource.jsonl");

public AddCustomDynamicEntityDataSource()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace ArcGIS.WinUI.Samples.AddCustomDynamicEntityDataSource
public partial class AddCustomDynamicEntityDataSource
{
// Path to AIS Traffic Data json file.
private readonly string _localJsonFile = DataManager.GetDataFolder("a8a942c228af4fac96baa78ad60f511f", "AIS_MarineCadastre_SelectedVessels_CustomDataSource.json");
private readonly string _localJsonFile = DataManager.GetDataFolder("a8a942c228af4fac96baa78ad60f511f", "AIS_MarineCadastre_SelectedVessels_CustomDataSource.jsonl");

public AddCustomDynamicEntityDataSource()
{
Expand Down
Loading