@react-native-ohos/lottie-react-native 6.4.2-rc.3 → 7.2.3-rc.2

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.
Files changed (45) hide show
  1. package/README.OpenSource +11 -0
  2. package/README.md +1 -1
  3. package/harmony/lottie/BuildProfile.ets +21 -0
  4. package/harmony/lottie/hvigorfile.ts +4 -0
  5. package/harmony/lottie/index.ets +2 -5
  6. package/harmony/lottie/oh-package.json5 +1 -1
  7. package/harmony/lottie/src/main/cpp/LottieAnimationViewPackage.h +3 -5
  8. package/harmony/lottie/src/main/cpp/generated/RNOH/generated/BaseLottieReactNativePackage.h +22 -32
  9. package/harmony/lottie/src/main/cpp/generated/RNOH/generated/components/LottieAnimationViewJSIBinder.h +3 -6
  10. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/EventEmitters.cpp +18 -20
  11. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/EventEmitters.h +15 -15
  12. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/Props.cpp +3 -5
  13. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/Props.h +16 -17
  14. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/ShadowNodes.cpp +1 -1
  15. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/ShadowNodes.h +3 -2
  16. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/States.cpp +2 -0
  17. package/harmony/lottie/src/main/cpp/generated/react/renderer/components/lottie_react_native/States.h +17 -1
  18. package/harmony/lottie/src/main/ets/LottieAnimationTools.ets +1 -1
  19. package/harmony/lottie/src/main/ets/LottieAnimationView.ets +1 -1
  20. package/harmony/lottie/src/main/ets/LottieAnimationViewPackage.ts +17 -0
  21. package/harmony/lottie/src/main/ets/LottieCompositionCache.ets +1 -1
  22. package/harmony/lottie/src/main/ets/common/Animation.ts +1 -1
  23. package/harmony/lottie/src/main/ets/common/AnimationType.ets +1 -1
  24. package/harmony/lottie/src/main/ets/common/TextUtils.ets +1 -1
  25. package/harmony/lottie/src/main/resources/base/media/icon.png +0 -0
  26. package/harmony/lottie/ts.ts +5 -0
  27. package/harmony/lottie.har +0 -0
  28. package/lib/commonjs/LottieAnimationViewNativeComponent.js +1 -1
  29. package/lib/commonjs/index.js +3 -0
  30. package/lib/commonjs/index.js.map +1 -1
  31. package/lib/module/LottieAnimationViewNativeComponent.js +1 -1
  32. package/lib/module/index.js +4 -0
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/typescript/index.d.ts.map +1 -1
  35. package/package.json +12 -19
  36. package/src/LottieAnimationViewNativeComponent.ts +1 -1
  37. package/src/codegenUtils.ts +1 -1
  38. package/src/index.tsx +4 -0
  39. package/README.en.md +0 -36
  40. package/harmony/lottie/LICENSE +0 -15
  41. package/harmony/lottie/NOTICE +0 -244
  42. package/harmony/lottie/OAT.xml +0 -54
  43. package/harmony/lottie/README.OpenSource +0 -20
  44. package/harmony/lottie/src/main/ets/LottieAnimationViewPackage.ets +0 -26
  45. package/harmony/lottie/ts.ets +0 -5
@@ -0,0 +1,11 @@
1
+ [
2
+ {
3
+ "Name": "lottie-react-native",
4
+ "License": "Apache License",
5
+ "License File": " LICENSE ",
6
+ "Version Number": "7.2.2",
7
+ "Owner" : "xiafeng@huawei.com",
8
+ "Upstream URL": "https://github.com/lottie-react-native/lottie-react-native",
9
+ "Description": "Lottie wrapper for React Native."
10
+ }
11
+ ]
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @react-native-ohos/lottie-react-native
2
2
 
