You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-7
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,15 @@ After the fork the first version released was 3.0.0, which was version 2.5.2 fro
21
21
-[Types, Methods and Fields wiki page](https://github.com/JesusFreke/smali/wiki/TypesMethodsAndFields)
22
22
-[Official dex format reference](https://source.android.com/devices/tech/dalvik/dex-format.html)
23
23
24
-
### Building
24
+
### Building and testing
25
+
26
+
All building and testing should be done using a version of OpenJDK 11. Newer OpenJDK versions are currently not supported due to issues with some of the tools used in the build process.
27
+
28
+
#### Building
25
29
```
26
30
./gradlew assemble
27
31
```
28
-
### Command Line Version
32
+
####Command Line Version
29
33
30
34
To run the `smali` and `baksmali` tools from the command line build the fat
31
35
jars. The fat jars will be named with the current version followed by the first
Push a release version to your local maven repository (add
49
53
`-Dmaven.repo.local=<dir>` to override the default local maven repository
50
54
location)
51
55
```
52
56
./gradlew release publishToMavenLocal
53
57
```
54
58
55
-
### Prepare and build a release version
59
+
### Releasing
60
+
61
+
Building release versions and releasing to [Google Maven](https://maven.google.com) use Google infrastructure and support scripts maintained as part of the [R8](https://r8.googlesource.com/r8/) repository. The tasks below can only be performed by Google employees.
62
+
63
+
#### Prepare and build a release version
56
64
To prepare a release update `build.gradle` with the next release version and commit that.
57
65
Then create a tag for that commit with the version.
58
66
```
@@ -67,5 +75,10 @@ in the R8 repository.
67
75
68
76
The status of the build on the bot is at https://ci.chromium.org/p/r8/builders/ci/smali.
69
77
70
-
### Releasing versions on Google Maven
71
-
TBD.
78
+
#### Releasing to Google Maven
79
+
80
+
When a release version has been built on the bot, it can be released to [Google Maven](https://maven.google.com) by running
81
+
```
82
+
tools/release_smali.py --version=<version>
83
+
```
84
+
in the R8 repository. This kick off an internal Google approval process to finalize the release.
0 commit comments