When downloading NicovideoSeiga image, the saved file extension has become wrong type. This commit addresses the issue by fixing following errors. - Images is determined the type by file header. The logic has wrongly assumed Byte.toInt() returns unsigned integer, but it actually returns signed value. - The server returns application/octet-stream as Content-Type header. But the logic only worked when header is empty.
13 lines
284 B
Groovy
13 lines
284 B
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlinx-serialization'
|
|
|
|
ext {
|
|
extName = 'Nicovideo Seiga'
|
|
pkgNameSuffix = 'ja.nicovideoseiga'
|
|
extClass = '.NicovideoSeiga'
|
|
extVersionCode = 2
|
|
}
|
|
|
|
apply from: "$rootDir/common.gradle"
|