Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Add iOS spring animation objc files #38801

Merged
merged 16 commits into from
Feb 2, 2023
3 changes: 3 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ group("unittests") {
if (is_mac) {
public_deps +=
[ "//flutter/shell/platform/darwin:flutter_channels_unittests" ]
public_deps += [
"//flutter/third_party/spring_animation:spring_animation_unittests",
]
}

if (!is_win && !is_fuchsia) {
Expand Down
9 changes: 7 additions & 2 deletions ci/licenses_golden/licenses_flutter
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,11 @@ SOFTWARE.

====================================================================================================
LIBRARY: spring_animation
ORIGIN: ../../../flutter/third_party/spring_animation/Libraries/Animated/animations/SpringAnimation.js + ../../../flutter/third_party/spring_animation/LICENSE
ORIGIN: ../../../flutter/third_party/spring_animation/spring_animation.h + ../../../flutter/third_party/spring_animation/LICENSE
ORIGIN: ../../../flutter/third_party/spring_animation/spring_animation.mm + ../../../flutter/third_party/spring_animation/LICENSE
TYPE: LicenseType.mit
FILE: ../../../flutter/third_party/spring_animation/Libraries/Animated/animations/SpringAnimation.js
FILE: ../../../flutter/third_party/spring_animation/spring_animation.h
FILE: ../../../flutter/third_party/spring_animation/spring_animation.mm
----------------------------------------------------------------------------------------------------
Copyright (c) Meta Platforms, Inc. and affiliates.

Expand Down Expand Up @@ -791,6 +793,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
====================================================================================================
LIBRARY: accessibility
LIBRARY: engine
LIBRARY: spring_animation
LIBRARY: tonic
LIBRARY: txt
LIBRARY: web_unicode
Expand Down Expand Up @@ -3164,6 +3167,7 @@ ORIGIN: ../../../flutter/third_party/accessibility/base/string_utils.cc + ../../
ORIGIN: ../../../flutter/third_party/accessibility/base/string_utils.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/third_party/accessibility/gfx/transform.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/third_party/accessibility/gfx/transform.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/third_party/spring_animation/SpringAnimationTest.mm + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/third_party/tonic/common/build_config.h + ../../../flutter/third_party/tonic/LICENSE
ORIGIN: ../../../flutter/third_party/tonic/common/log.cc + ../../../flutter/third_party/tonic/LICENSE
ORIGIN: ../../../flutter/third_party/tonic/common/log.h + ../../../flutter/third_party/tonic/LICENSE
Expand Down Expand Up @@ -5668,6 +5672,7 @@ FILE: ../../../flutter/third_party/accessibility/base/string_utils.cc
FILE: ../../../flutter/third_party/accessibility/base/string_utils.h
FILE: ../../../flutter/third_party/accessibility/gfx/transform.cc
FILE: ../../../flutter/third_party/accessibility/gfx/transform.h
FILE: ../../../flutter/third_party/spring_animation/SpringAnimationTest.mm
FILE: ../../../flutter/third_party/tonic/common/build_config.h
FILE: ../../../flutter/third_party/tonic/common/log.cc
FILE: ../../../flutter/third_party/tonic/common/log.h
Expand Down
1 change: 1 addition & 0 deletions testing/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ def make_test(name, flags=None, extra_env=None):
# The accessibility library only supports Mac and Windows.
make_test('accessibility_unittests'),
make_test('flutter_channels_unittests'),
make_test('spring_animation_unittests'),
]

if is_linux():
Expand Down
33 changes: 33 additions & 0 deletions third_party/spring_animation/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

if (is_ios || is_mac) {
import("//flutter/common/config.gni")
import("//flutter/testing/testing.gni")

source_set("spring_animation") {
sources = [
"spring_animation.h",
"spring_animation.mm",
]
public_configs = [ "//flutter:config" ]
}

if (enable_unittests) {
test_fixtures("spring_animation_fixtures") {
fixtures = []
}

executable("spring_animation_unittests") {
testonly = true
sources = [ "SpringAnimationTest.mm" ]
deps = [
":spring_animation",
":spring_animation_fixtures",
"//flutter/testing",
]
public_configs = [ "//flutter:config" ]
}
}
}
Loading