Reputation: 460
I created a some_library_v1.jar and created an testApp to show how to use this jar and finally pushed the testApp on our server.
Then requirements were changed and I updated jar, replaced it with new name some_library_v2.jar and pushed the testApp again. But it turned out that Android Studio thinks that I only changed name of jar. As a workaround I just added old jar and pushed it again, so, now folder libs contains several versions of my library.
My question is how to make Android Studio understand that I have changed a library but not only jar's name?
Upvotes: 2
Views: 566
Reputation: 1326706
Without discussing the best practice (ie, regenerate a jar from sources compilation), try instead:
git rm -- old.jar
git commit -m "Remove jar v1"
git add -- new.jar
git commit -m "Add jar V2"
That should be enough to record those events properly (and not as a "rename")
Upvotes: 1