Skip to content
This repository was archived by the owner on Dec 13, 2024. It is now read-only.

1. refactor: 删除非harmony平台代码。2.feat: 适配harmony平台 #1

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ jspm_packages
# Optional REPL history
.node_repl_history
.idea

# Dependency and build
harmony/splash_screen/oh_modules/
package-lock.json
oh-package-lock.json5
6 changes: 0 additions & 6 deletions android/.npmignore

This file was deleted.

37 changes: 0 additions & 37 deletions android/build.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions android/proguard-rules.pro

This file was deleted.

4 changes: 0 additions & 4 deletions android/src/main/AndroidManifest.xml

This file was deleted.

107 changes: 0 additions & 107 deletions android/src/main/java/org/devio/rn/splashscreen/SplashScreen.java

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions android/src/main/res/values/refs.xml

This file was deleted.

3 changes: 0 additions & 3 deletions android/src/main/res/values/strings.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/src/main/res/values/styles.xml

This file was deleted.

Binary file added harmony/splash_screen.har
Binary file not shown.
5 changes: 5 additions & 0 deletions harmony/splash_screen/BuildProfile.ets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default class BuildProfile {
static readonly HAR_VERSION = '3.3.0-0.0.1';
static readonly BUILD_MODE_NAME = 'debug';
static readonly DEBUG = true;
}
8 changes: 8 additions & 0 deletions harmony/splash_screen/build-profile.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"apiType": "stageMode",
"targets": [
{
"name": "default"
}
]
}
1 change: 1 addition & 0 deletions harmony/splash_screen/hvigorfile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { harTasks } from '@ohos/hvigor-ohos-plugin';
25 changes: 25 additions & 0 deletions harmony/splash_screen/index.ets
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* MIT License
*
* Copyright (C) 2024 Huawei Device Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

export * from "./src/main/ets/SplashScreenView"
18 changes: 18 additions & 0 deletions harmony/splash_screen/obfuscation-rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Define project specific obfuscation rules here.
# You can include the obfuscation configuration files in the current module's build-profile.json5.
#
# For more details, see
# https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md

# Obfuscation options:
# -disable-obfuscation: disable all obfuscations
# -enable-property-obfuscation: obfuscate the property names
# -enable-toplevel-obfuscation: obfuscate the names in the global scope
# -compact: remove unnecessary blank spaces and all line feeds
# -remove-log: remove all console.* statements
# -print-namecache: print the name cache that contains the mapping from the old names to new names
# -apply-namecache: reuse the given cache file

# Keep options:
# -keep-property-name: specifies property names that you want to keep
# -keep-global-name: specifies names that you want to keep in the global scope
13 changes: 13 additions & 0 deletions harmony/splash_screen/oh-package.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"license": "MIT",
"types": "",
"devDependencies": {},
"name": "@react-native-oh-tpl/react-native-splash-screen",
"description": "",
"main": "index.ets",
"type": "module",
"version": "3.3.0-0.0.1",
"dependencies": {
"@rnoh/react-native-openharmony": "file:../react_native_openharmony",
}
}
Loading