danikula / google-play-expansion-file Goto Github PK
View Code? Open in Web Editor NEWGoogle's 'play_apk_expansion', 'play_licensing', 'zip_file' projects.
Google's 'play_apk_expansion', 'play_licensing', 'zip_file' projects.
I have created .obb file using zip command in mac with no compression and check expansion with manually place .obb file on device desired location it work perfectly but when i upload signed APK in alpha testing along with .bbb file expansion and try to check real expansion downloading it will show "XAPK File Validation Failed." Please help to resolve this problem.
The obb files are downloaded in Android/obb folder but helper class is checking API version and checking files in Android/data folder. Is this the correct behaviour??
Hi, is this google's source code or did you implement it yourself? because I couldn't find Google's APK expansion library's source code and was wondering where did you find it.
thanks
Hi, could you explain why minSDK version for expansion module set to API 16? i have a problem to merge it to my app as it has minSDK 9. thanks
I successfully implement the sample on my work project, but I noticed that the indicators not work as expected.
The file and the downloading size overlaps the limit and the percent too.
The code have a line that for my personal opinion is wrong.
progress.mOverallTotal = progress.mOverallTotal;
/**
* Sets the state of the various controls based on the progress info object
* sent from the downloader service.
*/
@Override
public void onDownloadProgress(DownloadProgressInfo progress) {
mAverageSpeed.setText(getString(R.string.kilobytes_per_second, Helpers.getSpeedString(progress.mCurrentSpeed)));
mTimeRemaining.setText(getString(R.string.time_remaining, Helpers.getTimeRemaining(progress.mTimeRemaining)));
progress.mOverallTotal = progress.mOverallTotal;
mPB.setMax((int) (progress.mOverallTotal >> 8));
mPB.setProgress((int) (progress.mOverallProgress >> 8));
mProgressPercent.setText(Long.toString(progress.mOverallProgress * 100 / progress.mOverallTotal) + "%");
mProgressFraction.setText(Helpers.getDownloadProgressString(progress.mOverallProgress, progress.mOverallTotal));
}
Any suggestions to fix this? @danikula
Thanks in advance ๐
My apologies for leaving a rather vague bug report. :)
I've been using version 1.3.4 of the library, in this project: https://github.com/agwells/cordova-plugin-xapkreader/tree/cordova-6.3 . (Actually a Cordova plugin, which gets used with a Cordova app.)
It worked fine in testing, but when we deployed it to more devices, some users downloaded the expansion file twice. I haven't been able to replicate this myself, or directly inspect an affected device, but it seems that the expansion file was downloaded by Google Play during app installation, and then downloaded again by my app.
The affected devices all seem to have been Android 6 or 7, and may have included a Samsung Galaxy Note4 and Samsung Galaxy S5. (Although I have a confirmed report that it worked fine on a Samsung Galaxy S6 with Android 6.)
Can't seem to import zip_file
Here's my gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "tv.thumbwar.mac_technique_expansion"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven { url 'https://dl.bintray.com/alexeydanilov/apk-expansion' }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.danikula.expansion:expansion:1.3.3@aar'
compile 'com.danikula.expansion:license:1.7.0@aar'
compile 'com.danikula.expansion:zip:1.2.1@aar'
}
In DownloaderClientMarshaller.java, a breakpoint stops at:
private static final Logger LOG = LoggerFactory.getLogger("DownloaderClientMarshaller");
And causes my app to crash.
I've tried adding
compile 'org.slf4j:slf4j-api:1.7.7'
compile files('libs/slf4j-simple-1.7.21.jar')
to my build.gradle, but it doesn't alleviate the problem.
I'm using Android Studio 2.1.2, JDK 1.7.0, and using:
compile 'com.danikula.expansion:expansion:1.3.3@aar'
compile 'com.danikula.expansion:license:1.7.0@aar'
compile 'com.danikula.expansion:zip:1.2.1@aar'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.