java - Edit Maven Compiled Repository Source Code -
i using maven repository here:
https://github.com/cyberagent/android-gpuimage
the dependency is:
compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.2.3'
and there bug in source code need fix. when open class, method pre-compiled code , can't change it.
public void oninitialized() { /* compiled code */ }
do know how can make changes locally (even if have point dependency path on computer thats fine, how that?
update
here github project folder structure when open in android studio. there library folder want turn aar.
since source code available there no need mess around much.
if cannot work around issue extending class can clone project:
git clone https://github.com/cyberagent/android-gpuimage.git
then change version in gradle.properties
1.2.3-agressorpatch1 (as example) distinguish artifact original one. change sources want have changed , compile project:
gradle clean assemble
the project apache licensed ok.
the jar created needs end in maven repository. either copy locally ~/.m2/repository (or maven repo located at) or folder keeping same structure.
file:///sharedfolder/jp/co/cyberagent/android/gpuimage/gpuimage-library/1.2.3-agressorpatch1/gpuimage-library-1.2.3-agressorpatch1.aar
the link posted source repository, not maven repository.
so need tell build use location well. i'm not gradle like:
repositories { maven { url "file:///sharedfolder" } }
this saves manually decompile class , re-pack artifact , on.
Comments
Post a Comment