Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
Develop @8cd852bec5ba16c483361e01c94fff20e55adaef
  • Loading branch information
ChafikUnity committed Dec 6, 2023
1 parent 6510109 commit c16b055
Show file tree
Hide file tree
Showing 1,297 changed files with 78,643 additions and 8,773 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ build.bat.meta
[Oo]bj/
[Bb]uilds/

*.vsconfig
*.csproj
*.csproj.meta
*.unityproj
Expand Down Expand Up @@ -57,6 +58,7 @@ ReferenceProject/Assets/Unity Cloud.meta
ReferenceProject/Assets/Samples
ReferenceProject/Assets/Samples.meta
ReferenceProject/UIElementsSchema
ReferenceProject/Assets/Utilities/Git/Resources
ReferenceProject/Assets/Utilities/Git/Resources*
ReferenceProject/Assets/Utilities/Git/Resources.git
ReferenceProject/Assets/Resources.meta
ReferenceProject/ProjectSettings/Packages/com.unity.services.core/Settings.json
242 changes: 242 additions & 0 deletions Packages/com.unity.gis.unit/.README - External.md

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions Packages/com.unity.gis.unit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
artifacts/**
build/**
.build_script/**
node_modules/**
.DS_Store
.npmrc
!Documentation~
!.Documentation
npm-debug.log
build.sh.meta
build.bat.meta
.idea/
19 changes: 19 additions & 0 deletions Packages/com.unity.gis.unit/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
artifacts/**
build/**
.build_script/**
node_modules/**
Documentation/ApiDocs/**
Documentation~/ApiDocs/**
.DS_Store
.npmrc
.npmignore
.gitignore
CONTRIBUTING.md
CONTRIBUTING.md.meta
QAReport.md
QAReport.md.meta
.gitlab-ci.yml
build.sh
build.sh.meta
build.bat
build.bat.meta
60 changes: 60 additions & 0 deletions Packages/com.unity.gis.unit/.yamato/environment.metafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
test_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
runtime: playmode
versions: [2020.3, 2021.1, trunk]
platform: desktop
components:
- editor
- il2cpp
- name: mac
type: Unity::VM::osx
image: package-ci/mac:stable
flavor: m1.mac
runtime: playmode
versions: [2020.3, 2021.1, trunk]
platform: desktop
components:
- editor
- il2cpp
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu:stable
flavor: b1.large
runtime: playmode
versions: [2020.3, 2021.1, trunk]
platform: desktop
components:
- editor
- name: centos
type: Unity::VM::GPU
image: package-ci/centos:stable
flavor: b1.large
runtime: playmode
versions: [2020.3, 2021.1]
platform: desktop
components:
- editor
- name: iOS
type: Unity::mobile::iPhone
image: mobile/macos-10.15-testing:latest
flavor: b1.medium
versions: [2020.3, 2021.1, trunk]
platform: iOS
runtime: playmode
components:
- editor
- il2cpp
- name: Android
type: Unity::mobile::shield
image: mobile/android-execution-base:stable
flavor: b1.medium
versions: [2020.3, 2021.1, trunk]
platform: android
runtime: playmode
components:
- editor
- il2cpp
package-assembly: com.unity.gis.unit
61 changes: 61 additions & 0 deletions Packages/com.unity.gis.unit/.yamato/package-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{% metadata_file .yamato/environment.metafile -%}

---
{% for platform in test_platforms -%}
{% for version in platform.versions -%}
test_coverage_{{ platform.name }}_{{ version }}:
name : Test Coverage on {{ platform.name }} ({{ version }})
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
commands:
{% if platform.platform == "desktop" %}- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci package test -u {{ version }} --platform {{ platform.runtime }} --type isolation-tests --extra-create-project-arg=-upmNoDefaultPackages --enable-code-coverage --code-coverage-options 'generateAdditionalMetrics;generateHtmlReport;assemblyFilters:+{{ package-assembly }}*'
{% else %}- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
- unity-downloader-cli -c Editor -c {{ platform.name }} -c il2cpp -u trunk --fast --wait
- curl -s https://artifactory.internal.unity3d.com/core-automation/tools/utr-standalone/utr{% if platform.name == "Android" %}.bat{% endif %} --output utr{% if platform.name == "Android" %}.bat{% endif %}{% if platform.name == "iOS" %}
- chmod +x ./utr{% endif %}
- ./utr{% if platform.name == "Android" %}.bat{% endif %} --suite=playmode --platform={{ platform.name }} --editor-location=.Editor --testproject=TestProject --player-save-path=build/players --artifacts_path=build/logs --build-only
- |
{% if platform.name == "Android" %}set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
{% endif %}./utr --suite=playmode --platform={{ platform.name }} --player-load-path=build/players --artifacts_path=build/test-results
{% endif %}
artifacts:
logs:
paths:
- "{% if platform.platform == "desktop" %}upm-ci~{% else %}build{% endif %}/test-results/**/*"
dependencies:
- .yamato/package-pack.yml#pack
{% endfor -%}
{% endfor -%}

