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

fix: change default User Agent #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
29 changes: 29 additions & 0 deletions .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: dart
# token: ${{ secrets.GH_TOKEN }}
- uses: actions/checkout@v4
- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git config --global url."https://${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/"
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 1.0.1 (2024-06-14)


### Bug Fixes

* change User Agent ([#1](https://github.com/kamiKAC/dartcarwings/issues/1)) ([38c4db6](https://github.com/kamiKAC/dartcarwings/commit/38c4db6ebdc5e41eb2ea68fdadf4ea71d193b965))


### Miscellaneous Chores

* release 1.0.1 ([ad7751a](https://github.com/kamiKAC/dartcarwings/commit/ad7751a407531b9da00599d651f10581b53323cc))

## 0.0.1

- First release
2 changes: 1 addition & 1 deletion lib/src/carwings_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CarwingsSession {
var password;
late CarwingsRegion region;
var userAgent =
'Dalvik/2.1.0 (Linux; U; Android 5.1.1; Android SDK built for x86 Build/LMY48X)';
'Dalvik/2.1.0 (Linux; U; Android 12; SM-A426N Build/SP1A.210812.016)';
bool loggedIn = false;
var gdcUserId;
var timeZoneProvided;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dartcarwings
description: A library for the Nissan Leaf Carwings API.
version: 1.0.0
version: 1.0.1
homepage: https://gitlab.com/tobiaswkjeldsen/dartcarwings
author: Tobias Westergaard Kjeldsen <[email protected]>

Expand Down