Commit Graph

2118 Commits

Author SHA1 Message Date
5aba17d81c build: only build master (push) 2021-08-28 14:25:01 -04:00
ab6b6a5338 docs: add new build information for aapt2/aapt 2021-08-28 14:08:23 -04:00
c3e8be3e8a Reformat & Rearrange 2021-08-27 01:32:40 +08:00
7ff89c4f44 Add .editorconfig rules 2021-08-27 01:20:06 +08:00
94ed86db28 Code cleanups 2021-08-27 01:16:46 +08:00
2cbefeb91d docs: fix broken workflow CI image badge 2021-08-26 07:55:42 -04:00
e25c3636ff Update docs & licenses to use https 2021-08-26 07:40:32 -04:00
6df6beb38d Replace license plugin usage 2021-08-26 07:36:17 -04:00
c9d28de8c1 Merge all actions workflows into build.yml 2021-08-26 07:36:17 -04:00
7bb6956304 Update github actions & Update gradle (#2628)
* Bump setup-java actions to v2

* Make test action on all branches

* Add dependabot.yml for updating github actions

* Update gradle 7.2

* Revert "Make test action on all branches"

This reverts commit 52758ea249d969f3b94f3ae5d4b5b980103a5cfa.

* Correct jdk

* Revert "Add dependabot.yml for updating github actions"

This reverts commit 7381e8f71c656499e7d0cc70e854b5e4978722d0.

* Run CI after workflows configs changed
2021-08-24 07:59:22 -04:00
8d59882e5f Fix: numeric string meta-data value corruption (#2612)
* Fix: handle numeric strings in manifest meta-data value
* fix regex
* scoped solution
* improve comment

Co-authored-by: Cody Lund <colund@microsoft.com>
2021-08-17 07:01:08 -04:00
1dddc32636 Add .gitattributes 2021-08-17 06:51:18 -04:00
b9f7ae805e Bump proguard to 7.1.1 2021-08-09 15:36:35 -05:00
76f01c3695 Bump shadow to 7.0.0 2021-08-09 15:36:35 -05:00
12ae67158c Merge pull request #2617 from Goooler/bump
Update dependencies & Add .editorconfig
2021-07-21 06:15:14 -04:00
9a3a748e9a Add .editorconfig for format 2021-07-19 12:57:52 +08:00
d1b48711cf Update dependencies 2021-07-19 12:57:39 +08:00
eaab729be5 build: remove deprecated jcenter repo location 2021-07-05 19:44:30 -04:00
646f43a140 Merge pull request #2606 from iBotPeaches/issue-2603
fix: write dummy resources as items
2021-07-05 05:41:55 -04:00
e4654e0b5f fix: write dummy resources as items 2021-07-04 09:49:59 -04:00
a36be82c48 Merge pull request #2605 from IgorEisberg/master
Determine minSdkVersion with baksmali for JARs + don't compress webp
2021-07-04 09:19:28 -04:00
fad2f99541 style: return DexFile interface from SmaliDecoder 2021-07-04 14:12:38 +03:00
6cfa79e456 Determine minSdkVersion with baksmali for JARs + don't compress webp
We take advantage of the fact that baksmali can determine the minimum API version needed for a given collection of opcodes and extract it, then save to mMinSdkVersion, which is only used by smali via buildSourcesSmali.
This change, in addition to my previous change, allows to decompile and recompile JARs without worrying about specifying an API version via -api/--api-level.

As an extra, added webp file extension to NO_COMPRESS_PATTERN, according to AAPT2 standards, and since it's factually never compresses as it's an already compressed format.
https://cs.android.com/android/platform/superproject/+/master:frameworks/base/tools/aapt2/cmd/Link.cpp;l=2328
2021-07-04 02:14:56 +03:00
d1e4478f82 Merge pull request #2604 from IgorEisberg/master
Fix baksmali without API version and various optimizations
2021-07-03 17:41:22 -04:00
1ed1076a84 correction: don't clear resource table if it was already loaded 2021-07-04 00:16:22 +03:00
88d3d0038c style: organize some using statements for consistency 2021-07-03 23:24:42 +03:00
83f9693633 clean: get rid of useless throws 2021-07-03 23:15:10 +03:00
1472b50541 fix: pass opcodes=null for baksmali to auto-determine by dex version
When DexBackedDexFile gets opcodes==null, it calls getDefaultOpcodes(dexVersion) which returns the appropriate opcodes for the given dex version. No hints are required for baksmali, but only needed for smali.
https://github.com/JesusFreke/smali/blob/master/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/DexBackedDexFile.java#L83
2021-07-03 23:05:04 +03:00
204b742cf0 Avoid abuse of getResTable calls and unneeded checks 2021-07-03 22:46:11 +03:00
1fd3f52b9d clean: setTargetSdkVersion used before manifest was decoded 2021-07-03 22:35:59 +03:00
992de66bac Handle setAnalysisMode properly 2021-07-03 22:17:00 +03:00
bb42159880 style: rename vars for consistency 2021-07-03 21:26:16 +03:00
5599e30206 Merge pull request #2602 from Goooler/gradle7
Bump gradle to 7.1 & update dependencies
2021-07-02 06:14:00 -04:00
64a986d752 Update dependencies 2021-07-01 11:21:20 +08:00
3ff5588b08 Bump gradle to 7.1 2021-07-01 11:13:44 +08:00
d65c88a447 Merge branch 'master' into gradle7
# Conflicts:
#	build.gradle
2021-07-01 11:12:17 +08:00
a6138f3be4 feat: add helpful message if CantFindFrameworkResException is thrown 2021-06-26 07:02:46 -04:00
192f9cb627 style: correct name of downloaded asset 2021-06-12 17:31:07 -04:00
f5885a4763 feat: produce binary per master commit 2021-06-12 17:24:17 -04:00
9f8ddb1bb0 feat: update internal framework to API 31 (S Beta 4) 2021-06-02 06:21:30 -04:00
ea3427a3a5 Merge pull request #2577 from iBotPeaches/build-system
build: cache gradle based on java version
2021-05-31 06:55:20 -04:00
3b31189222 build: cache gradle based on java version 2021-05-31 06:54:26 -04:00
66b1c30fa0 style: use new form of junit assertions 2021-05-31 06:43:40 -04:00
de03c8b689 docs: drop freenode, hello libera.chat 2021-05-30 14:34:21 -04:00
7c2ea3537d Merge pull request #2561 from Goooler/version
TestImplementation jUnit in depends
2021-04-27 11:43:47 -04:00
076ade6a51 TestImplementation jUnit in depends 2021-04-25 22:40:46 +08:00
f11962024e Merge pull request #2560 from Goooler/optimize
Optimize gradle
2021-04-25 10:19:21 -04:00
caa57b4d55 Use string template 2021-04-24 10:53:30 +08:00
8828ab53b7 Optimize gradle 2021-04-24 10:32:50 +08:00
8a8cd6eb89 Bump versions 2021-04-22 18:14:18 -04:00