3
- This project is based on [lottie-react-native](https://github.com/react-native-oh-library/lottie-react-native)
3
+ This project is based on [lottie-react-native v7.2.2](https://github.com/lottie-react-native/lottie-react-native/tree/v7.2.2)
4
4
 
5
5
  ## Documentation
6
6
 
@@ -0,0 +1,21 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a Apache-2.0 license that can be
3
+ // found in the LICENSE file.
4
+
5
+ /**
6
+ * Use these variables when you tailor your ArkTS code. They must be of the const type.
7
+ */
8
+ export const HAR_VERSION = '7.2.3-rc.1';
9
+ export const BUILD_MODE_NAME = 'debug';
10
+ export const DEBUG = true;
11
+ export const TARGET_NAME = 'default';
12
+
13
+ /**
14
+ * BuildProfile Class is used only for compatibility purposes.
15
+ */
16
+ export default class BuildProfile {
17
+ static readonly HAR_VERSION = HAR_VERSION;
18
+ static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
19
+ static readonly DEBUG = DEBUG;
20
+ static readonly TARGET_NAME = TARGET_NAME;
21
+ }
@@ -1 +1,5 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a Apache-2.0 license that can be
3
+ // found in the LICENSE file.
4
+
1
5
  export { harTasks } from '@ohos/hvigor-ohos-plugin';
@@ -1,8 +1,5 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
5
-
6
- import { LottieAnimationViewPackage } from './src/main/ets/LottieAnimationViewPackage'
7
- export * from './src/main/ets/LottieAnimationView'
8
- export default LottieAnimationViewPackage
5
+ export * from './src/main/ets/LottieAnimationView'
@@ -6,7 +6,7 @@
6
6
  "name": "@react-native-ohos/lottie-react-native",
7
7
  "description": "Native part of lottie-react-native",
8
8
  "main": "index.ets",
9
- "version": "6.4.2-rc.3",
9
+ "version": "7.2.3-rc.2",
10
10
  "dependencies": {
11
11
  "@rnoh/react-native-openharmony": "file:../react_native_openharmony",
12
12
  "@ohos/lottie": "2.0.25-rc.1"
@@ -1,8 +1,7 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
- #ifndef LOTTIEANIMATIONVIEWPACKAGE_H
5
- #define LOTTIEANIMATIONVIEWPACKAGE_H
4
+
6
5
  #pragma once
7
6
 
8
7
  #include "generated/RNOH/generated/BaseLottieReactNativePackage.h"
@@ -11,5 +10,4 @@ class LottieAnimationViewPackage : public BaseLottieReactNativePackage {
11
10
  using Super = BaseLottieReactNativePackage;
12
11
  using Super::Super;
13
12
  };
14
- } // namespace rnoh
15
- #endif // LOTTIEANIMATIONVIEWPACKAGE_H
13
+ } // namespace rnoh
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * This code was generated by "react-native codegen-lib-harmony"
3
3
  */
4
- #ifndef BASELOTTIEREACTNATIVEPACKAGE_H
5
- #define BASELOTTIEREACTNATIVEPACKAGE_H
4
+
6
5
  #pragma once
7
6
 
8
7
  #include <react/renderer/components/lottie_react_native/ComponentDescriptors.h>
@@ -14,31 +13,28 @@ namespace rnoh {
14
13
 
15
14
  class BaseLottieReactNativePackageTurboModuleFactoryDelegate : public TurboModuleFactoryDelegate {
16
15
  public:
17
- SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override
18
- {
16
+ SharedTurboModule createTurboModule(Context ctx, const std::string &name) const override {
19
17
  return nullptr;
20
18
  };
21
19
  };
22
20
 
23
21
  class BaseLottieReactNativePackageEventEmitRequestHandler : public EventEmitRequestHandler {
24
- public:
25
- void handleEvent(Context const &ctx) override
26
- {
27
- auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);
28
- if (eventEmitter == nullptr) {
29
- return;
30
- }
31
-
32
- std::vector<std::string> supportedEventNames = {
33
- "animationFinish",
34
- "animationFailure",
35
- "animationLoaded",
36
- };
37
- if (std::find(supportedEventNames.begin(), supportedEventNames.end(),
38
- ctx.eventName) != supportedEventNames.end()) {
39
- eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));
40
- }
22
+ public:
23
+ void handleEvent(Context const &ctx) override {
24
+ auto eventEmitter = ctx.shadowViewRegistry->getEventEmitter<facebook::react::EventEmitter>(ctx.tag);
25
+ if (eventEmitter == nullptr) {
26
+ return;
41
27
  }
28
+
29
+ std::vector<std::string> supportedEventNames = {
30
+ "animationFinish",
31
+ "animationFailure",
32
+ "animationLoaded",
33
+ };
34
+ if (std::find(supportedEventNames.begin(), supportedEventNames.end(), ctx.eventName) != supportedEventNames.end()) {
35
+ eventEmitter->dispatchEvent(ctx.eventName, ArkJS(ctx.env).getDynamic(ctx.payload));
36
+ }
37
+ }
42
38
  };
43
39
 
44
40
 
@@ -46,28 +42,23 @@ class BaseLottieReactNativePackage : public Package {
46
42
  public:
47
43
  BaseLottieReactNativePackage(Package::Context ctx) : Package(ctx){};
48
44
 
49
- std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override
50
- {
45
+ std::unique_ptr<TurboModuleFactoryDelegate> createTurboModuleFactoryDelegate() override {
51
46
  return std::make_unique<BaseLottieReactNativePackageTurboModuleFactoryDelegate>();
52
47
  }
53
48
 
54
- std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override
55
- {
49
+ std::vector<facebook::react::ComponentDescriptorProvider> createComponentDescriptorProviders() override {
56
50
  return {
57
- facebook::react::concreteComponentDescriptorProvider<
58
- facebook::react::LottieAnimationViewComponentDescriptor>(),
51
+ facebook::react::concreteComponentDescriptorProvider<facebook::react::LottieAnimationViewComponentDescriptor>(),
59
52
  };
60
53
  }
61
54
 
62
- ComponentJSIBinderByString createComponentJSIBinderByName() override
63
- {
55
+ ComponentJSIBinderByString createComponentJSIBinderByName() override {
64
56
  return {
65
57
  {"LottieAnimationView", std::make_shared<LottieAnimationViewJSIBinder>()},
66
58
  };
67
59
  };
68
60
 
69
- EventEmitRequestHandlers createEventEmitRequestHandlers() override
70
- {
61
+ EventEmitRequestHandlers createEventEmitRequestHandlers() override {
71
62
  return {
72
63
  std::make_shared<BaseLottieReactNativePackageEventEmitRequestHandler>(),
73
64
  };
@@ -75,4 +66,3 @@ class BaseLottieReactNativePackage : public Package {
75
66
  };
76
67
 
77
68
  } // namespace rnoh
78
- #endif // BASELOTTIEREACTNATIVEPACKAGE_H
@@ -8,8 +8,7 @@
8
8
  namespace rnoh {
9
9
  class LottieAnimationViewJSIBinder : public ViewComponentJSIBinder {
10
10
  protected:
11
- facebook::jsi::Object createNativeProps(facebook::jsi::Runtime &rt) override
12
- {
11
+ facebook::jsi::Object createNativeProps(facebook::jsi::Runtime &rt) override {
13
12
  auto object = ViewComponentJSIBinder::createNativeProps(rt);
14
13
  object.setProperty(rt, "resizeMode", true);
15
14
  object.setProperty(rt, "renderMode", true);
@@ -28,14 +27,12 @@ class LottieAnimationViewJSIBinder : public ViewComponentJSIBinder {
28
27
  return object;
29
28
  }
30
29
 
31
- facebook::jsi::Object createBubblingEventTypes(facebook::jsi::Runtime &rt) override
32
- {
30
+ facebook::jsi::Object createBubblingEventTypes(facebook::jsi::Runtime &rt) override {
33
31
  facebook::jsi::Object events(rt);
34
32
  return events;
35
33
  }
36
34
 
37
- facebook::jsi::Object createDirectEventTypes(facebook::jsi::Runtime &rt) override
38
- {
35
+ facebook::jsi::Object createDirectEventTypes(facebook::jsi::Runtime &rt) override {
39
36
  facebook::jsi::Object events(rt);
40
37
  events.setProperty(rt, "topAnimationFinish", createDirectEvent(rt, "onAnimationFinish"));
41
38
  events.setProperty(rt, "topAnimationFailure", createDirectEvent(rt, "onAnimationFailure"));
@@ -14,32 +14,30 @@
14
14
  namespace facebook {
15
15
  namespace react {
16
16
 
17
- void LottieAnimationViewEventEmitter::onAnimationFinish(OnAnimationFinish $event) const
18
- {
19
- dispatchEvent("animationFinish", [$event = std::move($event)](jsi::Runtime &runtime) {
20
- auto $payload = jsi::Object(runtime);
21
- $payload.setProperty(runtime, "isCancelled", $event.isCancelled);
22
- return $payload;
23
- });
17
+ void LottieAnimationViewEventEmitter::onAnimationFinish(OnAnimationFinish $event) const {
18
+ dispatchEvent("animationFinish", [$event=std::move($event)](jsi::Runtime &runtime) {
19
+ auto $payload = jsi::Object(runtime);
20
+ $payload.setProperty(runtime, "isCancelled", $event.isCancelled);
21
+ return $payload;
22
+ });
24
23
  }
25
24
 
26
25
 
27
- void LottieAnimationViewEventEmitter::onAnimationFailure(OnAnimationFailure $event) const
28
- {
29
- dispatchEvent("animationFailure", [$event = std::move($event)](jsi::Runtime &runtime) {
30
- auto $payload = jsi::Object(runtime);
31
- $payload.setProperty(runtime, "error", $event.error);
32
- return $payload;
33
- });
26
+ void LottieAnimationViewEventEmitter::onAnimationFailure(OnAnimationFailure $event) const {
27
+ dispatchEvent("animationFailure", [$event=std::move($event)](jsi::Runtime &runtime) {
28
+ auto $payload = jsi::Object(runtime);
29
+ $payload.setProperty(runtime, "error", $event.error);
30
+ return $payload;
31
+ });
34
32
  }
35
33
 
36
34
 
37
- void LottieAnimationViewEventEmitter::onAnimationLoaded(OnAnimationLoaded $event) const
38
- {
39
- dispatchEvent("animationLoaded", [](jsi::Runtime &runtime) {
40
- auto $payload = jsi::Object(runtime);
41
- return $payload;
42
- });
35
+ void LottieAnimationViewEventEmitter::onAnimationLoaded(OnAnimationLoaded $event) const {
36
+ dispatchEvent("animationLoaded", [](jsi::Runtime &runtime) {
37
+ auto $payload = jsi::Object(runtime);
38
+
39
+ return $payload;
40
+ });
43
41
  }
44
42
 
45
43
  } // namespace react
@@ -15,25 +15,25 @@
15
15
  namespace facebook {
16
16
  namespace react {
17
17
  class LottieAnimationViewEventEmitter : public ViewEventEmitter {
18
- public:
19
- using ViewEventEmitter::ViewEventEmitter;
18
+ public:
19
+ using ViewEventEmitter::ViewEventEmitter;
20
20
 
21
- struct OnAnimationFinish {
22
- bool isCancelled;
23
- };
21
+ struct OnAnimationFinish {
22
+ bool isCancelled;
23
+ };
24
24
 
25
- struct OnAnimationFailure {
26
- std::string error;
27
- };
25
+ struct OnAnimationFailure {
26
+ std::string error;
27
+ };
28
28
 
29
- struct OnAnimationLoaded {
30
- };
31
-
32
- void onAnimationFinish(OnAnimationFinish value) const;
29
+ struct OnAnimationLoaded {
30
+
31
+ };
32
+ void onAnimationFinish(OnAnimationFinish value) const;
33
33
 
34
- void onAnimationFailure(OnAnimationFailure value) const;
34
+ void onAnimationFailure(OnAnimationFailure value) const;
35
35
 
36
- void onAnimationLoaded(OnAnimationLoaded value) const;
37
- };
36
+ void onAnimationLoaded(OnAnimationLoaded value) const;
37
+ };
38
38
  } // namespace react
39
39
  } // namespace facebook
@@ -31,13 +31,11 @@ LottieAnimationViewProps::LottieAnimationViewProps(
31
31
  speed(convertRawProp(context, rawProps, "speed", sourceProps.speed, {0.0})),
32
32
  loop(convertRawProp(context, rawProps, "loop", sourceProps.loop, {false})),
33
33
  autoPlay(convertRawProp(context, rawProps, "autoPlay", sourceProps.autoPlay, {false})),
34
- enableMergePathsAndroidForKitKatAndAbove(convertRawProp(context, rawProps,
35
- "enableMergePathsAndroidForKitKatAndAbove", sourceProps.enableMergePathsAndroidForKitKatAndAbove, {false})),
36
- hardwareAccelerationAndroid(convertRawProp(context, rawProps, "hardwareAccelerationAndroid",
37
- sourceProps.hardwareAccelerationAndroid, {false})),
34
+ enableMergePathsAndroidForKitKatAndAbove(convertRawProp(context, rawProps, "enableMergePathsAndroidForKitKatAndAbove", sourceProps.enableMergePathsAndroidForKitKatAndAbove, {false})),
35
+ hardwareAccelerationAndroid(convertRawProp(context, rawProps, "hardwareAccelerationAndroid", sourceProps.hardwareAccelerationAndroid, {false})),
38
36
  cacheComposition(convertRawProp(context, rawProps, "cacheComposition", sourceProps.cacheComposition, {false})),
39
37
  colorFilters(convertRawProp(context, rawProps, "colorFilters", sourceProps.colorFilters, {}))
40
- {}
38
+ {}
41
39
 
42
40
  } // namespace react
43
41
  } // namespace facebook
@@ -17,26 +17,25 @@ namespace react {
17
17
 
18
18
  class LottieAnimationViewProps final : public ViewProps {
19
19
  public:
20
- LottieAnimationViewProps() = default;
21
- LottieAnimationViewProps(const PropsParserContext& context,
22
- const LottieAnimationViewProps &sourceProps, const RawProps &rawProps);
20
+ LottieAnimationViewProps() = default;
21
+ LottieAnimationViewProps(const PropsParserContext& context, const LottieAnimationViewProps &sourceProps, const RawProps &rawProps);
23
22
 
24
23
  #pragma mark - Props
25
24
 
26
- std::string resizeMode{};
27
- std::string renderMode{};
28
- std::string sourceName{};
29
- std::string sourceJson{};
30
- std::string sourceURL{};
31
- std::string imageAssetsFolder{};
32
- Float progress{0.0};
33
- double speed{0.0};
34
- bool loop{false};
35
- bool autoPlay{false};
36
- bool enableMergePathsAndroidForKitKatAndAbove{false};
37
- bool hardwareAccelerationAndroid{false};
38
- bool cacheComposition{false};
39
- folly::dynamic colorFilters{};
25
+ std::string resizeMode{};
26
+ std::string renderMode{};
27
+ std::string sourceName{};
28
+ std::string sourceJson{};
29
+ std::string sourceURL{};
30
+ std::string imageAssetsFolder{};
31
+ Float progress{0.0};
32
+ double speed{0.0};
33
+ bool loop{false};
34
+ bool autoPlay{false};
35
+ bool enableMergePathsAndroidForKitKatAndAbove{false};
36
+ bool hardwareAccelerationAndroid{false};
37
+ bool cacheComposition{false};
38
+ folly::dynamic colorFilters{};
40
39
  };
41
40
 
42
41
  } // namespace react
@@ -13,7 +13,7 @@
13
13
  namespace facebook {
14
14
  namespace react {
15
15
 
16
- const char LOTTIE_ANIMATION_VIEW_COMPONENT_NAME[] = "LottieAnimationView";
16
+ extern const char LottieAnimationViewComponentName[] = "LottieAnimationView";
17
17
 
18
18
  } // namespace react
19
19
  } // namespace facebook
@@ -19,15 +19,16 @@
19
19
  namespace facebook {
20
20
  namespace react {
21
21
 
22
- JSI_EXPORT extern const char LOTTIE_ANIMATION_VIEW_COMPONENT_NAME[32];
22
+ JSI_EXPORT extern const char LottieAnimationViewComponentName[];
23
23
 
24
24
  /*
25
25
  * `ShadowNode` for <LottieAnimationView> component.
26
26
  */
27
27
  using LottieAnimationViewShadowNode = ConcreteViewShadowNode<
28
- LOTTIE_ANIMATION_VIEW_COMPONENT_NAME,
28
+ LottieAnimationViewComponentName,
29
29
  LottieAnimationViewProps,
30
30
  LottieAnimationViewEventEmitter,
31
31
  LottieAnimationViewState>;
32
+
32
33
  } // namespace react
33
34
  } // namespace facebook
@@ -12,5 +12,7 @@
12
12
  namespace facebook {
13
13
  namespace react {
14
14
 
15
+
16
+
15
17
  } // namespace react
16
18
  } // namespace facebook
@@ -8,12 +8,28 @@
8
8
  */
9
9
  #pragma once
10
10
 
11
+ #ifdef ANDROID
12
+ #include <folly/dynamic.h>
13
+ #include <react/renderer/mapbuffer/MapBuffer.h>
14
+ #include <react/renderer/mapbuffer/MapBufferBuilder.h>
15
+ #endif
16
+
11
17
  namespace facebook {
12
18
  namespace react {
13
19
 
14
20
  class LottieAnimationViewState {
15
21
  public:
16
- LottieAnimationViewState() = default;
22
+ LottieAnimationViewState() = default;
23
+
24
+ #ifdef ANDROID
25
+ LottieAnimationViewState(LottieAnimationViewState const &previousState, folly::dynamic data){};
26
+ folly::dynamic getDynamic() const {
27
+ return {};
28
+ };
29
+ MapBuffer getMapBuffer() const {
30
+ return MapBufferBuilder::EMPTY();
31
+ };
32
+ #endif
17
33
  };
18
34
 
19
35
  } // namespace react
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -0,0 +1,17 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a Apache-2.0 license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import { RNPackage } from '@rnoh/react-native-openharmony/ts';
6
+ import type {DescriptorWrapperFactoryByDescriptorTypeCtx, DescriptorWrapperFactoryByDescriptorType} from '@rnoh/react-native-openharmony/ts';
7
+ import { RNC } from './generated/ts';
8
+
9
+ export class LottieAnimationViewPackage extends RNPackage {
10
+ createDescriptorWrapperFactoryByDescriptorType(ctx:
11
+ DescriptorWrapperFactoryByDescriptorTypeCtx):
12
+ DescriptorWrapperFactoryByDescriptorType {
13
+ return {
14
+ [RNC.LottieAnimationView.NAME]: (ctx) => new RNC.LottieAnimationView.DescriptorWrapper(ctx.descriptor)
15
+ }
16
+ }
17
+ }
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -0,0 +1,5 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a Apache-2.0 license that can be
3
+ // found in the LICENSE file.
4
+
5
+ export * from './src/main/ets/LottieAnimationViewPackage'
Binary file
@@ -7,7 +7,7 @@ exports.default = exports.Commands = void 0;
7
7
  var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
8
8
  var _codegenNativeCommands = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
10
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
11
11
  // Use of this source code is governed by a Apache-2.0 license that can be
12
12
  // found in the LICENSE file.
13
13
 
@@ -18,5 +18,8 @@ Object.keys(_types).forEach(function (key) {
18
18
  }
19
19
  });
20
20
  });
21
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
22
+ // Use of this source code is governed by a Apache-2.0 license that can be
23
+ // found in the LICENSE file.
21
24
  var _default = exports.default = _LottieView.LottieView;
22
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_LottieView","require","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_default","default","LottieView"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAA8C,IAAAS,QAAA,GAAAJ,OAAA,CAAAK,OAAA,GAC/BC,sBAAU","ignoreList":[]}
1
+ {"version":3,"names":["_LottieView","require","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_default","default","LottieView"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;;;;;;AAIA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AALA;AACA;AACA;AAAA,IAAAS,QAAA,GAAAJ,OAAA,CAAAK,OAAA,GAIeC,sBAAU","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -1,3 +1,7 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a Apache-2.0 license that can be
3
+ // found in the LICENSE file.
4
+
1
5
  import { LottieView } from 'lottie-react-native/src/LottieView';
2
6
  export * from 'lottie-react-native/src/types';
3
7
  export default LottieView;
@@ -1 +1 @@
1
- {"version":3,"names":["LottieView"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":"AAAA,SAASA,UAAU,QAAQ,oCAAoC;AAC/D,cAAc,+BAA+B;AAC7C,eAAeA,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["LottieView"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,oCAAoC;AAC/D,cAAc,+BAA+B;AAC7C,eAAeA,UAAU","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,cAAc,+BAA+B,CAAC;AAC9C,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,cAAc,+BAA+B,CAAC;AAC9C,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/lottie-react-native",
3
- "version": "6.4.2-rc.3",
3
+ "version": "7.2.3-rc.2",
4
4
  "description": "c-api-foundation",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -19,15 +19,9 @@
19
19
  "react-native.config.js"
20
20
  ],
21
21
  "author": "Emilio Rodriguez <emiliorodriguez@gmail.com>",
22
- "homepage": "https://gitcode.com/openharmony-sig/rntpc_lottie-react-native#readme",
22
+ "homepage": "https://github.com/airbnb/lottie-react-native#readme",
23
23
  "harmony": {
24
- "alias": "lottie-react-native",
25
- "autolinking": {
26
- "etsPackageClassName":"LottieAnimationViewPackage",
27
- "cppPackageClassName":"LottieAnimationViewPackage",
28
- "cmakeLibraryTargetName": "rnoh_lottie",
29
- "ohPackageName": "@react-native-ohos/lottie-react-native"
30
- }
24
+ "alias": "lottie-react-native"
31
25
  },
32
26
  "license": "Apache-2.0",
33
27
  "keywords": [
@@ -37,9 +31,9 @@
37
31
  "react-native",
38
32
  "keyframe"
39
33
  ],
40
- "repository": "https://gitcode.com/openharmony-sig/rntpc_lottie-react-native.git",
34
+ "repository": "https://github.com/react-native-oh-library/lottie-react-native.git",
41
35
  "bugs": {
42
- "url": "https://gitcode.com/openharmony-sig/rntpc_lottie-react-native/issues"
36
+ "url": "https://github.com/react-native-oh-library/lottie-react-native/issues"
43
37
  },
44
38
  "publishConfig": {
45
39
  "registry": "https://registry.npmjs.org/",
@@ -55,6 +49,7 @@
55
49
  },
56
50
  "peerDependencies": {
57
51
  "@dotlottie/react-player": "^1.6.1",
52
+ "@lottiefiles/dotlottie-react": "^0.6.5",
58
53
  "@lottiefiles/react-lottie-player": "^3.5.3",
59
54
  "react": "*",
60
55
  "react-native": ">=0.46",
@@ -64,6 +59,9 @@
64
59
  "@dotlottie/react-player": {
65
60
  "optional": true
66
61
  },
62
+ "@lottiefiles/dotlottie-react": {
63
+ "optional": true
64
+ },
67
65
  "@lottiefiles/react-lottie-player": {
68
66
  "optional": true
69
67
  },
@@ -72,8 +70,6 @@
72
70
  }
73
71
  },
74
72
  "devDependencies": {
75
- "@dotlottie/react-player": "^1.6.1",
76
- "@lottiefiles/react-lottie-player": "^3.5.3",
77
73
  "@react-native-community/eslint-config": "^3.1.0",
78
74
  "@release-it/conventional-changelog": "^5.1.1",
79
75
  "@types/react": "^18.2.12",
@@ -85,15 +81,12 @@
85
81
  "eslint-plugin-prettier": "^4.2.1",
86
82
  "metro-react-native-babel-preset": "^0.73.10",
87
83
  "prettier": "^2.8.8",
88
- "react": "18.2.0",
89
- "react-native": "0.71.11",
84
+ "react": "18.3.1",
85
+ "react-native": "0.77.1",
90
86
  "react-native-builder-bob": "^0.20.4",
91
- "react-native-windows": "0.70.20",
92
87
  "release-it": "^15.11.0",
93
88
  "typescript": "^5.1.3",
94
- "@react-native-community/cli": "11.3.6",
95
89
  "react-native-harmony-cli": "npm:@react-native-oh/react-native-harmony-cli@^0.0.27"
96
-
97
90
  },
98
91
  "contributors": [
99
92
  {
@@ -133,6 +126,6 @@
133
126
  }
134
127
  },
135
128
  "dependencies": {
136
- "lottie-react-native": "6.4.1"
129
+ "lottie-react-native": "7.2.2"
137
130
  }
138
131
  }
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
2
  // Use of this source code is governed by a Apache-2.0 license that can be
3
3
  // found in the LICENSE file.
4
4
 
package/src/index.tsx CHANGED
@@ -1,3 +1,7 @@
1
+ // Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
2
+ // Use of this source code is governed by a Apache-2.0 license that can be
3
+ // found in the LICENSE file.
4
+
1
5
  import { LottieView } from 'lottie-react-native/src/LottieView';
2
6
  export * from 'lottie-react-native/src/types';
3
7
  export default LottieView;
package/README.en.md DELETED
@@ -1,36 +0,0 @@
1
- # rntpc_lottie-react-native
2
-
3
- #### Description
4
- {**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
5
-
6
- #### Software Architecture
7
- Software architecture description
8
-
9
- #### Installation
10
-
11
- 1. xxxx
12
- 2. xxxx
13
- 3. xxxx
14
-
15
- #### Instructions
16
-
17
- 1. xxxx
18
- 2. xxxx
19
- 3. xxxx
20
-
21
- #### Contribution
22
-
23
- 1. Fork the repository
24
- 2. Create Feat_xxx branch
25
- 3. Commit your code
26
- 4. Create Pull Request
27
-
28
-
29
- #### Gitee Feature
30
-
31
- 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32
- 2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
33
- 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34
- 4. The most valuable open source project [GVP](https://gitee.com/gvp)
35
- 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36
- 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
@@ -1,15 +0,0 @@
1
- The apache 2.0 License (MIT)
2
-
3
- Copyright (C) 2023 Huawei Device Co., Ltd.
4
-
5
- Licensed under the Apache License, Version 2.0 (the "License");
6
- you may not use this file except in compliance with the License.
7
- you may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.
@@ -1,244 +0,0 @@
1
- OPEN SOURCE SOFTWARE NOTICE
2
-
3
- Please note we provide an open source software notice for the third party open source software along with this software and/or this software component (in the following just “this SOFTWARE”). The open source software licenses are granted by the respective right holders.
4
-
5
- Warranty Disclaimer
6
- THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
7
-
8
- Copyright Notice and License Texts
9
-
10
- ----------------------------------------------------------------------
11
- Software: @ohos/lottie 2.0.5
12
-
13
- Copyright notice:
14
- Copyright (c) 2015 Bodymovin
15
-
16
- License: The MIT License (MIT)
17
-
18
- Permission is hereby granted, free of charge, to any person obtaining a copy
19
- of this software and associated documentation files (the "Software"), to deal
20
- in the Software without restriction, including without limitation the rights
21
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
- copies of the Software, and to permit persons to whom the Software is
23
- furnished to do so, subject to the following conditions:
24
-
25
- The above copyright notice and this permission notice shall be included in all
26
- copies or substantial portions of the Software.
27
-
28
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
31
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
- SOFTWARE.
35
-
36
- ----------------------------------------------------------------------
37
- Software: lottie-react-native V6.0.1
38
-
39
- Copyright notice:
40
- Copyright (c) 2017 Emilio Rodriguez <emiliorodriguez@gmail.com>
41
-
42
- License: Apache License
43
-
44
- Apache License
45
- Version 2.0, January 2004
46
- http://www.apache.org/licenses/
47
-
48
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
49
-
50
- 1. Definitions.
51
-
52
- "License" shall mean the terms and conditions for use, reproduction,
53
- and distribution as defined by Sections 1 through 9 of this document.
54
-
55
- "Licensor" shall mean the copyright owner or entity authorized by
56
- the copyright owner that is granting the License.
57
-
58
- "Legal Entity" shall mean the union of the acting entity and all
59
- other entities that control, are controlled by, or are under common
60
- control with that entity. For the purposes of this definition,
61
- "control" means (i) the power, direct or indirect, to cause the
62
- direction or management of such entity, whether by contract or
63
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
64
- outstanding shares, or (iii) beneficial ownership of such entity.
65
-
66
- "You" (or "Your") shall mean an individual or Legal Entity
67
- exercising permissions granted by this License.
68
-
69
- "Source" form shall mean the preferred form for making modifications,
70
- including but not limited to software source code, documentation
71
- source, and configuration files.
72
-
73
- "Object" form shall mean any form resulting from mechanical
74
- transformation or translation of a Source form, including but
75
- not limited to compiled object code, generated documentation,
76
- and conversions to other media types.
77
-
78
- "Work" shall mean the work of authorship, whether in Source or
79
- Object form, made available under the License, as indicated by a
80
- copyright notice that is included in or attached to the work
81
- (an example is provided in the Appendix below).
82
-
83
- "Derivative Works" shall mean any work, whether in Source or Object
84
- form, that is based on (or derived from) the Work and for which the
85
- editorial revisions, annotations, elaborations, or other modifications
86
- represent, as a whole, an original work of authorship. For the purposes
87
- of this License, Derivative Works shall not include works that remain
88
- separable from, or merely link (or bind by name) to the interfaces of,
89
- the Work and Derivative Works thereof.
90
-
91
- "Contribution" shall mean any work of authorship, including
92
- the original version of the Work and any modifications or additions
93
- to that Work or Derivative Works thereof, that is intentionally
94
- submitted to Licensor for inclusion in the Work by the copyright owner
95
- or by an individual or Legal Entity authorized to submit on behalf of
96
- the copyright owner. For the purposes of this definition, "submitted"
97
- means any form of electronic, verbal, or written communication sent
98
- to the Licensor or its representatives, including but not limited to
99
- communication on electronic mailing lists, source code control systems,
100
- and issue tracking systems that are managed by, or on behalf of, the
101
- Licensor for the purpose of discussing and improving the Work, but
102
- excluding communication that is conspicuously marked or otherwise
103
- designated in writing by the copyright owner as "Not a Contribution."
104
-
105
- "Contributor" shall mean Licensor and any individual or Legal Entity
106
- on behalf of whom a Contribution has been received by Licensor and
107
- subsequently incorporated within the Work.
108
-
109
- 2. Grant of Copyright License. Subject to the terms and conditions of
110
- this License, each Contributor hereby grants to You a perpetual,
111
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
112
- copyright license to reproduce, prepare Derivative Works of,
113
- publicly display, publicly perform, sublicense, and distribute the
114
- Work and such Derivative Works in Source or Object form.
115
-
116
- 3. Grant of Patent License. Subject to the terms and conditions of
117
- this License, each Contributor hereby grants to You a perpetual,
118
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
119
- (except as stated in this section) patent license to make, have made,
120
- use, offer to sell, sell, import, and otherwise transfer the Work,
121
- where such license applies only to those patent claims licensable
122
- by such Contributor that are necessarily infringed by their
123
- Contribution(s) alone or by combination of their Contribution(s)
124
- with the Work to which such Contribution(s) was submitted. If You
125
- institute patent litigation against any entity (including a
126
- cross-claim or counterclaim in a lawsuit) alleging that the Work
127
- or a Contribution incorporated within the Work constitutes direct
128
- or contributory patent infringement, then any patent licenses
129
- granted to You under this License for that Work shall terminate
130
- as of the date such litigation is filed.
131
-
132
- 4. Redistribution. You may reproduce and distribute copies of the
133
- Work or Derivative Works thereof in any medium, with or without
134
- modifications, and in Source or Object form, provided that You
135
- meet the following conditions:
136
-
137
- (a) You must give any other recipients of the Work or
138
- Derivative Works a copy of this License; and
139
-
140
- (b) You must cause any modified files to carry prominent notices
141
- stating that You changed the files; and
142
-
143
- (c) You must retain, in the Source form of any Derivative Works
144
- that You distribute, all copyright, patent, trademark, and
145
- attribution notices from the Source form of the Work,
146
- excluding those notices that do not pertain to any part of
147
- the Derivative Works; and
148
-
149
- (d) If the Work includes a "NOTICE" text file as part of its
150
- distribution, then any Derivative Works that You distribute must
151
- include a readable copy of the attribution notices contained
152
- within such NOTICE file, excluding those notices that do not
153
- pertain to any part of the Derivative Works, in at least one
154
- of the following places: within a NOTICE text file distributed
155
- as part of the Derivative Works; within the Source form or
156
- documentation, if provided along with the Derivative Works; or,
157
- within a display generated by the Derivative Works, if and
158
- wherever such third-party notices normally appear. The contents
159
- of the NOTICE file are for informational purposes only and
160
- do not modify the License. You may add Your own attribution
161
- notices within Derivative Works that You distribute, alongside
162
- or as an addendum to the NOTICE text from the Work, provided
163
- that such additional attribution notices cannot be construed
164
- as modifying the License.
165
-
166
- You may add Your own copyright statement to Your modifications and
167
- may provide additional or different license terms and conditions
168
- for use, reproduction, or distribution of Your modifications, or
169
- for any such Derivative Works as a whole, provided Your use,
170
- reproduction, and distribution of the Work otherwise complies with
171
- the conditions stated in this License.
172
-
173
- 5. Submission of Contributions. Unless You explicitly state otherwise,
174
- any Contribution intentionally submitted for inclusion in the Work
175
- by You to the Licensor shall be under the terms and conditions of
176
- this License, without any additional terms or conditions.
177
- Notwithstanding the above, nothing herein shall supersede or modify
178
- the terms of any separate license agreement you may have executed
179
- with Licensor regarding such Contributions.
180
-
181
- 6. Trademarks. This License does not grant permission to use the trade
182
- names, trademarks, service marks, or product names of the Licensor,
183
- except as required for reasonable and customary use in describing the
184
- origin of the Work and reproducing the content of the NOTICE file.
185
-
186
- 7. Disclaimer of Warranty. Unless required by applicable law or
187
- agreed to in writing, Licensor provides the Work (and each
188
- Contributor provides its Contributions) on an "AS IS" BASIS,
189
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
190
- implied, including, without limitation, any warranties or conditions
191
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
192
- PARTICULAR PURPOSE. You are solely responsible for determining the
193
- appropriateness of using or redistributing the Work and assume any
194
- risks associated with Your exercise of permissions under this License.
195
-
196
- 8. Limitation of Liability. In no event and under no legal theory,
197
- whether in tort (including negligence), contract, or otherwise,
198
- unless required by applicable law (such as deliberate and grossly
199
- negligent acts) or agreed to in writing, shall any Contributor be
200
- liable to You for damages, including any direct, indirect, special,
201
- incidental, or consequential damages of any character arising as a
202
- result of this License or out of the use or inability to use the
203
- Work (including but not limited to damages for loss of goodwill,
204
- work stoppage, computer failure or malfunction, or any and all
205
- other commercial damages or losses), even if such Contributor
206
- has been advised of the possibility of such damages.
207
-
208
- 9. Accepting Warranty or Additional Liability. While redistributing
209
- the Work or Derivative Works thereof, You may choose to offer,
210
- and charge a fee for, acceptance of support, warranty, indemnity,
211
- or other liability obligations and/or rights consistent with this
212
- License. However, in accepting such obligations, You may act only
213
- on Your own behalf and on Your sole responsibility, not on behalf
214
- of any other Contributor, and only if You agree to indemnify,
215
- defend, and hold each Contributor harmless for any liability
216
- incurred by, or claims asserted against, such Contributor by reason
217
- of your accepting any such warranty or additional liability.
218
-
219
- END OF TERMS AND CONDITIONS
220
-
221
- APPENDIX: How to apply the Apache License to your work.
222
-
223
- To apply the Apache License to your work, attach the following
224
- boilerplate notice, with the fields enclosed by brackets "{}"
225
- replaced with your own identifying information. (Don't include
226
- the brackets!) The text should be enclosed in the appropriate
227
- comment syntax for the file format. We also recommend that a
228
- file or class name and description of purpose be included on the
229
- same "printed page" as the copyright notice for easier
230
- identification within third-party archives.
231
-
232
- Copyright {yyyy} {name of copyright owner}
233
-
234
- Licensed under the Apache License, Version 2.0 (the "License");
235
- you may not use this file except in compliance with the License.
236
- You may obtain a copy of the License at
237
-
238
- http://www.apache.org/licenses/LICENSE-2.0
239
-
240
- Unless required by applicable law or agreed to in writing, software
241
- distributed under the License is distributed on an "AS IS" BASIS,
242
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
243
- See the License for the specific language governing permissions and
244
- limitations under the License.
@@ -1,54 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <configuration>
3
- <oatconfig>
4
- <filefilterlist>
5
- <policylist>
6
- <policy name="projectPolicy" desc="">
7
- <policyitem type="license" name="MIT" path=".*" desc="license under the MIT" />
8
- </policy>
9
- <policy name="projectPolicy" desc="">
10
- <policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="Process that runs independently, invoked by the X process." />
11
- <policyitem type="compatibility" name="Apache-2.0" path=".*" desc="不影响兼容性" />
12
- <policyitem type="compatibility" name="BSDStyleLicense" path=".*" desc="不影响兼容性" />
13
- <policyitem type="compatibility" name="MIT" path=".*" desc="不影响兼容性" />
14
- <policyitem type="compatibility" name="GPLStyleLicense" path=".*" desc="不影响兼容性" />
15
- </policy>
16
- </policylist>
17
- <filefilter name="copyrightPolicyFilter" desc="Filters for compatibility,license header policies">
18
- <filteritem type="filename" name="hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
19
- <filteritem type="filepath" name="lottie/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
20
- <filteritem type="filepath" name="harmony/lottie/src/main/cpp/generated/.*" desc="Codegen生成文件,不手动修改" />
21
- <filteritem type="filepath" name="harmony/lottie/src/main/ets/generated/.*" desc="Codegen生成文件,不手动修改" />
22
- <filteritem type="filename" name="*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
23
- <filteritem type="filename" name="*/*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
24
- <filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/>
25
- <filteritem type="filename" name="NOTICE" desc="NOTICE文件,不添加版权头"/>
26
- <filteritem type="filepath" name="hvigorw" desc="工程模板,不修改版权头,以防有修改版权风险"/>
27
- <filteritem type="filepath" name="hvigorw.bat" desc="工程模板,不修改版权头,以防有修改版权风险"/>
28
- <filteritem type="filepath" name="hvigor/hvigor-wrapper.js" desc="工程模板,不修改版权头,以防有修改版权风险"/>
29
- <filteritem type="filepath" name="hvigor/hvigor-config.json5" desc="工程模板,不修改版权头,以防有修改版权风险"/>
30
- </filefilter>
31
- <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
32
- <filteritem type="filename" name="hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
33
- <filteritem type="filepath" name="lottie/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
34
- <filteritem type="filepath" name="harmony/lottie/src/main/cpp/generated/.*" desc="Codegen生成文件,不手动修改" />
35
- <filteritem type="filepath" name="harmony/lottie/src/main/ets/generated/.*" desc="Codegen生成文件,不手动修改" />
36
- <filteritem type="filename" name="*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
37
- <filteritem type="filename" name="*/*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
38
- <filteritem type="filename" name="LICENSE" desc="版权文件,不添加许可证头"/>
39
- <filteritem type="filename" name="NOTICE" desc="NOTICE文件,不添加许可证头"/>
40
- <filteritem type="filepath" name="hvigorw" desc="工程模板,不添加许可证头"/>
41
- <filteritem type="filepath" name="hvigorw.bat" desc="工程模板,不添加许可证头"/>
42
- <filteritem type="filename" name="index.d.ts" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
43
- <filteritem type="filepath" name="hvigor/hvigor-wrapper.js" desc="工程模板,不添加许可证头"/>
44
- <filteritem type="filepath" name="hvigor/hvigor-config.json5" desc="工程模板,不修改版权头,以防有修改版权风险"/>
45
- </filefilter>
46
-
47
- <filefilter name="binaryFileTypePolicyFilter" desc="Filters for copyright header policies">
48
- <filteritem type="filename" name="icon.png" desc="项目工程默认图片文件"/>
49
- <filteritem type="filepath" name="AppScope/resources/base/media/app_icon.png" desc="项目工程默认图片文件"/>
50
- <filteritem type="filepath" name="lottie.har" desc="项目打包文件"/>
51
- </filefilter>
52
- </filefilterlist>
53
- </oatconfig>
54
- </configuration>
@@ -1,20 +0,0 @@
1
- [
2
- {
3
- "Name": "@ohos/lottie",
4
- "License": "MIT License",
5
- "License File": "https://gitee.com/openharmony-tpc/lottieArkTS/blob/master/NOTICE",
6
- "Version Number": "2.0.5",
7
- "Owner": "xiafeng@huawei.com"
8
- "Upstream URL": "https://gitee.com/openharmony-tpc",
9
- "Description": "lottie是一个适用于OpenHarmony的动画库,它可以解析Adobe After Effects软件通过Bodymovin插件导出的json格式的动画,并在移动设备上进行本地渲染"
10
- },
11
- {
12
- "Name": "lottie-react-native",
13
- "License": "Apache License",
14
- "License File": "https://github.com/lottie-react-native/lottie-react-native/blob/master/LICENSE",
15
- "Version Number": "6.0.1",
16
- "Owner": "emiliorodriguez@gmail.com"
17
- "Upstream URL": "https://github.com/react-native-community",
18
- "Description": "Lottie wrapper for React Native"
19
- }
20
- ]
@@ -1,26 +0,0 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
2
- // Use of this source code is governed by a Apache-2.0 license that can be
3
- // found in the LICENSE file.
4
-
5
- import { RNOHPackage, ComponentBuilderContext } from '@rnoh/react-native-openharmony';
6
- import type {DescriptorWrapperFactoryByDescriptorTypeCtx, DescriptorWrapperFactoryByDescriptorType} from '@rnoh/react-native-openharmony/ts';
7
- import { RNC } from './generated/ts';
8
- import { LottieAnimationView } from './LottieAnimationView'
9
-
10
- @Builder
11
- function buildLottieAnimationView(ctx: ComponentBuilderContext) {
12
- LottieAnimationView({ ctx: ctx.rnComponentContext, tag: ctx.tag, })
13
- }
14
-
15
- export class LottieAnimationViewPackage extends RNOHPackage {
16
- createDescriptorWrapperFactoryByDescriptorType(ctx:
17
- DescriptorWrapperFactoryByDescriptorTypeCtx):
18
- DescriptorWrapperFactoryByDescriptorType {
19
- return {
20
- LottieAnimationView: (ctx) => new RNC.LottieAnimationView.DescriptorWrapper(ctx.descriptor)
21
- }
22
- }
23
- createWrappedCustomRNComponentBuilderByComponentNameMap(): Map<string, WrappedBuilder<[ComponentBuilderContext]>> {
24
- return new Map().set(LottieAnimationView.NAME, wrapBuilder(buildLottieAnimationView))
25
- }
26
- }
@@ -1,5 +0,0 @@
1
- // Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
2
- // Use of this source code is governed by a Apache-2.0 license that can be
3
- // found in the LICENSE file.
4
-
5
- export * from './src/main/ets/LottieAnimationViewPackage'