Skip to content

namhyun-gu/brick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brick

Build Status GitHub release

Compose latest android dependencies

Preview

Getting Started

Download latest release

Supported libraries

Jetpack
  • activity
  • appcompat
  • camera
  • compose
  • fragment
  • hilt
  • lifecycle
  • material
  • navigation
  • paging
  • room
  • work
DI
  • dagger2
  • dagger-hilt
  • koin
Networking
  • retrofit
  • okhttp
  • okhttp-bom
  • okhttp-mockwebserver
  • fast-android-networking
  • volley
  • cronet
Firebase
  • Firebase Android BoM (Bill of Materials)
  • AdMob
  • Analytics
  • App Indexing
  • Authentication
  • Cloud Firestore
  • Cloud Functions for Firebase Client SDK
  • Cloud Messaging
  • Cloud Storage
  • Crashlytics
  • Dynamic Links
  • Firebase ML Model Downloader API
  • In-App Messaging
  • In-App Messaging Display
  • Performance Monitoring
  • Realtime Database
  • Remote Config
Coroutines
  • kotlinx-coroutines-bom
  • kotlinx-coroutines-core
  • kotlinx-coroutines-core-common
  • kotlinx-coroutines-test
  • kotlinx-coroutines-debug
  • kotlinx-coroutines-play-services
Rx
  • rxjava3
  • rxjava3-snapshot
  • rxkotlin3
  • rxandroid

How to use

# Windows
brick.exe [command]

# Linux
brick [command]

⚠ Require run update command before first run.

Commands

To see a list of commands, run:

brick help

The current commands are:

bucket      Management buckets
doc         Open library document in browser
get         Get latest library
help        Help about any command
list        Print supported libraries
update      Update bucket caches
valid       Validate configuration file

Examples

  • Get latest library
$ ./brick get jetpack:activity jetpack:appcompat
implementation "androidx.appcompat:appcompat:1.3.0-beta01"
implementation "androidx.activity:activity-ktx:1.3.0-alpha04"
  
$ ./brick get jetpack:appcompat --gradle=kotlin 
implementation("androidx.appcompat:appcompat:1.3.0-beta01")
  • Open library document in browser
$ ./brick doc jetpack:activity
Opening https://developer.android.com/jetpack/androidx/releases/activity in your browser.
  • Print supported libraries
$ ./brick list
└── jetpack
  ├── activity
  ├── appcompat
  ├── camera
  ├── compose
  ├── fragment
      ...

$ ./brick list --section jetpack
jetpack
├── activity
├── appcompat
├── camera
├── compose
├── fragment
    ...
  • Update bucket caches
$ ./brick update
Updating namhyun-gu:brick...
  • Validate configuration file
$ ./brick valid test.yaml
invalid: require 'source' field in (root)
invalid: require 'name' field in (root)
invalid: require 'content' field in dagger-hilt (java) (line: 6, col: 9)
invalid: require 'java' or 'kotlin' field in dagger2 (line: 16, col: 5)
invalid: require 'document' field in koin (line: 19, col: 5)
invalid: unable 'io.insert-koin:koin-android' (source: null) in koin (java) (line: 21, col: 9)
invalid: require 'name' field in (line: 27, col: 5)
Error: 7 issues found
  • Management buckets
# Add bucket
$ ./brick bucket add namhyun-gu:brick@main
Added namhyun-gu:brick to bucket.

# Add bucket with Path
$ ./brick bucket add namhyun-gu:brick@main --path data/
Added namhyun-gu:brick to bucket.

# Remove bucket
$ ./brick bucket remove namhyun-gu:brick
Removed namhyun-gu:brick to bucket.

# Print buckets
$ ./brick bucket list
namhyun-gu:brick@main data/

License

Copyright 2021 Namhyun, Gu

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.