Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
File renamed without changes.
6 changes: 6 additions & 0 deletions .buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["@react-native-community"]
};
69 changes: 69 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*

[include]

[libs]
node_modules/react-native/interface.js
node_modules/react-native/flow/

[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

munge_underscores=true

module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.137.0
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
20 changes: 9 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# OSX
#
.DS_Store
Expand All @@ -7,7 +8,7 @@
node_modules/
npm-debug.log
yarn-error.log
.eslintcache

# Xcode
#
Expand All @@ -28,26 +29,23 @@ DerivedData
*.ipa
*.xcuserstate
project.xcworkspace


# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
.cxx
# Legacy Eclipse Settings
.settings/

# Externals
libs
package/cpp/skia/

# BUCK
buck-out/
\.buckd/
*.keystore

# Build
dist
package/lib
# Editor config
.vscode

# eslintcache
.eslintcache
7 changes: 0 additions & 7 deletions .gitmodules

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
File renamed without changes.
File renamed without changes.
44 changes: 44 additions & 0 deletions .yarnclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# test directories
__tests__
test
tests
powered-test

# asset directories
docs
doc
website
images

# examples
example
examples

# code coverage directories
coverage
.nyc_output

# build scripts
Makefile
Gulpfile.js
Gruntfile.js

# configs
appveyor.yml
circle.yml
codeship-services.yml
codeship-steps.yml
wercker.yml
.tern-project
.gitattributes
.editorconfig
.*ignore
.eslintrc
.jshintrc
.flowconfig
.documentup.json
.yarn-metadata.json
.travis.yml

# misc
*.md
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v1.3.7
## 更新内容
* feat: add Openharmony support for react-native-skia
6 changes: 1 addition & 5 deletions COMMITTERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@

不区分先后顺序

- [MaDiXin](https://gitee.com/MaDiXin)
- [xiafeng_xf_admin](https://gitee.com/xiafeng_xf_admin)
- [ChenLixi](https://gitee.com/Louis-C7)
- [LinJiacheng](https://gitee.com/LLLLLLin)
- [ZhengJinshou](https://gitee.com/longziz)
- [xiafeng_xf_admin](https://gitee.com/xiafeng_xf_admin)
242 changes: 95 additions & 147 deletions OAT.xml

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @react-native-oh-tpl/react-native-skia
# @react-native-ohos/react-native-skia

This project is based on [react-native-skia v1.3.7](https://github.com/Shopify/react-native-skia/releases/tag/v1.3.7)
This project is based on [react-native-skia@1.3.7](https://github.com/Shopify/react-native-skia/releases/tag/v1.3.7)

## Documentation

Expand All @@ -11,3 +11,4 @@ This project is based on [react-native-skia v1.3.7](https://github.com/Shopify/r
## License

This library is licensed under [The MIT License (MIT)](https://github.com/Shopify/react-native-skia/blob/main/LICENSE.md)

14 changes: 14 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module-resolver',
{
alias: {
'@react-native-community/push-notification-ios': './js',
},
cwd: 'babelrc',
},
],
],
};
19 changes: 19 additions & 0 deletions example/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/

{
"extends": "@react-native",
"rules": {
"react-native/no-inline-styles": "off",
"react/no-unstable-nested-components": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": "warn",
"react-hooks/exhaustive-deps": "off",
"radix": "off",
"prettier/prettier": "warn",
"max-lines": "off"
}
}
12 changes: 10 additions & 2 deletions tester/.gitignore → example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.husky
bundle.harmony.js
package-lock.json
*.hbc
lintCppResult.txt

# ---

# OSX
#
.DS_Store
Expand All @@ -20,7 +28,6 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -33,6 +40,7 @@ local.properties
.cxx/
*.keystore
!debug.keystore
BuildProfile.ets

# node.js
#
Expand All @@ -56,8 +64,8 @@ yarn-error.log
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
*.htrace
6 changes: 6 additions & 0 deletions example/.node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
18
2 changes: 1 addition & 1 deletion tester/.prettierrc.js → example/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
bracketSpacing: true,
singleQuote: true,
trailingComma: 'all',
};
6 changes: 6 additions & 0 deletions example/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
{}
File renamed without changes.
2 changes: 1 addition & 1 deletion tester/babel.config.js → example/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
presets: ['module:@react-native/babel-preset'],
plugins: [
'react-native-reanimated/plugin',
],
Expand Down
9 changes: 9 additions & 0 deletions example/contexts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/

import React from 'react';

export const AppParamsContext = React.createContext(undefined);
24 changes: 24 additions & 0 deletions example/harmony/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# it may cause some issues when building the project when switching branches
package-lock.json
# we add this because we want to keep the signing configs out of git
/build-profile.json5

rnoh_modules

**/oh-package-lock.json5
# ---

/node_modules
/local.properties
/.idea
**/build
/.hvigor
.cxx
/.clangd
/.clang-format
/.clang-tidy
/oh_modules
hvigorw
hvigorw.bat
hvigor/hvigor-wrapper.js

Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"app": {
"bundleName": "com.rnoh.tester",
"bundleName": "com.harmony.wechat.lib.demo",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:app_icon",
"label": "$string:app_name",
"distributedNotificationEnabled": true
"label": "$string:app_name"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"string": [
{
"name": "app_name",
"value": "rnoh"
"value": "RN Tester"
}
]
}
Loading