Commit Graph
63 Commits
Author SHA1 Message Date
psteiger f9bf934650 Use version catalog naming style for plugins 2024-10-14 06:17:17 -04:00
Andrey Mamykin 11096f68c8 Store RouterInfo instead of Router for FlipperPayload 2023-12-13 18:59:17 +01:00
idanakav 5896b25af1 Prepare for IntelliJ plugin 0.1.5 release 2023-08-29 21:33:59 -07:00
idanakav 9a7c0be9ad Update intellij dependencies
- Bump gradle IntelliJ plugin
- Build against 23.2
- Refactor deprecated methods which are scheduled for removal
2023-08-29 21:33:57 -07:00
idanakav 5d5e2cd4c3 Remove redundant invoke later call 2023-08-29 21:32:33 -07:00
Francisco Aguilera 66eac33013 Expose stream for RIB component duration info 2023-06-16 13:02:41 -07:00
Patrick Steiger 27d8eba3fc Make use of convention plugins and version catalogs 2023-05-18 14:54:39 -03:00
Patrick Steiger 391d6dde08 Apply explicit visibility on missing classes 2023-05-18 14:54:39 -03:00
Patrick Steiger 5b9b66e54d Make use of jvmToolchain for compiling the project.
This allows for a more repeatable, predictable build between different local configurations.
2023-05-16 18:01:40 -03:00
Patrick Steiger 2d77205544 Bump Kotlin, Gradle, and other dependencies versions.
Kotlin 1.7.10 -> 1.8.20
Gradle 7.3.3 -> 8.1.1
AndroidX Lifecycle ViewModel Compose 1.0.0-alpha05 -> 2.5.1
AndroidX Activity 1.3.0-alpha08 -> 1.7.0
AndroidX Activity KTX 1.3.0-beta02 -> 1.7.0
AndroidX Activity Compose 1.3.0-beta02 -> 1.7.0
Compose compiler 1.3.0 -> 1.4.6
Compose libraries 1.2.1 -> 1.4.0
Java version 1.8 -> 11
IntelliJ plugin 1.11.0 -> 1.13.1 (1.13.2 onwards fails test `ribGenerators_shouldGenerateClassesThatCompiler` for reasons beyond my understanding)
AGP 7.2.2 -> 7.4.2 (8.0 not supported in IJ 2023.1 bundled Android plugin)
gradle-maven-publish 0.18.0 -> 0.25.2

### Additional changes

- Move package string from manifests to `android.namespace` in Gradle build scripts.
- Remove `targetSdk` from Android libraries (only applications should provide it)
- Remove `buildToolsVersion`.
- `compileSdkVersion`, `minSdkVersion`, `targetSdkVersion` swapped to `compileSdk`, `minSdk`, `targetSdk`.
- Disablement of `buildConfig` is now done by `buildFeatures.buildConfig = false` instead of in the project `build.gradle`.
- Added `exported="true"` in demo Android projects activities.
- `-Xfriend-paths` `kotlinc` option seemingly only works now if we use `@file:Suppress("invisible_reference", "invisible_member")` in files that access internal components.
- `androidx.lifecycle.ViewTreeLifecycleOwner(View, LifecycleOwner)` has been replaced with `View.setViewTreeLifecycleOwner(LifecycleOwner)`.
- Removed unnecessary dependencies on Kotlin stdlib, as the Kotlin JVM plugin automatically adds it. For reasons beyond my understanding, removing it from `android/libraries/rib-test` fails gradle sync with the following error, so it's the only place it's still kept.
```
com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not resolve all dependencies for configuration ':libraries:rib-coroutines:testCompileClasspath'.
Cannot change dependencies of dependency configuration ':libraries:rib-test:api' after it has been included in dependency resolution.
```
2023-04-28 20:32:40 -03:00
sergey.smykovskyi e696898c9f Update formatters versions:
`gjf` 1.7 -> 1.16.0
`ktfmt` 0.23 -> 0.43
`ktlint` 0.41.0 -> 0.48.2
`spotless` 5.11.0 -> 6.18.0

Manual changes :
 Renamed `logged_in` package -> `loggedIn`
 Renamed `logged_out` package -> `loggedOut`
 Renamed `off_game` package -> `offGame`
 Renamed `tic_tac_toe` package -> `ticTacToe`
2023-04-26 11:10:08 -07:00
idanakav 4b2f334acb IntelliJ plugin v0.1.5 2022-12-27 19:41:24 -08:00
idanakav d137e810f0 Compile intellij plugin against 2022.2.4
IntelliJ 2022.2.4 is the latest one compiled with java 11, 22.3+ are compiled with java 17 and should be addressed in future commits.
2022-12-27 19:37:47 -08:00
idanakav bce5ee9125 Update IntelliJ since build property 213 2022-12-27 14:17:41 -08:00
idanakav a8d51603c9 Remove experimental label 2022-12-27 14:17:41 -08:00
idanakav 3cf9360475 Migrate rib project component to service
Migrate the component to a service along with adding a `AttachRibProjectServiceActivity` as a post startup activity.
2022-12-27 14:17:41 -08:00
idanakav cdc2b2ebb1 Migrate android device repo to light service
ProjectComponents are deprecated, migrating to services.
2022-12-27 14:17:41 -08:00
idanakav 28f17b97e3 Allow new RIB generation without tests
This action is intended for bootstrapping, having tests should not be a prerequisite
2022-12-27 14:17:36 -08:00
idanakav 7e70924463 IntelliJ plugin dependencies cleanup
The removed dependencies should not be bundled into the plugin to avoid duplicated classes, we also add a dependency on the android plugin itself.
2022-12-27 10:57:39 -08:00
idanakav c4c818c561 Compile IntelliJ plugin targeting jdk 11 2022-12-27 10:57:29 -08:00
tys 6d3de3cfca Fixed all deps and package changes for compilation 2022-08-26 15:35:56 -07:00
idanakav 0b0948a68f Update RIB IntelliJ plugin (#508)
* Update RIB hierarchy IntelliJ plugin

- Update IntelliJ gradle plugin to v1.5.3
- Fix compilation issues with IJ 2022
- Add missing modules to plugin.xml to make the plugin compatible with recent IJ versions

* IntelliJ RIB plugin version 0.1.4

- Cleanup plugin.xml
- Add description
- Remove "Plugin" from the name as suggested by the verifyPlugin task
2022-05-18 16:40:59 -07:00
James Barr c2b74286a6 Prepare next development version. 2021-09-29 19:47:41 -07:00
James Barr 49fe466028 Use minSdk 21, AGP 7, & Gradle 7 (#478) 2021-09-17 11:55:35 -07:00
James Barr beb5ccd149 Migrate gradle-maven-push to gradle-maven-publish-plugin (#477) 2021-09-17 11:06:06 -07:00
James Barr ad33698755 Use implementation instead of compile (#471) 2021-07-09 19:17:31 -07:00
arteghem 297d19d2c1 Support for RIBs Tree Visualization in IntelliJ plugin (#456)
* Native Android support for IntelliJ RIB tree plugin

* Demo application for IntelliJ RIB tree plugin

* IntelliJ RIB tree plugin implementation

* Fix spotless errors
2021-06-16 15:40:40 -07:00
arteghem 6f6c29a4ae Support for RIBs Tree Visualization Flipper Plugin. (#455)
* [Flipper] : Implement plugin (android-side)

* [Flipper] : Implement plugin demo application

* [Flipper] : Implement plugin (desktop-side)
2021-06-10 13:50:38 -07:00
James Barr cb51d73da2 Integrate Spotless into build (#415)
* Integrate Spotless in build

* Update CONTRIBUTING.md

* Move improperly placed copyright comments

* Update copyright indent

* Don't format test fixtures

* Run spotlessApply over the whole repo

* Remove checkstyle configs

* Run spotlessCheck on CI
2021-03-24 18:45:35 -07:00
James Barr b290824844 Align rib-base with internal version (#402)
* Remove Component type parameter from Router

* Add RibEvents and related classes for tooling

* Minor differences to align with internal version of rib-base

* Extended WorkerBinder functionality to allow for binding a worker to a presenter's lifecycle

* Minor differences & new tests to align with internal version of rib-base
2021-02-23 12:47:26 -08:00
James Barr 0fa0b46839 Align rib-test with internal version (#400)
* Align rib-test with internal version

* Rename rib-test-utils to rib-test

* Bump Mockito version
2021-02-19 11:53:21 -08:00
James Barr d2203323ff Migrate to AutoDispose's ErrorProne checkers (#398)
* Delete tooling/autodispose-error-prone-checker module

* Add AutoDispose's ErrorProne checks
2021-02-17 13:04:32 -08:00
James Barr 065630e92f Migrate from AssertJ to Truth (#396) 2021-02-16 17:40:26 -08:00
James Barr 676f742436 Migrate from uava to guava (#393)
* Delete rib-uava
* Use Guava classes instead of Uava
* Add Guava dependencies and be explicit about Android or JRE
2021-02-12 13:46:29 -08:00
fegol b586fbf024 Migration to AndroidX #324 (#334)
* Migration to AndroidX #324

* Divided versions for androidx libraries and renamed dependencies #324

* Upgrade target sdk version for travis #324

* Migration to androidx part 2 #324

* Fixed spaces #324
2019-06-19 22:48:18 +02:00
Shaishav Gandhi 9ac24da401 Update AutoDispose to 1.3.0 (#333)
* Update AutoDispose

* Enable desugaring in tutorials

* Move to static imports
2019-06-12 13:28:12 -07:00
SeungHun Choe 4215d2262f Fix travis build issue on case sensitive file system for Android 2019-05-24 10:10:27 +09:00
SeungHun Choe 94d8293316 Fix gradle sync and compilation error on Android Studio 3.4 2019-05-24 10:08:25 +09:00
Leland Takamine be95da8814 Always apply intellij plugin configuration. 2019-05-21 11:49:13 -07:00
Manu Sridharan 0d558ed879 Fix autodispose checker tests by modifying bootclasspath 2018-02-07 18:11:52 -08:00
Ren Decano f214dfd177 Updated templates and codes based on review comments
* Updated Java and Kotlin templates to use 2 spaces instead of 4
* Updated java codes to use 2 spaces instead of 4
* Updated plugin.xml to add 0.1.3 entry
* Updated intellij jar file
* Updated UI to show "Kotlin (experimental support)"
2018-01-23 16:56:20 -08:00
Ren Decano d83b8b948e Updated intellij plugin jar file. 2018-01-23 16:56:20 -08:00
Ren Decano 406813b80c Updated based on review comments. 2018-01-23 16:56:20 -08:00
Ren Decano f45179a3ee Added kotlin templates 2018-01-23 16:56:20 -08:00
Gergely Orosz b2814e3a3a Moving tooling documentation to the Wiki
Following the approach with tutorials, moving the documentation over to
the Wiki as well. The wiki pages are already in place.

In this commit, also removing assets from the android folder.
2017-11-05 19:05:49 +01:00
Brian Attwell 0036b2a6d2 Re-enable intellij module
Previously I needed to disable the intellij build in order to make travis green. This was necessary because the `com.uber.intellij:xxx` dependencies didn't exist in the oss world.

Realized that I could avoid using the `com.uber.intellij:xxx` dependencies if I simply applyied the intellij plugin. Granted this makes the regular build & gradle sync a lot slower.
2017-11-04 23:22:23 -07:00
Gergely Orosz 1ae296a1c0 Updating RIB code generation icon 2017-11-04 15:00:11 +01:00
Brian Attwell 694cc8fe5b Fix autodispose checker test
Also delete unused test files
2017-10-29 17:13:53 -07:00
Brian Attwell 39623e0236 Delete unused readme 2017-10-29 16:36:15 -07:00
Brian Attwell 000d128de3 New checker. Set it up in demo 2017-10-29 16:36:15 -07:00