Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ollide/intellij-java2smali
A plugin for IntelliJ IDEA & Android Studio to easily compile Java & Kotlin files to smali.
https://github.com/ollide/intellij-java2smali
android-development android-studio-plugin dex idea-plugin java smali
Last synced: about 1 month ago
JSON representation
A plugin for IntelliJ IDEA & Android Studio to easily compile Java & Kotlin files to smali.
- Host: GitHub
- URL: https://github.com/ollide/intellij-java2smali
- Owner: ollide
- License: mit
- Created: 2014-01-22T23:54:33.000Z (almost 11 years ago)
- Default Branch: develop
- Last Pushed: 2021-05-01T10:18:27.000Z (over 3 years ago)
- Last Synced: 2024-09-27T00:01:44.112Z (about 2 months ago)
- Topics: android-development, android-studio-plugin, dex, idea-plugin, java, smali
- Language: Kotlin
- Homepage:
- Size: 13.8 MB
- Stars: 494
- Watchers: 17
- Forks: 72
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
intellij-java2smali
===================[![Travis Build Status](https://travis-ci.org/ollide/intellij-java2smali.svg?branch=develop)](https://travis-ci.org/ollide/intellij-java2smali)
[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/htqnq07bveqh8elv/branch/develop?svg=true)](https://ci.appveyor.com/project/ollide/intellij-java2smali)
[![Quality Gate status](https://sonarcloud.io/api/project_badges/measure?project=org.ollide%3Aintellij-java2smali&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.ollide%3Aintellij-java2smali)Simple plugin for IntelliJ IDEA & Android Studio to easily compile Java & Kotlin files to smali.
Have you ever compiled and packaged a dummy Android application just to grab some Java sources in smali? Stop that! Transforming Java to smali just got easier.
## Usage ##
1. create or open a Java source file with your desired functionality
2. click 'Build' and 'Compile to smali'
3. wait while IDEA's indicating the compilation process
4. the smali file is opened automatically in your editor## Installation ##
java2smali is available at [JetBrains Plugin Repository](https://plugins.jetbrains.com/plugin/7385) and can therefore be found in your IDE's plugin manager! Alternatively, you can download the plugin from the release section.
### Build From Source
This plugin uses JetBrains [gradle-intellij-plugin](https://github.com/JetBrains/gradle-intellij-plugin) and can easily build from source.
Clone the repository:
git clone https://github.com/ollide/intellij-java2smali.git
cd intellij-java2smaliBuild the plugin with Gradle:
./gradlew buildPlugin
The plugin can be found in `/build/distributions/java2smali-$VERSION.zip`.
## Troubleshooting ##
To enable debug logging of the plugin, select `Help -> Diagnostic Tools -> Debug Log Settings…`
and add the following line:
```
#org.ollide.java2smali
```## Third-Party Libraries & Credits ##
- [dx](http://developer.android.com/tools/help/index.html#tools-platform) from the Android platform-tools is used to create a .dex version of the compiled Java (.class) file
- [baksmali](https://github.com/JesusFreke/smali) –
a great disassembler for Android's dex format is used to create the final .smali output file
- [intellij-emberjs](https://github.com/Turbo87/intellij-emberjs) –
a nicely written plugin which uses the gradle-intellij-plugin with Kotlin