java sdk 1.3.0(lastest)
can not install sucess.
reason:
no such file :assets/document-formats/onlyoffice-docs-formats.json
code(com.onlyoffice.manager.document.DefaultDocumentManager):
private static final String DOCS_FORMATS_JSON_PATH = “assets/document-formats/onlyoffice-docs-formats.json”;
private static List formats;
static {
init();
}
protected static void init() {
ObjectMapper objectMapper = new ObjectMapper();
InputStream inputStream = Thread
.currentThread()
.getContextClassLoader()
.getResourceAsStream(DOCS_FORMATS_JSON_PATH);
if (inputStream == null) {
inputStream = DefaultDocumentManager.class
.getClassLoader()
.getResourceAsStream(DOCS_FORMATS_JSON_PATH);
}
try {
formats = objectMapper.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true)
.readValue(inputStream, new TypeReference<List<Format>>() { });
} catch (IOException e) {
throw new RuntimeException(e);
}
}