@react-native-ohos/react-native-svg 15.12.1-rc.11 → 15.12.1-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Use these variables when you tailor your ArkTS code. They must be of the const type.
3
3
  */
4
- export const HAR_VERSION = '15.12.1-rc.11';
4
+ export const HAR_VERSION = '15.12.1-rc.12';
5
5
  export const BUILD_MODE_NAME = 'debug';
6
6
  export const DEBUG = true;
7
7
  export const TARGET_NAME = 'default';
@@ -6,7 +6,7 @@
6
6
  name: '@react-native-ohos/react-native-svg',
7
7
  type: 'module',
8
8
  main: 'index.ets',
9
- version: '15.12.1-rc.11',
9
+ version: '15.12.1-rc.12',
10
10
  dependencies: {
11
11
  "@rnoh/react-native-openharmony": "file:../../node_modules/@react-native-oh/react-native-harmony/harmony/react_native_openharmony.har"
12
12
  },
@@ -122,10 +122,11 @@ void ImageSourceResolver::imageDownloadFail(std::string uri) {
122
122
  auto &listeners = it->second;
123
123
  for (auto listener : listeners) {
124
124
  auto weaklistener = listener.lock();
125
- if (weaklistener) {
126
- weaklistener->onImageSourceCacheDownloadFileFail();
127
- removeListenerForURI(uri, weaklistener);
125
+ if (!weaklistener) {
126
+ continue;
128
127
  }
128
+ weaklistener->onImageSourceCacheDownloadFileFail();
129
+ removeListenerForURI(uri, weaklistener);
129
130
  }
130
131
  }
131
132
  }
@@ -9,24 +9,6 @@ import type { TurboModule, TurboModuleContext } from '@rnoh/react-native-openhar
9
9
  import { RNSVGSvgViewModule } from './RNSVGSvgViewModule';
10
10
  import { RNSVGRenderableModule } from './RNSVGRenderableModule';
11
11
  import { RNSVGImageModule } from './RNSVGImageModule';
12
- import { hilog } from '@kit.PerformanceAnalysisKit';
13
-
14
- class MyLog {
15
- static e(logTag: string, content: string) {
16
- const maxSize = 1024;
17
- if (content.length <= maxSize) {
18
- // 长度小于等于限制直接打印
19
- hilog.error(0xFF00, logTag, '%{public}s', content);
20
- } else {
21
- while (content.length > maxSize) {
22
- // 循环分段打印
23
- let logContent = content.substring(0, maxSize);
24
- content = content.replace(logContent, '');
25
- hilog.error(0xFF00, logTag, '%{public}s', logContent); // 打印剩余日志
26
- }
27
- }
28
- }
29
- }
30
12
 
31
13
  class SvgTurboModulesFactory extends TurboModulesFactory {
32
14
 
@@ -52,7 +34,6 @@ class SvgTurboModulesFactory extends TurboModulesFactory {
52
34
 
53
35
  export class SvgPackage extends RNPackage {
54
36
  createTurboModulesFactory(ctx: TurboModuleContext): TurboModulesFactory {
55
- MyLog.e('[kuang] SvgPackage createTurboModulesFactory = ', JSON.stringify(ctx));
56
37
  return new SvgTurboModulesFactory(ctx);
57
38
  }
58
39
  }
package/harmony/svg.har CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/react-native-svg",
3
- "version": "15.12.1-rc.11",
3
+ "version": "15.12.1-rc.12",
4
4
  "description": "",
5
5
  "react-native": "src/index",
6
6
  "main": "lib/commonjs/index",