Fix Windows build problems in AARLibrary
A hard-coded '/' breaks builds involving Maps on Windows. This commit
switches to using File.getName() to get the name of archive before
stripping its '.aar' file extension.
@@ -122,8 +122,8 @@ public class AARLibrary {
*/
public AARLibrary(final File aar) {
aarPath = aar;
- String temp = aar.getAbsolutePath();
- name = temp.substring(temp.lastIndexOf('/'), temp.length()-4);
+ String temp = aar.getName();
+ name = temp.substring(0, temp.length()-4);
}
public File getFile() {
