Skip to content

A simple jvm library for moving android resources

License

Notifications You must be signed in to change notification settings

hothf/skyscaper-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skyscaper Resource Management Tool Library

Written purely with Kotlin and the kotlinx.coroutines library.

Build

Build with IntelliJ IDE ("Build artifact") or via command line with:

$ cd src/

$ kotlinc . -cp ../lib/kotlinx-coroutines-core-1.0.1.jar -include-runtime -d skyscaper.jar

Note that the IDE approach generates a full jar for standalone usage.

Usage

Given the build project as the "skyscaper.jar"-file and in the current directory:

1. Command Line

$ java -jar skyscaper.jar /Users/you/Desktop/source/drawable-hdpi/tester.png", "/Users/you/Desktop/destination/res"

will move all images named tester.png in up to two parent folders to the specified destination folder. This will also copy the parent folder of the corresponding source file.

This means: You can select a file from within one of many drawable-x folders and put the destination folder to the res folder of an android project. This will ensure, that any drawable-x folder will also be present at the destination path.

2. As a library

You may rename the output file with an optional parameter. This is not possible from within the command line. Use it as a Library instead and invoke:

SkyscaperApp.performAsync(args: Array<String>, fileName: String? = null, onComplete: CompletionListener? = nul)

About

A simple jvm library for moving android resources

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages