Switched from Method-base JNI class construction to Field-base JNI class construction. Was dealing with some issues with returning a Java/Kotlin class from a C/C++ class.

This commit is contained in:
kdeng00
2019-12-15 14:47:14 -05:00
parent daf62f222c
commit dcc2320332
8 changed files with 728 additions and 779 deletions
@@ -61,6 +61,9 @@ namespace repository {
songJson["album_artist"].get<std::string>(),
songJson["genre"].get<std::string>(), songJson["duration"].get<int>(),
songJson["year"].get<int>(), songJson["coverart_id"].get<int>());
song.filename = "";
song.path = "";
song.downloaded = false;
songs.push_back(song);
}
@@ -109,6 +112,9 @@ namespace repository {
s["album_artist"].get<std::string>(), s["genre"].get<std::string>(),
s["duration"].get<int>(), s["year"].get<int>(),
s["coverart_id"].get<int>());
song.filename = "";
song.path = "";
song.downloaded = false;
return song;
}