Skip to content

Commit c16b055

Browse files
committed
Release 0.3.0
Develop @8cd852bec5ba16c483361e01c94fff20e55adaef
1 parent 6510109 commit c16b055

File tree

1,297 files changed

+78643
-8773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,297 files changed

+78643
-8773
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ build.bat.meta
2727
[Oo]bj/
2828
[Bb]uilds/
2929

30+
*.vsconfig
3031
*.csproj
3132
*.csproj.meta
3233
*.unityproj
@@ -57,6 +58,7 @@ ReferenceProject/Assets/Unity Cloud.meta
5758
ReferenceProject/Assets/Samples
5859
ReferenceProject/Assets/Samples.meta
5960
ReferenceProject/UIElementsSchema
60-
ReferenceProject/Assets/Utilities/Git/Resources
61+
ReferenceProject/Assets/Utilities/Git/Resources*
6162
ReferenceProject/Assets/Utilities/Git/Resources.git
6263
ReferenceProject/Assets/Resources.meta
64+
ReferenceProject/ProjectSettings/Packages/com.unity.services.core/Settings.json

Packages/com.unity.gis.unit/.README - External.md

Lines changed: 242 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
artifacts/**
2+
build/**
3+
.build_script/**
4+
node_modules/**
5+
.DS_Store
6+
.npmrc
7+
!Documentation~
8+
!.Documentation
9+
npm-debug.log
10+
build.sh.meta
11+
build.bat.meta
12+
.idea/
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
artifacts/**
2+
build/**
3+
.build_script/**
4+
node_modules/**
5+
Documentation/ApiDocs/**
6+
Documentation~/ApiDocs/**
7+
.DS_Store
8+
.npmrc
9+
.npmignore
10+
.gitignore
11+
CONTRIBUTING.md
12+
CONTRIBUTING.md.meta
13+
QAReport.md
14+
QAReport.md.meta
15+
.gitlab-ci.yml
16+
build.sh
17+
build.sh.meta
18+
build.bat
19+
build.bat.meta
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
test_platforms:
2+
- name: win
3+
type: Unity::VM
4+
image: package-ci/win10:stable
5+
flavor: b1.large
6+
runtime: playmode
7+
versions: [2020.3, 2021.1, trunk]
8+
platform: desktop
9+
components:
10+
- editor
11+
- il2cpp
12+
- name: mac
13+
type: Unity::VM::osx
14+
image: package-ci/mac:stable
15+
flavor: m1.mac
16+
runtime: playmode
17+
versions: [2020.3, 2021.1, trunk]
18+
platform: desktop
19+
components:
20+
- editor
21+
- il2cpp
22+
- name: ubuntu
23+
type: Unity::VM
24+
image: package-ci/ubuntu:stable
25+
flavor: b1.large
26+
runtime: playmode
27+
versions: [2020.3, 2021.1, trunk]
28+
platform: desktop
29+
components:
30+
- editor
31+
- name: centos
32+
type: Unity::VM::GPU
33+
image: package-ci/centos:stable
34+
flavor: b1.large
35+
runtime: playmode
36+
versions: [2020.3, 2021.1]
37+
platform: desktop
38+
components:
39+
- editor
40+
- name: iOS
41+
type: Unity::mobile::iPhone
42+
image: mobile/macos-10.15-testing:latest
43+
flavor: b1.medium
44+
versions: [2020.3, 2021.1, trunk]
45+
platform: iOS
46+
runtime: playmode
47+
components:
48+
- editor
49+
- il2cpp
50+
- name: Android
51+
type: Unity::mobile::shield
52+
image: mobile/android-execution-base:stable
53+
flavor: b1.medium
54+
versions: [2020.3, 2021.1, trunk]
55+
platform: android
56+
runtime: playmode
57+
components:
58+
- editor
59+
- il2cpp
60+
package-assembly: com.unity.gis.unit
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{% metadata_file .yamato/environment.metafile -%}
2+
3+
---
4+
{% for platform in test_platforms -%}
5+
{% for version in platform.versions -%}
6+
test_coverage_{{ platform.name }}_{{ version }}:
7+
name : Test Coverage on {{ platform.name }} ({{ version }})
8+
agent:
9+
type: {{ platform.type }}
10+
image: {{ platform.image }}
11+
flavor: {{ platform.flavor}}
12+
commands:
13+
{% if platform.platform == "desktop" %}- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
14+
- 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 }}*'
15+
{% else %}- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
16+
- unity-downloader-cli -c Editor -c {{ platform.name }} -c il2cpp -u trunk --fast --wait
17+
- 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" %}
18+
- chmod +x ./utr{% endif %}
19+
- ./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
20+
- |
21+
{% if platform.name == "Android" %}set ANDROID_DEVICE_CONNECTION=%BOKKEN_DEVICE_IP%
22+
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe connect %BOKKEN_DEVICE_IP%
23+
start %ANDROID_SDK_ROOT%\platform-tools\adb.exe devices
24+
{% endif %}./utr --suite=playmode --platform={{ platform.name }} --player-load-path=build/players --artifacts_path=build/test-results
25+
{% endif %}
26+
artifacts:
27+
logs:
28+
paths:
29+
- "{% if platform.platform == "desktop" %}upm-ci~{% else %}build{% endif %}/test-results/**/*"
30+
dependencies:
31+
- .yamato/package-pack.yml#pack
32+
{% endfor -%}
33+
{% endfor -%}
34+
35+
{% for platform in test_platforms -%}
36+
tests_coverage_all_{{ platform.name }}:
37+
name: _Run All Coverage Tests ({{ platform.name }})
38+
dependencies:
39+
- .yamato/package-pack.yml#pack
40+
{% for version in platform.versions -%}
41+
- .yamato/package-coverage.yml#test_coverage_{{ platform.name }}_{{ version }}
42+
{% endfor -%}
43+
{% endfor -%}
44+
45+
test_trigger:
46+
name: Package Tests Trigger
47+
triggers:
48+
branches:
49+
only:
50+
- "master"
51+
pull_requests:
52+
- targets:
53+
only:
54+
- "/.*/"
55+
dependencies:
56+
- .yamato/package-pack.yml#pack
57+
{% for platform in test_platforms -%}
58+
{% for version in platform.versions -%}
59+
- .yamato/package-coverage.yml#test_coverage_{{platform.name}}_{{version}}
60+
{% endfor -%}
61+
{% endfor -%}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pack:
2+
name: Pack
3+
agent:
4+
type: Unity::VM
5+
image: package-ci/ubuntu:stable
6+
flavor: b1.large
7+
commands:
8+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
9+
- upm-ci package pack
10+
artifacts:
11+
packages:
12+
paths:
13+
- "upm-ci~/packages/**/*"
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Changelog
2+
All notable changes to this package will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [0.2.0] - 2022-10-20
8+
9+
This update adds formatting tools for Units to aid in converting and casting units from one value to other values.
10+
11+
### Added
12+
- Format Providers
13+
- UnitFormatter
14+
- FractionalUnitFormatter
15+
- MultiUnitFormatter
16+
- MultiFractionalUnitFormatter
17+
- Mixed number support when parsing units
18+
- Rich text is now stripped before units are parsed
19+
- Unit and UnitDef's ToString and ToFullString now accept a Format provider, defaulting to UnitFormatter.
20+
21+
## [Unreleased]
22+
23+
### Modified
24+
25+
- [Breaking] Changed the UnitDef constructor signatures by creating the new UnitNaming struct.
26+
27+
## [0.1.0] - 2021-11-10
28+
29+
### Added
30+
31+
This is the first release of *Unity Package Geospatial Unit*.
32+
33+
Initial release
34+
35+
Implemented the following unit types:
36+
- Angle
37+
- AngularArea
38+
- Area
39+
- Currency
40+
- Frequency
41+
- Length
42+
- Mass
43+
- Radioactivity
44+
- SubstanceAmount
45+
- Temperature
46+
- Time
47+
- Volume

Packages/com.unity.gis.unit/CHANGELOG.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Contributing
2+
3+
## If you are interested in contributing, here are some ground rules:
4+
* ... Define guidelines & rules for what contributors need to know to successfully make Pull requests against your repo ...
5+
6+
## All contributions are subject to the [Unity Contribution Agreement(UCA)](https://unity3d.com/legal/licenses/Unity_Contribution_Agreement)
7+
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.
8+
9+
## Once you have a change ready following these ground rules. Simply make a pull request

0 commit comments

Comments
 (0)