-1

Jitpac compiles my android sdk to Java from Kotlin. How to save sdk classes in Kotlin?

my jitpac.yml

jdk:
  - openjdk11
before_install:
  - ./scripts/prepareJitpackEnvironment.sh

It happens only with minifyEnabled true

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141

1 Answers1

0

Minification isn't meant to be done on a library level, it's the app's responsibility. So setting minifyEnabled to false is the solution.

When an app has minifyEnabled true, and it includes your library, your library's code will also be obfuscated. See the official documentation:

Code shrinking (or tree-shaking): detects and safely removes unused classes, fields, methods, and attributes from your app and its library dependencies.

Resource shrinking: removes unused resources from your packaged app, including unused resources in your app’s library dependencies.

(emphasis added)

user3738870
  • 1,415
  • 2
  • 12
  • 24