Skip to content

Commit

Permalink
feat: DriveSmart v1.2.1 (#25)
Browse files Browse the repository at this point in the history
* - add metadata

* - v1.2.1

* - add credentials for DriveSmart

* - update readme file

* - revise readme file

* - use Dependencies.Gradle 7.6.1

* - add support methods
  • Loading branch information
tuyen-vuduc authored Mar 19, 2024
1 parent 4abd916 commit dd04293
Show file tree
Hide file tree
Showing 129 changed files with 887 additions and 36 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish-android-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- io.github.sceneview--sceneview
- com.shakebugs
- com.facebook.android
- DriveSmart
jobs:
build-then-publish:
environment: production
Expand All @@ -46,13 +47,25 @@ jobs:
java-version: '11'

- name: Set MAPBOX_DOWNLOADS_TOKEN
if: ${{ inputs.LIB_FOLDER == 'com.mapbox.maps--android' }}
run: |
echo "MAPBOX_DOWNLOADS_TOKEN=$MAPBOX_DOWNLOADS_TOKEN" >> ~/.gradle/gradle.properties
cat ~/.gradle/gradle.properties
shell: bash
env:
MAPBOX_DOWNLOADS_TOKEN : ${{secrets.MAPBOX_DOWNLOADS_TOKEN}}

- name: Set DriveSmart credentials
if: ${{ inputs.LIB_FOLDER == 'DriveSmart' }}
run: |
echo "tfsdrivesmart_user=$TFSDRIVESMART_USER" >> ~/.gradle/gradle.properties
echo "tfsdrivesmart_password=$TFSDRIVESMART_PASSWORD" >> ~/.gradle/gradle.properties
cat ~/.gradle/gradle.properties
shell: bash
env:
TFSDRIVESMART_USER: ${{secrets.TFSDRIVESMART_USER}}
TFSDRIVESMART_PASSWORD: ${{secrets.TFSDRIVESMART_PASSWORD}}

- name: Install android workload
run: |
dotnet workload install android
Expand Down
10 changes: 5 additions & 5 deletions dotnet-binding-utils.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "metadata", "metadata", "{11
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotnetBindings.Cake", "src\DotnetBindings.Cake\DotnetBindings.Cake.csproj", "{95670EEE-39E4-42C4-BF73-B28109EC962D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Build", "qs\com.shakebugs\build\Build.csproj", "{A756BCEC-3358-4B56-9903-AC6DED4EF42B}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Build", "qs\DriveSmart\build\Build.csproj", "{876D7FCD-239F-4CA1-B244-1CA0C9B9C491}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -51,10 +51,10 @@ Global
{95670EEE-39E4-42C4-BF73-B28109EC962D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{95670EEE-39E4-42C4-BF73-B28109EC962D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{95670EEE-39E4-42C4-BF73-B28109EC962D}.Release|Any CPU.Build.0 = Release|Any CPU
{A756BCEC-3358-4B56-9903-AC6DED4EF42B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A756BCEC-3358-4B56-9903-AC6DED4EF42B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A756BCEC-3358-4B56-9903-AC6DED4EF42B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A756BCEC-3358-4B56-9903-AC6DED4EF42B}.Release|Any CPU.Build.0 = Release|Any CPU
{876D7FCD-239F-4CA1-B244-1CA0C9B9C491}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{876D7FCD-239F-4CA1-B244-1CA0C9B9C491}.Debug|Any CPU.Build.0 = Debug|Any CPU
{876D7FCD-239F-4CA1-B244-1CA0C9B9C491}.Release|Any CPU.ActiveCfg = Release|Any CPU
{876D7FCD-239F-4CA1-B244-1CA0C9B9C491}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"relocated":"androidx.work:work-runtime-ktx","versionMappings":[]}
2 changes: 1 addition & 1 deletion metadata/android/androidx.collection/collection/1.4.0.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"revision":1}
{"revision":2}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.0.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.2.2-rc1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.2.2-rc3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.2.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.2.4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.2.5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":6}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.2.6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.3.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":6}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.4.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.4.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":2}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.4.3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":2}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.5.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.5.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":2}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.5.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":3}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.6.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/2.6.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-common/nuget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"packageId":"Xamarin.AndroidX.Room.Common","versionMappings":[]}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.3.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":6}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.4.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.4.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":3}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.4.3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":2}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.5.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.5.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":2}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.5.2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":3}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.6.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/2.6.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
1 change: 1 addition & 0 deletions metadata/android/androidx.room/room-ktx/nuget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"packageId":"Xamarin.AndroidX.Room.Room.Ktx","versionMappings":[]}
1 change: 1 addition & 0 deletions metadata/android/androidx.work/work-runtime-ktx/1.0.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"fallbackVersion": "2.0.1"}
2 changes: 1 addition & 1 deletion metadata/android/dev.romainguy/kotlin-math/1.5.3.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"revision":1}
{"revision":2}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":4}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":2}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":1}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"revision":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"packageId":"Xamarin.Kotlin.Reflect","versionMappings":[]}
17 changes: 17 additions & 0 deletions qs/DriveSmart/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
**tuyen-vuduc is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may require or install dependencies which are governed by additional licenses.**

