jroal / a2dpvolume

Automatically exported from code.google.com/p/a2dpvolume
http://jimroal.com/slist.htm
95 stars 33 forks source link

build.gradle #254

Closed cprhokie closed 5 years ago

cprhokie commented 6 years ago

First of all thanks Jim for sharing this very useful utiltiy! I didn't know how else to get you this message.
When checking out the project and loading into Android Studio 2.3.3 I was unable to get the build to work until I created a build.gradle for the app module. Until I added build.gradle I was unable to get it to correctly generate R.java for the resources. Am I missing something? I have done quite a bit of Android development but am not a gradle expert. Should the build.gradle for the app module be in the git repo? Thanks again!

jroal commented 6 years ago

I think this is what you are looking for: https://github.com/jroal/a2dpvolume/wiki/Building-APK

I excluded this file because it contains login credentials for the keystore. I too am a total rookie with Gradle. Hope that solves your issues. If not, comment on that wiki thread and we can discuss it there.

cprhokie commented 5 years ago

I found a way to add app/build.gradle while keeping the keystore password external - on stack overflow here: https://stackoverflow.com/questions/20562189/sign-apk-without-putting-keystore-info-in-build-gradle I used the second answer because it looks a little more straightforward than the first - it is basically just adding a properties file with the filename and password info - then modifying build.gradle to get the keystore info from that properties file. I just tried it and it only took me a few minutes to do it and verify that it was signing correctly. I didn't see a way to comment on a wiki page :)

jroal commented 5 years ago

I implemented this now. The build.gradle file is now in the repo.

cprhokie commented 5 years ago

thanks!