{% for platform in test_platforms -%}
tests_coverage_all_{{ platform.name }}:
name: _Run All Coverage Tests ({{ platform.name }})
dependencies:
- .yamato/package-pack.yml#pack
{% for version in platform.versions -%}
- .yamato/package-coverage.yml#test_coverage_{{ platform.name }}_{{ version }}
{% endfor -%}
{% endfor -%}

test_trigger:
name: Package Tests Trigger
triggers:
branches:
only:
- "master"
pull_requests:
- targets:
only:
- "/.*/"
dependencies:
- .yamato/package-pack.yml#pack
{% for platform in test_platforms -%}
{% for version in platform.versions -%}
- .yamato/package-coverage.yml#test_coverage_{{platform.name}}_{{version}}
{% endfor -%}
{% endfor -%}
13 changes: 13 additions & 0 deletions Packages/com.unity.gis.unit/.yamato/package-pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pack:
name: Pack
agent:
type: Unity::VM
image: package-ci/ubuntu:stable
flavor: b1.large
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci package pack
artifacts:
packages:
paths:
- "upm-ci~/packages/**/*"
47 changes: 47 additions & 0 deletions Packages/com.unity.gis.unit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Changelog
All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.2.0] - 2022-10-20

This update adds formatting tools for Units to aid in converting and casting units from one value to other values.

### Added
- Format Providers
- UnitFormatter
- FractionalUnitFormatter
- MultiUnitFormatter
- MultiFractionalUnitFormatter
- Mixed number support when parsing units
- Rich text is now stripped before units are parsed
- Unit and UnitDef's ToString and ToFullString now accept a Format provider, defaulting to UnitFormatter.

## [Unreleased]

### Modified

- [Breaking] Changed the UnitDef constructor signatures by creating the new UnitNaming struct.

## [0.1.0] - 2021-11-10

### Added

This is the first release of *Unity Package Geospatial Unit*.

Initial release

Implemented the following unit types:
- Angle
- AngularArea
- Area
- Currency
- Frequency
- Length
- Mass
- Radioactivity
- SubstanceAmount
- Temperature
- Time
- Volume
7 changes: 7 additions & 0 deletions Packages/com.unity.gis.unit/CHANGELOG.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Packages/com.unity.gis.unit/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Contributing

## If you are interested in contributing, here are some ground rules:
* ... Define guidelines & rules for what contributors need to know to successfully make Pull requests against your repo ...

## All contributions are subject to the [Unity Contribution Agreement(UCA)](https://unity3d.com/legal/licenses/Unity_Contribution_Agreement)
By making a pull request, you are confirming agreement to the terms and conditions of the UCA, including that your Contributions are your original creation and that you have complete right and authority to make your Contributions.

## Once you have a change ready following these ground rules. Simply make a pull request
7 changes: 7 additions & 0 deletions Packages/com.unity.gis.unit/CONTRIBUTING.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Packages/com.unity.gis.unit/Documentation~/TableOfContents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* [UPM Package Starter Kit](index)
* [Guide for features packages](tools-package-guide)
* [Guide for sample packages](sample-package-guide)
* [Guide for test packages](test-package-guide)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c16b055

Please sign in to comment.