25 Commits

Author SHA1 Message Date
Nobody
9e1c0c0a45 Internal change
PiperOrigin-RevId: 477458164
2022-09-28 08:26:32 -07:00
Randall Li
502bc5d910 Ran a Swift formatter
PiperOrigin-RevId: 395947664
2021-09-10 09:48:14 -07:00
Cody Weaver
2416f191aa [ActivityIndicator] Add unit tests.
PiperOrigin-RevId: 358408235
2021-02-19 08:19:23 -08:00
featherless
79fb766e01 [ActivityIndicator] Delete MDCActivityIndicatorColorThemer. (#8694)
It is deprecated and has no internal usage.

Part of #8429
2019-10-31 07:13:32 -07:00
Josh Converse
4d39b55d09 [ActivityIndicator] Removes 72dp radius limit on activity indicator (#8534)
This change removes the 72dp limit on an MDCActivityIndicator's radius.

closes #8533
2019-10-07 15:56:02 -04:00
Robert Moore
8cebc56185
[*] Suppress deprecation warnings. (#8481)
Suppresses deprecation warnings either for implementations of our own
deprecated APIs or for their use in tests and elsewhere.

Part of #7537
2019-09-23 12:48:42 -04:00
Wenyu Zhang
97dfca8003
[ActivityIndicator] Rewrite tests in ObjC to prevent the failing unit tests on iOS 13. (#8248)
Closes https://github.com/material-components/material-components-ios/issues/8239.

There is not a good way to directly fix it since it maybe a Xcode 11 beta issue related to swift-ObjC calls.
2019-08-08 17:24:27 -04:00
Cody Weaver
8275bcb858
[ActivityIndicator] Add traitCollectionDidChange block (#7931)
The activity indicator needs an API so clients can hook-in to trait collection changes. This additionally passes the activity indicator as a parameter so clients can modify the activity indicator within the block.

Closes #7928
2019-07-16 07:19:15 -07:00
Yarden Eitan
71512ff72e reverting 2019-02-26 11:50:30 -05:00
Robert Moore
f1b5318d5e
[ColorScheme] Add test schemes. (#6690)
Adding test schemes useful for unit/snapshot tests where the baseline
scheme is insufficient (for example to verify bindings).
2019-02-22 09:43:42 -05:00
Robert Moore
800188a649
{clang-format} Format the components. (#6347)
This is a follow-up to https://github.com/material-components/material-components-ios/pull/6027

```
find components \( -name "*.h" -or -name "*.m" \) | xargs clang-format -i
```
2019-01-23 11:08:43 -05:00
rami-a
c06e819835
[ActivityIndicator] Stop activity indicator animating when hidden (#6063)
### The problem
When a client hides an activity indicator, the animation would continue despite not being necessary

### The solution
Override `setHidden` and stop the animation when hidden is true.

### Bugs
Closes #5955
2018-12-20 14:46:11 -05:00
Robert Moore
03f3351ad5
Global replace of single-precision floats with CGFloat casts. (#5718)
Replacing all non-integral, single-precision floating point literals with double-precision values explicitly cast to CGFloat.  For example, `0.1f` should become `(CGFloat)0.1`.

Regex used:
```
([0-9]*\.)([0-9]*?)([1-9]+)([0-9]*?)[fF]
```

PiperOrigin-RevId: 220683126
2018-11-12 10:50:01 -05:00
Robert Moore
74a27253e8
Global replace of integral single-precision literals with integer literals. (#5709)
Global replace of integral single-precision literals with integer literals.

Regular expression used:
```perl
/[^\w]([0-9]+)\.[0]*[fF]/$1/
```
2018-11-08 14:02:04 -05:00
featherless
2181084272
[automated] Standardize our open source license stanza to what Xcode generates. (#4985)
Removes the need to copy-paste stanzas from other files anymore as we'll rely on #4478 to generate the correct stanza for us instead.

This was an automated change generated by running a find-and-replace regular expression:

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at

 http://www\.apache\.org/licenses/LICENSE-2\.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
/\*
Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

Licensed under the Apache License, Version 2\.0 \(the "License"\);
you may not use this file except in compliance with the License\.
You may obtain a copy of the License at

http://www\.apache\.org/licenses/LICENSE-2\.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
See the License for the specific language governing permissions and
limitations under the License\.
\*/
```

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.
 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at
 http://www\.apache\.org/licenses/LICENSE-2\.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
// Copyright $1-present the Material Components for iOS authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
```
2018-08-31 12:13:07 -04:00
Randall Li
76602a7601
[ActivityIndicator] Change override of AccessibilityLabel with setting it to a default. (#4564)
[ActivityIndicator] Change override of AccessibilityLabel with setting it to a default.
2018-07-16 10:29:32 -04:00
featherless
ecc5266537
[ActivityIndicator] Add an umbrella header for the ColorThemer target. (#3455)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-24 10:47:03 -04:00
John Detloff
eb3167032f
Update ActivityIndicator Color Themer (#3259) 2018-04-09 16:31:58 -04:00
Yura Samsoniuk
921c9f09e4 Fixed ActivityIndicatorTests#testSetProgressStrokeAnimated test (#3006) 2018-02-27 10:05:46 -05:00
ianegordon
872dacb68f
[ActivityIndicator] Add setProgress:animated: (#2924) 2018-02-15 18:23:22 -05:00
featherless
4ef8b6fdae
Initial addition of kokoro and bazel continuous integration support. (#2316)
* Initial addition of kokoro and bazel continuous integration support.

Only adds support for ActivityIndicator and its dependencies. Will add other components to the continuous integration in follow up changes.

* Add AnimationTiming.

* Fix target name.

* Use ... matching to run all tests and build all targets.

* Just run tests.

* Add skeleton tests.

* Fix copyrights and build files.

* Add bzl file.

* Standardize build files.

* Fix typo.

* Naming.

* Remove confusing comment.

* Use Xcode 8.2.
2017-11-01 13:29:49 -04:00
Adrian Secord
5bc8758de5 Porting warning fixes from internal change 166066139. 2017-08-22 17:29:23 -04:00
Robert Moore
8be69aecb9 [ActivityIndicator] Default cycleColors property for empty arrays #1508 (#1540)
* [ActivityIndicator] Default cycleColors property for empty arrays

The |cycleColors| property currently handles empty array assignments by assigning an array with a
single blue color.  This change will modify that behavior to revert back to the original "default"
array.

* Adding unit tests to confirm the default behavior in different scenarios.

* Simplifying implementation of default `cycleColors` values based on feedback from @ianegordon

* * Code clean-up and simplification for stroke color updates

* Adding class check in +initialize

* Adding basic Swift unit tests, minor clean-up, removing bad test.
2017-06-21 22:32:56 -04:00
Randall Li
b2e811af5f [ActivityIndicator] Updated test to relect new radius of 5. (#907) 2016-11-30 15:49:39 -05:00
Justin Shephard
ad8986dc35 MDC_#758 - Updated incorrectly named setter
Reviewers: junius, randallli, O1 Material components iOS

Reviewed By: junius

Subscribers: randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1547
2016-09-07 12:52:40 -04:00