mirror of
https://gitee.com/openharmony/advertising_oaid
synced 2024-11-27 01:50:40 +00:00
Description: oaid sync
Feature or Bugfix: feature Binary Source: NO Signed-off-by: xiangjiang <xiangjiang@huawei.com>
This commit is contained in:
parent
6047ec2d04
commit
86a68f67fd
2
BUILD.gn
2
BUILD.gn
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//domains/cloud/oaid/oaid.gni")
|
||||
import("//domains/advertising/oaid/oaid.gni")
|
||||
|
||||
################################################################################
|
||||
|
||||
|
@ -7,7 +7,7 @@ The Open Anonymous Device Identifier (OAID) service facilitates personalized ad
|
||||
## Directory Structure
|
||||
|
||||
```
|
||||
/domains/cloud/oaid # Service code of the OAID service component
|
||||
/domains/advertising/oaid # Service code of the OAID service component
|
||||
├── interfaces # API code
|
||||
├── profile # Service configuration profile
|
||||
├── services # Service code
|
||||
|
@ -8,7 +8,7 @@
|
||||
## 目录
|
||||
|
||||
```
|
||||
/domains/cloud/oaid # 广告标识服务部件业务代码
|
||||
/domains/advertising/oaid # 广告标识服务部件业务代码
|
||||
├── interfaces # 接口代码
|
||||
├── profile # 服务配置文件
|
||||
├── services # 服务代码
|
||||
|
15
bundle.json
15
bundle.json
@ -5,7 +5,7 @@
|
||||
"license": "Apache License 2.0",
|
||||
"publishAs": "code-segment",
|
||||
"segment": {
|
||||
"destPath": "domains/cloud/oaid"
|
||||
"destPath": "domains/advertising/oaid"
|
||||
},
|
||||
"dirs": {},
|
||||
"scripts": {},
|
||||
@ -42,10 +42,19 @@
|
||||
},
|
||||
"build": {
|
||||
"sub_component": [
|
||||
"//domains/cloud/oaid:oaid_native_packages"
|
||||
"//domains/advertising/oaid:oaid_native_packages"
|
||||
],
|
||||
"inner_api": [
|
||||
{
|
||||
"header": {
|
||||
"header_base": "//domains/advertising/oaid/interfaces/innerkits/include/",
|
||||
"header_files": []
|
||||
},
|
||||
"name": "//domains/advertising/oaid/interfaces/innerkits:oaid_client"
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
"//domains/cloud/oaid/test/fuzztest:fuzztest"
|
||||
"//domains/advertising/oaid/test/fuzztest:fuzztest"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
# 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("//domains/cloud/oaid/oaid.gni")
|
||||
import("//domains/advertising/oaid/oaid.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
config("oaid_client_config") {
|
||||
@ -27,8 +27,15 @@ ohos_shared_library("oaid_client") {
|
||||
"src/oaid_service_proxy.cpp",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
ubsan = true
|
||||
}
|
||||
|
||||
configs = [ ":oaid_client_config" ]
|
||||
public_configs = [ ":oaid_client_config" ]
|
||||
innerapi_tags = ["platformsdk"]
|
||||
deps = [
|
||||
"${oaid_utils_path}:oaid_utils",
|
||||
]
|
||||
@ -38,6 +45,7 @@ ohos_shared_library("oaid_client") {
|
||||
"safwk:system_ability_fwk",
|
||||
"samgr:samgr_proxy",
|
||||
]
|
||||
version_script = "liboaidclient.versionscript"
|
||||
subsystem_name = "advertising"
|
||||
part_name = "oaid"
|
||||
}
|
||||
|
22
interfaces/innerkits/liboaidclient.versionscript
Normal file
22
interfaces/innerkits/liboaidclient.versionscript
Normal file
@ -0,0 +1,22 @@
|
||||
# Copyright (c) 2023 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.
|
||||
|
||||
1.0 {
|
||||
global:
|
||||
extern "C++" {
|
||||
*GetInstance*;
|
||||
*GetOAID*;
|
||||
};
|
||||
local:
|
||||
*;
|
||||
};
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//domains/cloud/oaid/oaid.gni")
|
||||
import("//domains/advertising/oaid/oaid.gni")
|
||||
import("//build/ohos.gni")
|
||||
|
||||
cflags = []
|
||||
@ -33,13 +33,19 @@ config("native_module_config") {
|
||||
|
||||
ohos_shared_library("oaid") {
|
||||
include_dirs = [
|
||||
"//domains/cloud/oaid/interfaces/innerkits/include",
|
||||
"//domains/advertising/oaid/interfaces/innerkits/include",
|
||||
"../utils/native/include",
|
||||
"./include",
|
||||
"//third_party/node/src",
|
||||
"//third_party/libuv/include",
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
ubsan = true
|
||||
}
|
||||
|
||||
configs = [ ":native_module_config"]
|
||||
|
||||
sources = [
|
||||
|
2
oaid.gni
2
oaid.gni
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
import("//build/ohos.gni")
|
||||
|
||||
oaid_root_path = "//domains/cloud/oaid"
|
||||
oaid_root_path = "//domains/advertising/oaid"
|
||||
|
||||
kits_path = "${oaid_root_path}/interfaces/kits"
|
||||
|
||||
|
14
patches/patches.json
Normal file
14
patches/patches.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"patches": [
|
||||
{
|
||||
"project":"manifest",
|
||||
"path":"manifest",
|
||||
"pr_url":"https://gitee.com/openharmony/manifest/pulls/1678"
|
||||
},
|
||||
{
|
||||
"project":"build",
|
||||
"path":"build",
|
||||
"pr_url":"https://gitee.com/openharmony/build/pulls/2457"
|
||||
}
|
||||
]
|
||||
}
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//domains/cloud/oaid/oaid.gni")
|
||||
import("//domains/advertising/oaid/oaid.gni")
|
||||
|
||||
config("oaid_service_config") {
|
||||
visibility = [ ":*" ]
|
||||
@ -29,6 +29,12 @@ ohos_shared_library("oaid_service") {
|
||||
":oaid_service_config"
|
||||
]
|
||||
|
||||
sanitize = {
|
||||
boundary_sanitize = true
|
||||
integer_overflow = true
|
||||
ubsan = true
|
||||
}
|
||||
|
||||
sources = [
|
||||
"oaid_manager/src/oaid_service.cpp",
|
||||
"oaid_manager/src/oaid_service_stub.cpp",
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//domains/cloud/oaid/oaid.gni")
|
||||
import("//domains/advertising/oaid/oaid.gni")
|
||||
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//domains/cloud/oaid/oaid.gni")
|
||||
import("//domains/advertising/oaid/oaid.gni")
|
||||
|
||||
config("utils_config") {
|
||||
include_dirs = [
|
||||
|
Loading…
Reference in New Issue
Block a user