From 9072f0ad5f4811300480ac5c5407a53dbaeba89f Mon Sep 17 00:00:00 2001 From: huniuniu Date: Fri, 24 Dec 2021 13:57:53 +0800 Subject: [PATCH] add system resource. jiabing.hu@huawei.com Signed-off-by: huniuniu --- systemres/BUILD.gn | 29 + systemres/SystemResources.p7b | Bin 0 -> 3426 bytes systemres/main/config.json | 32 + .../main/resources/base/element/color.json | 732 ++++ .../resources/base/element/color_dark.json | 732 ++++ .../base/element/color_transparent.json | 572 +++ .../main/resources/base/element/float.json | 496 +++ .../resources/base/element/id_defined.json | 3160 +++++++++++++++++ .../main/resources/base/element/string.json | 12 + .../main/resources/base/media/.gitignore | 0 10 files changed, 5765 insertions(+) create mode 100644 systemres/BUILD.gn create mode 100644 systemres/SystemResources.p7b create mode 100644 systemres/main/config.json create mode 100644 systemres/main/resources/base/element/color.json create mode 100644 systemres/main/resources/base/element/color_dark.json create mode 100644 systemres/main/resources/base/element/color_transparent.json create mode 100644 systemres/main/resources/base/element/float.json create mode 100644 systemres/main/resources/base/element/id_defined.json create mode 100644 systemres/main/resources/base/element/string.json create mode 100644 systemres/main/resources/base/media/.gitignore diff --git a/systemres/BUILD.gn b/systemres/BUILD.gn new file mode 100644 index 00000000..893e8b42 --- /dev/null +++ b/systemres/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +ohos_resources("main_res") { + sources = [ "main/resources" ] + hap_profile = "./main/config.json" +} + +ohos_hap("systemres_hap") { + deps = [ ":main_res" ] + hap_profile = "./main/config.json" + hap_name = "SystemResources" + module_install_dir = "app" + certificate_profile = "./SystemResources.p7b" + subsystem_name = "global" + part_name = "systemres" +} diff --git a/systemres/SystemResources.p7b b/systemres/SystemResources.p7b new file mode 100644 index 0000000000000000000000000000000000000000..82f264cacec16388dea1595808caa3c76069712f GIT binary patch literal 3426 zcmcgvYj6|S6}BF>V~ntg0RshW#KSHi`>rh6mJ=Ym(&~j*vSi7&91*jURu5a+m8F$e z7KIQ&+!z9sW(sb2#JmhNKsrD$&P*UB1qx|kAk=9oh8p525H~c1BoqqmuI({413x;M zK|i!}&OP_u@1FCW@6H8r(Q8R5vzoL`KZtnA{MNY02;!mzd>#)<1EQpqMNL{BArSI; zi3uPseDFAw*BTf03gf~Xi^UB@DD0z135f>?afukp19?C^XVC4WT&x?KBgTV4iOUzJ zLq11@<|fdML2d#SuJMsH;R)fKmz^1j_*|@C4x~j6g@TaC-Rz&NQ0|f_$!*q!cPT>kfaY0<)y-dE;f4DX`Doe_PKpdoaPQC z;eH6J(HXLpsM(@Z>y)qs?ep46Os7*~F{KiA5FVJ(A+Se>;znhDOa)_z$5ZdEt2LIH zOe&bM!k7k&Dr2x7@fa!)*k*z23`TYZvxz}HHdTemv;bx3GN+~@Qm#=qIw}9C-+m=f)af}7ejuIfK$*n*-8rn*wDvsLM7hg2@tsm*>{C5SFi!GZo5%wi|C z;E5#8B5DiAf=V&xh;sb?^ESnIV~6#y;v z>wu-oR!tfL9t;Xo4G{-ns)sEUq+_fq*v%o=mSduDU6nWRCPN*BowhV5i2<|V+;kQT20@;rXZf&25qjbWMygorR3#VL!M!08Cr_hK%prhmAG9TBsA&USFX7v@wd z%(XQ;i&Y^fO}He(MqXXW#wVA0Oa+9$axlsvJmC=`H5_Ezi-TS8x!gSk+g@%8TaWsvadOAQ(+`uo#=PA%L!E!jL~ z$LhPSZv*}OM%BL~XisoQ!{$wQ!G?O{y2j33nHOiboz;wQN@RJ2vpnh<;L#M~lexo@ zJjdz{5hF-mARWph&U`+K_zVh7-SW+;%^zgS_pLm$qvr27;Tbu?>l5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