Note: This component depends on DriveSmart libraries, which is subject to their own licenses.

**The 3-Clause BSD License**

Copyright 2024 tuyen-vuduc

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
57 changes: 57 additions & 0 deletions qs/DriveSmart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Build the library

```
sh build.sh --base-path $PWD
```

# Home page

https://github.com/DriveSmart-MobileTeam/dstracker_integration_sample

# Additional setup

## OPTION 1: Everything in CSPROJ file
1/ Change your CSPROJ file to have Gradle configuration
```
<ItemGroup>
<GradleRepository Include="https://tfsdrivesmart.pkgs.visualstudio.com/5243836b-8777-4cb6-aded-44ab518bc748/_packaging/Android_Libraries/maven/v1">
<Repository>
maven {
url 'https://tfsdrivesmart.pkgs.visualstudio.com/5243836b-8777-4cb6-aded-44ab518bc748/_packaging/Android_Libraries/maven/v1'
name 'Android_Libraries'
credentials {
username 'YOUR_USER_NAME'
password 'YOUR_PASSWORD'
}
}
</Repository>
</GradleRepository>
</ItemGroup>
```

**NOTE**: Please consider using PROPS file to not commit your credentials into the VCS.

## OPTION 2: Use ~/.gradle/gradle.properties file
1/ Change your CSPROJ file to have Gradle configuration
```
<ItemGroup>
<GradleRepository Include="https://tfsdrivesmart.pkgs.visualstudio.com/5243836b-8777-4cb6-aded-44ab518bc748/_packaging/Android_Libraries/maven/v1">
<Repository>
maven {
url 'https://tfsdrivesmart.pkgs.visualstudio.com/5243836b-8777-4cb6-aded-44ab518bc748/_packaging/Android_Libraries/maven/v1'
name 'Android_Libraries'
credentials {
username tfsdrivesmart_user
password tfsdrivesmart_password
}
}
</Repository>
</GradleRepository>
</ItemGroup>
```

2/ Set your username and password in gradle.properties file
```
tfsdrivesmart_user=YOUR_USERNAME
tfsdrivesmart_password=YOUR_PASSWORD
```
Binary file added qs/DriveSmart/assets/tv-drivesmart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions qs/DriveSmart/build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dotnet run --project build/Build.csproj -- $args
exit $LASTEXITCODE;
1 change: 1 addition & 0 deletions qs/DriveSmart/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dotnet run --project ./build/Build.csproj -- "$@"
2 changes: 2 additions & 0 deletions qs/DriveSmart/build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
binding-default.zip
Properties/launchSettings.json
Loading

0 comments on commit dd04293

Please sign in to comment.