Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
a876314
Fork(rename): TLSharp -> TgSharp
knocte Apr 2, 2020
932a733
Finish TLSharp -> TgSharp rename (#1)
knocte Apr 2, 2020
6694297
Add GithubActions workflow for nugetUpload
aarani Apr 2, 2020
8cf57f7
README.md: update
knocte Apr 3, 2020
ba0715e
nugetUpload: refactor versioning
knocte Apr 3, 2020
c59eba9
nugetUpload: honor git tags as versions
knocte Apr 3, 2020
bb2e485
README.md: fix couple of typos
knocte Apr 3, 2020
913a5be
README.md: fix CI badge
knocte Apr 3, 2020
f27d025
Add GitLabCI Linux pipeline
knocte Apr 4, 2020
a73028f
nuspec: fix warning
knocte Apr 5, 2020
3bde55e
Upgrade from .NET4.5 to .NET4.6
Apr 5, 2020
f40474f
Remove unnecessary dependencies
Apr 2, 2020
6d99916
Added an IPv4/IPv6 toggle to TelegramClient constructor
solarin Apr 6, 2020
1601e33
README.md: update Roadmap
knocte Apr 11, 2020
e5a6991
README.md: expand on FLOOD_WAIT error
knocte Apr 11, 2020
874cfd0
Core: don't consider MediaOnly DCs at reconnect
solarin Apr 11, 2020
94775ce
Core: allow reconnecting same TelegramClient instance
solarin Apr 11, 2020
6ff4093
Core: don't expose "reconnect" optional param in public API
knocte Apr 11, 2020
10632fe
Generator: default to a schema filename in line to online resource
knocte Apr 12, 2020
4d09ac7
Merge pull request #7 from nblockchain/allowReconnecting
knocte Apr 12, 2020
292d92e
Core: TelegramClient class hardening, adding readonly keywords
knocte Apr 12, 2020
6b9fc62
README.md: fix code snippets indentation and other things
knocte Apr 13, 2020
56448c6
README.md: prefer OfType<>() LINQ method, it's shorter
knocte Apr 13, 2020
a85f0d8
Generator: make it work with Unix paths
knocte Apr 14, 2020
0122072
Generator: allow running generator from TeleSharp.TL/ folder
knocte Apr 14, 2020
b55084d
nugetUpload: fix version creation
knocte Apr 14, 2020
0a5ab70
TeleSharp.TL: try wildcards in the project file
knocte Apr 14, 2020
ba7e7cb
nugetUpload: change baseVersion from 0.1.0 to 0.1.1
knocte Apr 14, 2020
313739e
nugetUpload: add a dash in pre-release version before the git hash
knocte Apr 14, 2020
c20b2cd
Generator: fix regression caused by a typo
knocte Apr 15, 2020
58df196
nuspec: net45->net46 folder, forgotten change in 4.5->4.6 .NET upgrade
knocte Apr 16, 2020
07c4812
api: Update to Layer 108
Apr 3, 2020
a853f12
fix: Duplicate TLVector and API Changes in SendCode Method
Apr 3, 2020
3cb0ef6
api: change layer number
aarani Apr 3, 2020
f2bdf84
README.md: update samples to match Layer 108 API
aarani Apr 3, 2020
02c58b7
README.md: fix outdated information
aarani Apr 3, 2020
7be6122
Generator: fix many whitespace nits (especially in generated code)
knocte Apr 15, 2020
a3ebd07
TeleSharp.TL: update generated code
knocte Apr 15, 2020
75fb3c1
TeleSharp.TL: fix build
knocte Apr 16, 2020
8c3ddeb
Rename TeleSharp.Generator->TgSharp.Generator
knocte Apr 16, 2020
dfb8b52
Generator: start rename of TeleSharp.TL->TgSharp.TL assembly (1/5)
knocte Apr 16, 2020
d4a4c66
Rename TeleSharp.TL->TgSharp.TL (2/5)
knocte Apr 16, 2020
2c0352e
Rename TeleSharp.TL->TgSharp.TL, auto-generating again (3/5)
knocte Apr 16, 2020
350d28c
Rename TeleSharp.TL->TgSharp.TL, fixing base types (4/5)
knocte Sep 10, 2020
94edf1b
Rename TeleSharp.TL->TgSharp.TL, fixing TgSharp.Core build (5/5)
knocte Sep 10, 2020
9b68b69
nugetUpload: change baseVersion from 0.1.1 to 0.3.1
knocte Sep 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
run: wget $NUGET_URL

- name: Install Dependencies
run: mono nuget.exe restore
run: mono nuget.exe restore src/TgSharp.sln

- name: Build Project
run: xbuild TLSharp.Core/TLSharp.Core.csproj
run: xbuild src/TgSharp.Core/TgSharp.Core.csproj

macos:
runs-on: macos-latest
Expand All @@ -27,10 +27,10 @@ jobs:
run: curl -o nuget.exe $NUGET_URL

- name: Install Dependencies
run: mono nuget.exe restore
run: mono nuget.exe restore src/TgSharp.sln

- name: Build Project
run: MSBuild TLSharp.Core/TLSharp.Core.csproj
run: MSBuild src/TgSharp.Core/TgSharp.Core.csproj

windows:
runs-on: windows-latest
Expand All @@ -41,10 +41,10 @@ jobs:
run: Invoke-WebRequest -OutFile Nuget.exe $Env:NUGET_URL

- name: Install Dependencies
run: ./Nuget.exe restore
run: ./Nuget.exe restore src/TgSharp.sln

- name: setup-msbuild
uses: microsoft/setup-msbuild@v1

- name: Build Project
run: MSBuild TLSharp.sln
run: MSBuild src/TgSharp.sln
40 changes: 40 additions & 0 deletions .github/workflows/nugetUpload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: nugetUpload
on: [push, pull_request]

env:
NUGET_URL: https://dist.nuget.org/win-x86-commandline/v5.4.0/nuget.exe
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: Download Nuget.exe
run: Invoke-WebRequest -OutFile Nuget.exe $Env:NUGET_URL

- name: Install Dependencies
run: ./Nuget.exe restore src/TgSharp.sln

- name: setup-msbuild
uses: microsoft/setup-msbuild@v1

- name: Build & Upload Package
run: |
$date = get-date -format "yyyyMMdd-HHmm"
$hash = & git rev-parse --short HEAD

$tagPrefix = "refs/tags/"
If ($Env:GITHUB_REF.StartsWith($tagPrefix)) {
$version = $Env:GITHUB_REF.Substring($tagPrefix.Length)
}
Else {
$baseVersion = "0.3.1"
$version = "$baseVersion--date$date.git-$hash"
}

./Nuget.exe pack src/TgSharp.Core/TgSharp.Core.csproj -Version $version -Build -Properties Configuration=Release
If ($Env:GITHUB_REF -eq 'refs/heads/master' -OR $Env:GITHUB_REF.StartsWith($tagPrefix)) {
If ('${{ secrets.NUGET_API_KEY }}' -ne '') {
./Nuget.exe push "TgSharp.$version.nupkg" ${{secrets.NUGET_API_KEY}} -Source https://api.nuget.org/v3/index.json
}
}
49 changes: 49 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
variables:
NUGET_540_URL: https://dist.nuget.org/win-x86-commandline/v5.4.0/nuget.exe
NUGET_451_URL: https://dist.nuget.org/win-x86-commandline/v4.5.1/nuget.exe

before_script:
- apt update
# needed to download NuGet
- apt install -y curl

stages:
- build

stockmono_build:
image: ubuntu:18.04
stage: build
script:
# https://askubuntu.com/a/1013396
- DEBIAN_FRONTEND=noninteractive apt install -y mono-complete mono-xbuild fsharp
- mono --version

- curl -o nuget.exe $NUGET_451_URL
- mono nuget.exe restore src/TgSharp.sln
- xbuild src/TgSharp.Core/TgSharp.Core.csproj

stocknewmono_build:
image: ubuntu:20.04
stage: build
script:
# https://askubuntu.com/a/1013396
- DEBIAN_FRONTEND=noninteractive apt install -y mono-complete mono-xbuild fsharp
- mono --version

- curl -o nuget.exe $NUGET_540_URL
- mono nuget.exe restore src/TgSharp.sln
- xbuild src/TgSharp.Core/TgSharp.Core.csproj

newmono_build:
image: ubuntu:18.04
stage: build
artifacts:
paths:
- bin/*.zip
expire_in: 50days
script:
- ./scripts/install_mono_from_microsoft_deb_packages.sh

- curl -o nuget.exe $NUGET_540_URL
- mono nuget.exe restore src/TgSharp.sln
- msbuild src/TgSharp.Core/TgSharp.Core.csproj
Loading