Skip to content

Commit

Permalink
Develop -> Main (#136)
Browse files Browse the repository at this point in the history
* Add missing parameters to getAuthorFeed

* Don't set ATError object when logging

* Add AspectRatio to ImageView

* Start sourcegen

* Update

* Update Tools

* Update

* Remove usings, since it's in global

* Try again

* update

* Update

* Update

* Update

* Update

* Update

* Update

* Almost...

* Update

* Update

* Update logging-in.md

* Add codeflow to readme

* Update...

* Expose the Cursor on the NotificationCollection

* Almost... maybe...

* Firehose

* Update

* The big one

* Update

* Update...

* Fix Readme

* Start refactoring...

* More types

* More cleanup

* More modding...

* More types...

* Closer...

* Nearly...

* Fun!

* First run!

* Tests and More

* Add Tests for Endpoints

* Add class entries

* Trying to generate helpers...

* More generated Parameters

* And helper methods!

* Update Generated Types with less aggressive Null values

Also fix JSON ATObject type to allow fallback

* Update Docs, bump ATProto again...

* Revert...

* Revert...

* Revert...

* Add parameter constructors...

* Update docs

* More docs

* Update docs

* Adjust tests (???)

* Remove deprecated classes and methods

* Remove FishyFlipDX, Replace FishyFlip with Source Gen Bits (#104)

+semver: breaking

* Add docs, bump to net9.0 (#105)

* Add docs, bump to net9.0

* Bump to net9

* Fix ImportRepo, add OpenGraphParser (#106)

* Fix ImportRepo

* Add OpenGraphParser

* Cleanup + Fix WASM support  (#108)

* Order by classname

* Update

* small cleanup

* Update

* Use SupportsAutomaticDecompression for setting AutomaticDecompression, add WASM site back

* Add WhiteWind Generator, add GetRecord (#110)

* Add ATError Object Generator (#112)

* Add Error Generator

* Add Possible Errors

* Warning cleanup

* Add ToString override for ATError (#113)

* Fix GetBlob to return byte[] (#114)

* Resolve Repo DIDs and Handles independently (#115)

* Start refactoring URL

* Update

* Fix tests

* Fix Facet Parsing (#116)

* Fix Facet Parsing

* Remove DistinctBy

* Reintroduce bskycli (#117)

* Add bskycli

* Image Aspect Ratio

* Update

* Update

* Update readme

* Update

* Fix Windows script

* Bump ATProtocol, Bind ATFile Lexicon support (#118)

* Bump atprotocol

* Add ATFile support

* Add build_binding script (#119)

* Update PasswordAuth with AuthenticateWithPasswordResultAsync (#120)

* Update PasswordAuth with AuthenticateWithPasswordResultAsync

* Really???

* Use public.api.bsky.app for unauthed sessions by default (#121)

* Add 2FA Auth Token support for Password Auth (#122)

* Bump dependencies (#123)

* Add Post helper for PostView (#124)

* Bump dependencies (#125)

* Resolve users PDS before authentication (#126)

* Add Pastesphere support (#127)

* Add AniBlue support (#128)

* Bump Bindings (#129)

* Add community lexicons (#130)

* Add DidDoc helpers (#131)

* patch: Special case booleans (#132)

* Bump bindings (#133)

* Override ATUri/ATIdentifier Equals for proper checking (#134)

* Bump bindings

* Override Equals

* Add support for setting Labels / Fixes Chat (#135)

* Update SourceGen for Labels

* Update for labels

* Fix chat too

---------

Co-authored-by: Thomas May <[email protected]>
Co-authored-by: Kevin Gosse <[email protected]>
Co-authored-by: Matt Brailsford <[email protected]>
  • Loading branch information
4 people authored Dec 27, 2024
1 parent 8552f38 commit 8b49b9e
Show file tree
Hide file tree
Showing 921 changed files with 65,040 additions and 9,978 deletions.
107 changes: 107 additions & 0 deletions .github/workflows/bskycli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: bskycli

on:
push:
branches: [ "main", release-*, develop ]
pull_request:
branches: [ "main", release-*, develop ]
workflow_dispatch:

jobs:
Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.0.5'

- name: Run make linux-x64
run: make bskycli_linux

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]

- name: Upload package x64
uses: actions/upload-artifact@v4
with:
name: bskycli-linux-x64-${{ steps.gitversion.outputs.FullSemVer }}
path: artifacts/linux-x64

MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.0.5'

- name: Run make osx
run: make bskycli_macos

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]

- name: Upload package arm64
uses: actions/upload-artifact@v4
with:
name: bskycli-osx-arm64-${{ steps.gitversion.outputs.FullSemVer }}
path: artifacts/osx-arm64

- name: Upload package x64
uses: actions/upload-artifact@v4
with:
name: bskycli-osx-x64-${{ steps.gitversion.outputs.FullSemVer }}
path: artifacts/osx-x64

Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.0.5'

- name: Run powershell script
run: |
.\bskycli_publish.ps1
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]

- name: Upload package x64
uses: actions/upload-artifact@v4
with:
name: bskycli-win-x64-${{ steps.gitversion.outputs.FullSemVer }}
path: artifacts/win-x64

2 changes: 1 addition & 1 deletion .github/workflows/deploy_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
dotnet-version: 9.x

- run: dotnet tool update -g docfx
- run: docfx website/docfx.json
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
dotnet-version: 9.x

- name: Build and Pack Nugets
run: dotnet pack src/FishyFlip.sln --configuration Release --output nupkg
Expand All @@ -42,14 +42,11 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
dotnet-version: 9.x

- name: Run FishyFlip.Tests
run: dotnet test src/FishyFlip.Tests/FishyFlip.Tests.csproj -- --report-trx --results-directory ../../dotnet-test-results

- name: Run WhiteWindLib.Tests
run: dotnet test src/WhiteWindLib.Tests/WhiteWindLib.Tests.csproj -- --report-trx --results-directory ../../dotnet-test-results

- name: Upload Test Results
uses: actions/upload-artifact@v4
with:
Expand All @@ -71,7 +68,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
dotnet-version: 9.x

- name: Publish to NuGet
run: |
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ fishyflip.runsettings
external/Drastic.FlipperKit/build/
src/Frameworks
nuget/
output/
.meteor/
.DS_Store
.vscode/
samples/SandboxApp/Program.cs
xcuserdata/

*.xcscmblueprint
*.xccheckout

Expand Down
167 changes: 167 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "FFSourceGen",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_ffsourcegen",
"program": "${workspaceFolder}/tools/FFSourceGen/bin/Debug/net9.0/FFSourceGen.dll",
"args": [ "generate", "${workspaceFolder}/../atproto/lexicons", "-o", "${workspaceFolder}/src/FishyFlip/" ],
"cwd": "${workspaceFolder}/tools/FFSourceGen",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "atfile_list",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [
"atfile",
"list",
"did:web:zio.sh",
"-v"
],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "atfile_png",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [
"atfile",
"download",
"did:web:zio.sh",
"avatar-mod-no",
"-v"
],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "post",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [
"post",
"Testing ホゲ, etc",
"-r",
"at://did:plc:okblbaji7rz243bluudjlgxt/app.bsky.feed.post/3lc2xksbvhw2f",
"-c",
"bafyreicwud4br5p54vikac7bprpszbca2jjc5ysjkszhtmextdrhgbozoa",
"-e",
"https://github.com/drasticactions/FishyFlip",
"-l",
"en,ja",
"-u",
"${env:BLUESKY_TEST_HANDLE}",
"-p",
"${env:BLUESKY_TEST_PASSWORD}" ],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "post-image",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [
"post",
"image",
"${workspaceFolder}/assets/logo.png,${workspaceFolder}/assets/logo.png",
"-a",
"Testing ホゲ, etc",
"-t",
"Testing ホゲ, etc",
"-r",
"at://did:plc:okblbaji7rz243bluudjlgxt/app.bsky.feed.post/3lc2xksbvhw2f",
"-c",
"bafyreicwud4br5p54vikac7bprpszbca2jjc5ysjkszhtmextdrhgbozoa",
"-l",
"en,ja",
"-u",
"${env:BLUESKY_TEST_HANDLE}",
"-p",
"${env:BLUESKY_TEST_PASSWORD}" ],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "post-video",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [
"post",
"video",
"${workspaceFolder}/assets/video.mp4",
"-vtt",
"${workspaceFolder}/assets/video.en.vtt,${workspaceFolder}/assets/video.ja.vtt",
"-vttl",
"en,ja",
"-r",
"at://did:plc:okblbaji7rz243bluudjlgxt/app.bsky.feed.post/3lc2xksbvhw2f",
"-c",
"bafyreicwud4br5p54vikac7bprpszbca2jjc5ysjkszhtmextdrhgbozoa",
"-u",
"${env:BLUESKY_TEST_HANDLE}",
"-p",
"${env:BLUESKY_TEST_PASSWORD}"
],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "resolve-handle",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [ "resolve-handle", "drasticactions.dev" ],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "did-doc",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [ "did-doc", "did:plc:yhgc5rlqhoezrx6fbawajxlh" ],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": "download",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build_bskycli",
"program": "${workspaceFolder}/apps/bskycli/bin/Debug/net9.0/bskycli.dll",
"args": [ "download", "did:plc:urj4pkche2yvpr5ilj4ykteu", "bafkreif2su5dt27u23q2f4tl5mgmojyibl4rj6lundc27sjvtuhawi732y", "-o", "${workspaceFolder}/artifacts/avatar.jpg" ],
"cwd": "${workspaceFolder}/apps/bskycli",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
29 changes: 29 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build_ffsourcegen",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/tools/FFSourceGen/FFSourceGen.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "build_bskycli",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/apps/bskycli/bskycli.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>embedded</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<NoWarn>$(NoWarn);SA1208</NoWarn>
<NoWarn>$(NoWarn);SA1208;SA0001</NoWarn>
<GitVersionTargetFramework>net8.0</GitVersionTargetFramework>
</PropertyGroup>

Expand Down
Loading

0 comments on commit 8b49b9e

Please sign in to comment.