45 Commits

Author SHA1 Message Date
7e7b76cf73 MBL-977: Deprecate ObjectUtils, migrate to kotlin Ext functions (#1843)
* Testing out new any extension class

* Cleanup

* migrate login activities

* Cleanup

* Test out ext functions

* Linter

* More replacement

* Replace nonNull with ext function

* More migration

* Remove all instances of object utils

* Linter

* Fix errors

* fix linter errors

* Corrected rebase mistakes

* Remove typo

* Remove errors, add test for toInteger string ext function

* Create test suite for anyEXT

* Linter

* Remove object utils class

* Remove errors

* Fix errors

---------

Co-authored-by: mtgriego <matthew.t.griego@gmail.com>
2023-09-20 13:01:29 -04:00
ce3e30ebf9 NT-1700: Remove StringUtils.java class and migrate to use StringExt methods (#1065)
* Create new StringExt class and corresponding test suite

* Add constants and create tests for isValidPassword and wrapInParentheses

* Fix broken test

* addressing feedback

* Update function names, address feedback, update trim method

* Update uses of StringUtils methods to new extension methods

* Remove unused imports

* Remove StringUtils.java file and tests, remove more unused imports:

* Merge changes from master, update uses of ext methods, rename tests

* Fix linter errors

* Fix broken test, update trimAllWhitespace

* Update trimAllWhitespace kdoc

* Fix search crash
2021-01-08 11:34:46 -05:00
9e8a083a16 NT-1147: Manage Pledge Button Clicked Event (#866)
* NT-1147: Manage pledge button clicked event
-  Added event for button in Project page
2020-04-29 13:17:24 -07:00
d3d4fc8854 this, part 3 (#149)
* remaining this. sweep

* Add checkstyle for instance variables, fix final errors

* Revert accidental auto-refactorings

* Few more revertings

* woops missed one
2017-08-14 14:14:27 -04:00
eb79df3631 Allow static imports of assert functions. (#97) 2017-05-04 16:01:47 -04:00
1cbd7076da Reward itemization
* Add item models

* Add new colors for reward and mars

* Add new reward view wip

* Generate new id each time

* Only show all gone if reward has not been selected

* Reward items should probably always have an item via the API

* Add better ids

* wip

* Add minimum, title

* Show limit sections appropriately

* Add outputs for center alignment of time/quantity limit

* Add CoalesceTransformer

* Add reward items to viewmodel

* Add items recyclerview

* Allow easier creation of rounded buttons with different colors

* Add outputs for disabled state

* Use white overlay instead of manually changing text color

* Show minimum in title if reward title isn't present

* misc

* Extract item, quantity string

* Organize colors

* Fix tests relying on hardcoded ids

* Trim whitespace

* Fix lint checks

* Use static import

* Remove adapter properly

Can't use the lifecycle because binding on destroy means it will
never be called

* Improve comment

* Make headers invisible by default, visible in tools

This way we don't see a flash of colors pop out on initial load

* Allow static import of main thread

* Alphabetize order

* Add test for minimum title

* Alphabetize

* Fix static import

* wip

* Add back items hidden output

* Make note about extracting strings

* wip

* wip

* Hook up goToViewPledge for completed projects

* Optimize imports

* Add test for isBacked

* Fix bad renaming during refactory

* Move override annotation to same line

* wip

* Tighten spacing

* Fix comment

* Synchronize id generation method

* Add docs, test for isCompleted

* Use static import

* Fix test

* Add landscape view for reward delivery

* Rename coalesceTransformer method to coalesce

* Remove unused import

* Swap goTo behavior subjects for publish subjects

* Actually use the instantiated layout manager

* Update strings

* Remove explicit onNext

* Add distinct until changed optimization
2016-05-10 18:51:32 -04:00
e6043a7cd1 Add showRecommendations and startDiscovery outputs 2016-03-01 15:32:34 -05:00
4aed0068a7 Remove visibilitymodifier, fix a few failing checks 2016-02-23 11:16:11 -05:00
e960965ee9 Add typecast whitespace 2016-02-17 19:05:57 -05:00
5a9da50ca8 Add whitespace checks 2016-02-17 18:58:19 -05:00
8024134bd1 Add RedundantModifier check 2016-02-17 18:38:24 -05:00
9fb16bdf1b Revert "Add UpperEll check"
Decided against this one, I actually don't see a big problem with the lower l
2016-02-17 18:31:43 -05:00
af53e954ea Add UpperEll check 2016-02-17 18:30:28 -05:00
c0e9478f01 Add indentation checks 2016-02-17 18:26:56 -05:00
d68056684f Add FinalParameters check 2016-02-17 18:14:12 -05:00
2c7ac561ad Add CommentsIndentation check 2016-02-17 18:02:27 -05:00
6d241bcf60 Add ArrayTypeStyle check 2016-02-17 18:01:36 -05:00
7a3790ba81 Add import checks 2016-02-17 17:49:55 -05:00
b52e1eb1df Add IllegalImport check 2016-02-17 17:47:44 -05:00
7deea730d6 Add AvoidStaticImport check 2016-02-17 17:42:33 -05:00
1e7773cbc5 Avoid star imports 2016-02-17 17:28:22 -05:00
6158571731 Add VariableDeclarationUsageDistance check 2016-02-17 17:25:05 -05:00
30a28ac6cc Add UnnecessaryParentheses check 2016-02-17 17:23:46 -05:00
bb9013bd7b Add NoFinalizer, SimplifyBooleanExpression, SimplifyBooleanReturn, StringLiteralEquality checks 2016-02-17 17:18:10 -05:00
4c7141430c Add ParameterAssignment check 2016-02-17 17:13:57 -05:00
14d28ca634 Add OneStatementPerLine check 2016-02-17 17:08:40 -05:00
31934c88d7 Add ModifiedControlVariable, MultipleVariableDeclarations, NoClone checks 2016-02-17 17:08:33 -05:00
1825071c6b Add IllegalInstantiation, IllegalToken and IllegalTokenText checks 2016-02-17 16:58:16 -05:00
3aa895f30c Add IllegalType check 2016-02-17 16:57:55 -05:00
c74772d65d Add FinalLocalVariable check 2016-02-17 16:45:35 -05:00
c82b94f9f2 Add FallThrough check 2016-02-17 16:42:15 -05:00
8f8023d3af Add ExplicitInitialization check 2016-02-17 16:41:22 -05:00
84f160cf25 Add EqualsHashCode check
I've opted to remove the `equals` method from RefTag since AutoValue
will generate something which behaves identically
2016-02-17 16:37:29 -05:00
c55e493e78 Add EqualsAvoidNull check 2016-02-17 16:29:25 -05:00
e4582011d8 Add CovariantEquals, DefaultComesLast, EmptyStatement checks 2016-02-17 16:28:11 -05:00
33fff05bf5 Add VisibilityModifier rule 2016-02-17 14:02:38 -05:00
c9a9fa1cbe Add HideUtilityClassConstructor check 2016-02-17 12:51:15 -05:00
4cec922ee0 Add some missing final qualifiers 2016-02-17 12:43:58 -05:00
d35674db57 Add block checks 2016-02-17 12:33:17 -05:00
40e67c4dd5 Deprecated annotations require JavaDoc 2016-02-17 12:00:21 -05:00
761a2a20dc Add AnnotationUseStyle check 2016-02-17 11:52:29 -05:00
58c511eed6 Checkstyle initial commit 2016-02-17 11:27:18 -05:00
754c2a2698 Keep line breaks on reformat, and adjust annotation spacing 2015-04-23 17:15:00 -04:00
0c81eea332 Capitalize scheme name 2015-04-23 16:32:03 -04:00
ff3229ee34 Add bootstrap 2015-04-23 16:29:28 -04:00