Skip to content

Commit 33acde1

Browse files
authored
Merge back changes from Release 1.0.0 (#27)
1 parent ef6d367 commit 33acde1

File tree

10 files changed

+91
-63
lines changed

10 files changed

+91
-63
lines changed

.github_changelog_generator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
user=nanoframework
2-
project=lib-nanoFramework.Hardware.Esp32
2+
project=lib-nanoFramework.Hardware.Esp32
33
issues=true
44
add_issues_wo_labels=false
55
add_pr_wo_labels=false

CHANGELOG.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
# Change Log
22

3-
## [**Changes available only in 'Preview' NuGet packages:**](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/tree/HEAD)
4-
3+
## [v1.0.0](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/tree/v1.0.0) (2018-10-17)
54
**Implemented enhancements:**
65

7-
- Update snk to match mscorlib [\#17](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/17)
8-
- Add WiFi event category [\#14](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/14)
9-
- Add SerialDevice event type [\#11](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/11)
10-
- Update mscorlib reference to 1.0.0-preview049 [\#8](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/8)
11-
- Added the Network event in the enum [\#7](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/7)
12-
- Update nuget refs [\#5](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/5)
13-
- Revert DateTime package \(now it's back in mscorlib\) [\#4](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/4)
14-
- Update corlib reference [\#2](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/2)
15-
- Update project [\#1](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/1)
6+
- Update strong name key to match mscorlib [\#12](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/12)
7+
8+
**Fixed bugs:**
9+
10+
- Fix typo in WakeupByTimer method name [\#4](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/4)
1611

1712
**Documentation and other chores:**
1813

19-
- 📦 Bumps nanoFramework.CoreLibrary from 1.0.1-preview116 to 1.0.1-preview118 [\#25](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/25)
20-
- 📦 Bumps nanoFramework.CoreLibrary from 1.0.1-preview103 to 1.0.1-preview116 [\#24](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/24)
21-
- Bump nanoFramework.CoreLibrary from 1.0.0-preview073 to 1.0.1-preview094 in /source [\#18](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/18)
22-
- Fix nuget version dependency [\#16](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/16)
23-
- Bump nanoFramework.CoreLibrary from 1.0.0-preview062 to 1.0.0-preview073 in /source [\#15](https://github.com/nanoframework/lib-nanoFramework.Runtime.Events/pull/15)
14+
- Update 3 NuGet dependencies [\#25](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/25)
15+
- Bumps nanoFramework.Windows.Devices.Gpio from 1.0.0-preview226 to 1.0.0-preview228 [\#24](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/24)
16+
- Update 3 NuGet dependencies [\#23](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/23)
17+
- Update 3 NuGet dependencies [\#22](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/22)
18+
- Update 3 NuGet dependencies [\#21](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/21)
19+
- Add High res timer class [\#15](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/15)
20+
- Bump nanoFramework.Runtime.Events from 1.0.0-preview188 to 1.0.0-preview191 in /source [\#14](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/14)
21+
- Bump nanoFramework.Windows.Devices.Gpio from 1.0.0-preview197 to 1.0.0-preview199 in /source [\#13](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/13)
22+
- Bump nanoFramework.CoreLibrary, Devices.Gpio and Runtime.Events in /source [\#9](https://github.com/nanoframework/lib-nanoFramework.Hardware.Esp32/pull/9)
2423

2524

2625

appveyor.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
# configuration these branches
2-
branches:
3-
only:
4-
- master
5-
- /dev.*/
6-
- /release.*/
1+
# configuration for all branches
72

83
image: Visual Studio 2017
94

@@ -42,11 +37,13 @@ environment:
4237
secure: E3bCMe4LtDdAhHSYRcLp0N6DixJe1m8TNxhYeJW/GnqM3WXdRqsgkHSbwootPjJQtOQJrps4twmzTVzofLSVgPgbzU8PxU0AkJV7zwkyVOE=
4338

4439
init:
45-
- git config --global core.autocrlf true
46-
- git config --global credential.helper store
47-
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):[email protected]`n"
48-
- git config --global user.email "%GitHubUserEmail%"
49-
- git config --global user.name "%GitHubUserName%"
40+
- git config --global core.autocrlf true
41+
- git config --global credential.helper store
42+
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):[email protected]`n"
43+
- git config --global user.email "%GitHubUserEmail%"
44+
- git config --global user.name "%GitHubUserName%"
45+
- ps: "$headers = if($env:APPVEYOR_PULL_REQUEST_NUMBER){\n @{\n \"Authorization\" = \"Basic $env:GitRestAuth\"\n \"Content-type\" = \"application/json\"\n}\n\n$pr = Invoke-RestMethod -Uri \"https://api.github.com/repos/$env:APPVEYOR_REPO_NAME/pulls/$env:APPVEYOR_PULL_REQUEST_NUMBER\" -Headers $headers -Method GET\n\nif($pr.user.login -eq \"nfbot\" -and $pr.body -match \"*[version update]*\")\n{\n # commit was from nfbot AND it's taged as a [version update]\n # OK to skip AppVeyor build \n \"Version update only. Skipping build.\" | Write-Host -BackgroundColor White -ForegroundColor Blue\n Exit-AppveyorBuild\n} }\n"
46+
- ps: "if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq \"\")\n{\n \n if($env:APPVEYOR_REPO_COMMIT_AUTHOR -eq \"nfbot\" -and $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -like \"*[version update]*\")\n {\n # commit was from nfbot AND it's taged as a [version update]\n # OK to skip AppVeyor build \n \"Version update only. Skipping build.\" | Write-Host -BackgroundColor White -ForegroundColor Blue\n Exit-AppveyorBuild\n }\n}"
5047

5148
install:
5249
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
@@ -82,6 +79,11 @@ before_deploy:
8279
8380
Push-AppveyorArtifact $env:APPVEYOR_BUILD_FOLDER\source\Nuget.nanoFramework.Hardware.Esp32\bin\Release\nanoFramework.Hardware.Esp32.$env:GitVersion_NuGetVersionV2.nupkg
8481
82+
after_deploy:
83+
# for this environment variable to work here it has to be set in AppVeyor UI
84+
- nuget push source\Nuget.nanoFramework.Hardware.Esp32\bin\Release\nanoFramework.Hardware.Esp32.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
85+
- nuget push source\Nuget.nanoFramework.Hardware.Esp32.DELIVERABLES\bin\Release\nanoFramework.Hardware.Esp32.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
86+
8587
# requires APPVEYOR_DISCORD_WEBHOOK_URL enviroment variable set with Discord webhook URL
8688
on_failure:
8789
- ps: |
@@ -101,6 +103,7 @@ for:
101103
branches:
102104
only:
103105
- master
106+
- /v.*/
104107

105108
deploy:
106109
- provider: NuGet
@@ -118,6 +121,8 @@ for:
118121
draft: true
119122
prerelease: false
120123
force_update: true
124+
on:
125+
appveyor_repo_tag: false
121126

122127
-
123128
branches:
@@ -135,11 +140,8 @@ for:
135140
draft: true
136141
prerelease: true
137142
force_update: true
138-
139-
after_deploy:
140-
# for this environment variable to work here it has to be set in AppVeyor UI
141-
- nuget push source\Nuget.nanoFramework.Hardware.Esp32\bin\Release\nanoFramework.Hardware.Esp32.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
142-
- nuget push source\Nuget.nanoFramework.Hardware.Esp32.DELIVERABLES\bin\Release\nanoFramework.Hardware.Esp32.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package
143+
on:
144+
appveyor_repo_tag: false
143145

144146
-
145147
branches:
@@ -162,3 +164,5 @@ for:
162164
draft: true
163165
prerelease: true
164166
force_update: true
167+
on:
168+
appveyor_repo_tag: false

commit-assemblyinfo-changes.ps1

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
1-
# only need to commit assembly info changes when build is NOT for a pull-request
2-
if ($env:appveyor_pull_request_number)
1+
# Copyright (c) 2018 The nanoFramework project contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
# skip updating assembly info changes if build is a pull-request or not a tag (master OR release)
5+
if ($env:appveyor_pull_request_number -or
6+
($env:APPVEYOR_REPO_BRANCH -eq "master" -and $env:APPVEYOR_REPO_TAG -eq 'true') -or
7+
($env:APPVEYOR_REPO_BRANCH -match "^release*" -and $env:APPVEYOR_REPO_TAG -eq 'true') -or
8+
$env:APPVEYOR_REPO_TAG -eq "true")
39
{
4-
'Skip committing assembly info changes as this is a PR build...' | Write-Host -ForegroundColor White
10+
'Skip committing assembly info changes...' | Write-Host -ForegroundColor White
511
}
612
else
713
{
814
# updated assembly info files
915
git add "source\nanoFramework.Hardware.Esp32\Properties\AssemblyInfo.cs"
10-
git commit -m "Update assembly info file for v$env:GitVersion_NuGetVersionV2" -m"[version update]"
16+
git commit -m "Update assembly info file for v$env:GitVersion_NuGetVersionV2 [skip ci]" -m"[version update]"
1117
git push origin --porcelain -q > $null
1218

1319
'Updated assembly info...' | Write-Host -ForegroundColor White -NoNewline
1420
'OK' | Write-Host -ForegroundColor Green
21+
}
22+
23+
# update assembly info in nf-interpreter if we are in development branch or if this is tag (master OR release)
24+
if ($env:APPVEYOR_REPO_BRANCH -match "^dev*" -or $env:APPVEYOR_REPO_TAG -eq "true")
25+
{
26+
'Updating assembly version in nf-interpreter...' | Write-Host -ForegroundColor White -NoNewline
1527

1628
# clone nf-interpreter repo (only a shallow clone with last commit)
1729
git clone https://github.com/nanoframework/nf-interpreter -b develop --depth 1 -q
@@ -51,7 +63,7 @@ else
5163

5264
# commit changes
5365
git add -A 2>&1
54-
git commit -m"$commitMessage" -m"[version update]" -q
66+
git commit -m"$commitMessage [skip ci]" -m"[version update]" -q
5567
git push --set-upstream origin "$newBranch" --porcelain -q > $null
5668

5769
# start PR

generate-change-log.ps1

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
1-
# generate change log when build is NOT for a pull-request
2-
if ($env:appveyor_pull_request_number)
1+
# Copyright (c) 2018 The nanoFramework project contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
# generate change log when build is NOT a pull-request or not a tag (master OR release)
5+
if ($env:appveyor_pull_request_number -or
6+
($env:APPVEYOR_REPO_BRANCH -eq "master" -and $env:APPVEYOR_REPO_TAG -eq 'true') -or
7+
($env:APPVEYOR_REPO_BRANCH -match "^release*" -and $env:APPVEYOR_REPO_TAG -eq 'true') -or
8+
$env:APPVEYOR_REPO_TAG -eq "true")
39
{
4-
'Skip change log processing as this is a PR build...' | Write-Host -ForegroundColor White
10+
'Skip change log processing...' | Write-Host -ForegroundColor White
511
}
612
else
713
{
814
# need this to keep ruby happy
915
md c:\tmp
1016

11-
# generate change log
12-
# version includes commits
13-
bundle exec github_changelog_generator --token $env:GitHubToken
17+
if ($env:APPVEYOR_REPO_BRANCH -eq "master" -or $env:APPVEYOR_REPO_BRANCH -match "^release*")
18+
{
19+
# generate change log including future version
20+
bundle exec github_changelog_generator --token $env:GitHubToken --future-release "v$env:GitVersion_MajorMinorPatch"
21+
}
22+
else
23+
{
24+
# generate change log
25+
# version includes commits
26+
bundle exec github_changelog_generator --token $env:GitHubToken
27+
}
1428

1529
# updated changelog and the updated assembly info files
1630
git add CHANGELOG.md
1731
git commit -m "Update CHANGELOG for v$env:GitVersion_NuGetVersionV2"
18-
# need to wrap the git command bellow so it doesn't throw an error because of redirecting the output to stderr
19-
git push origin --porcelain | Write-Host
32+
git push origin --porcelain -q > $null
2033
}

source/Nuget.nanoFramework.Hardware.Esp32.DELIVERABLES/Nuget.nanoFramework.Hardware.Esp32.DELIVERABLES.nuproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
</ItemGroup>
3939
<ItemGroup>
4040
<Dependency Include="nanoFramework.CoreLibrary">
41-
<Version>[1.0.1-preview134]</Version>
41+
<Version>[1.0.4]</Version>
4242
</Dependency>
4343
</ItemGroup>
4444
<ItemGroup>
4545
<Dependency Include="nanoFramework.Runtime.Events">
46-
<Version>[1.0.0-preview234]</Version>
46+
<Version>[1.0.0]</Version>
4747
</Dependency>
4848
</ItemGroup>
4949
<ItemGroup>
5050
<Dependency Include="nanoFramework.Windows.Devices.Gpio">
51-
<Version>[1.0.0-preview228]</Version>
51+
<Version>[1.0.0]</Version>
5252
</Dependency>
5353
</ItemGroup>
5454
<PropertyGroup Label="Globals">

source/Nuget.nanoFramework.Hardware.Esp32/Nuget.nanoFramework.Hardware.Esp32.nuproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@
3535
</ItemGroup>
3636
<ItemGroup>
3737
<Dependency Include="nanoFramework.CoreLibrary">
38-
<Version>[1.0.1-preview134]</Version>
38+
<Version>[1.0.4]</Version>
3939
</Dependency>
4040
</ItemGroup>
4141
<ItemGroup>
4242
<Dependency Include="nanoFramework.Runtime.Events">
43-
<Version>[1.0.0-preview234]</Version>
43+
<Version>[1.0.0]</Version>
4444
</Dependency>
4545
</ItemGroup>
4646
<ItemGroup>
4747
<Dependency Include="nanoFramework.Windows.Devices.Gpio">
48-
<Version>[1.0.0-preview228]</Version>
48+
<Version>[1.0.0]</Version>
4949
</Dependency>
5050
</ItemGroup>
5151
<PropertyGroup Label="Globals">

source/nanoFramework.Hardware.Esp32/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
// [assembly: AssemblyVersion("1.0.0.0")]
2828
[assembly: AssemblyVersion("1.0.0.0")]
2929
[assembly: AssemblyFileVersion("1.0.0.0")]
30-
[assembly: AssemblyInformationalVersion("1.0.0-preview042")]
30+
[assembly: AssemblyInformationalVersion("1.0.0-rc001")]

source/nanoFramework.Hardware.Esp32/nanoFramework.Hardware.Esp32.nfproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
<Name>nanoFramework.Hardware.Esp32</Name>
4646
</PropertyGroup>
4747
<ItemGroup>
48-
<NFMDP_PE_LoadHints Include="..\packages\nanoFramework.CoreLibrary.1.0.1-preview134\lib\mscorlib.dll">
48+
<NFMDP_PE_LoadHints Include="..\packages\nanoFramework.CoreLibrary.1.0.4\lib\mscorlib.dll">
4949
<InProject>false</InProject>
5050
</NFMDP_PE_LoadHints>
51-
<NFMDP_PE_LoadHints Include="..\packages\nanoFramework.Runtime.Events.1.0.0-preview234\lib\nanoFramework.Runtime.Events.dll">
51+
<NFMDP_PE_LoadHints Include="..\packages\nanoFramework.Runtime.Events.1.0.0\lib\nanoFramework.Runtime.Events.dll">
5252
<InProject>false</InProject>
5353
</NFMDP_PE_LoadHints>
54-
<NFMDP_PE_LoadHints Include="..\packages\nanoFramework.Windows.Devices.Gpio.1.0.0-preview228\lib\nanoFramework.Windows.Devices.Gpio.dll">
54+
<NFMDP_PE_LoadHints Include="..\packages\nanoFramework.Windows.Devices.Gpio.1.0.0\lib\nanoFramework.Windows.Devices.Gpio.dll">
5555
<InProject>false</InProject>
5656
</NFMDP_PE_LoadHints>
5757
</ItemGroup>
@@ -73,16 +73,16 @@
7373
<None Include="packages.config" />
7474
</ItemGroup>
7575
<ItemGroup>
76-
<Reference Include="mscorlib, Version=1.0.1.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
77-
<HintPath>..\packages\nanoFramework.CoreLibrary.1.0.1-preview134\lib\mscorlib.dll</HintPath>
76+
<Reference Include="mscorlib, Version=1.0.4.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
77+
<HintPath>..\packages\nanoFramework.CoreLibrary.1.0.4\lib\mscorlib.dll</HintPath>
7878
<Private>True</Private>
7979
</Reference>
8080
<Reference Include="nanoFramework.Runtime.Events, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
81-
<HintPath>..\packages\nanoFramework.Runtime.Events.1.0.0-preview234\lib\nanoFramework.Runtime.Events.dll</HintPath>
81+
<HintPath>..\packages\nanoFramework.Runtime.Events.1.0.0\lib\nanoFramework.Runtime.Events.dll</HintPath>
8282
<Private>True</Private>
8383
</Reference>
8484
<Reference Include="Windows.Devices.Gpio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
85-
<HintPath>..\packages\nanoFramework.Windows.Devices.Gpio.1.0.0-preview228\lib\Windows.Devices.Gpio.dll</HintPath>
85+
<HintPath>..\packages\nanoFramework.Windows.Devices.Gpio.1.0.0\lib\Windows.Devices.Gpio.dll</HintPath>
8686
<Private>True</Private>
8787
</Reference>
8888
</ItemGroup>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="nanoFramework.CoreLibrary" version="1.0.1-preview134" targetFramework="netnanoframework10" />
4-
<package id="nanoFramework.Runtime.Events" version="1.0.0-preview234" targetFramework="netnanoframework10" />
5-
<package id="nanoFramework.Windows.Devices.Gpio" version="1.0.0-preview228" targetFramework="netnanoframework10" />
3+
<package id="nanoFramework.CoreLibrary" version="1.0.4" targetFramework="netnanoframework10" />
4+
<package id="nanoFramework.Runtime.Events" version="1.0.0" targetFramework="netnanoframework10" />
5+
<package id="nanoFramework.Windows.Devices.Gpio" version="1.0.0" targetFramework="netnanoframework10" />
66
<package id="NuProj" version="0.20.4-beta" developmentDependency="true" />
77
<package id="NuProj.Common" version="0.20.4-beta" developmentDependency="true" />
88
</packages>

0 commit comments

Comments
 (0)