sunfusheng / firupdater Goto Github PK
View Code? Open in Web Editor NEWFir.im通道APK更新器,使用简单,让自己的demo快速具备升级功能
Home Page: https://github.com/sfsheng0322/FirUpdater
Fir.im通道APK更新器,使用简单,让自己的demo快速具备升级功能
Home Page: https://github.com/sfsheng0322/FirUpdater
构造方法的Context参数,建议改为Activity,因为内部使用这个Context去展示弹窗,但是我一般会有个习惯,能传Application Context则不传Activity Context,而这里必须是Theme.AppCompat的Context。所以推荐强制参数是Activity类型
添加进项目grade时报错:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.sunfusheng:FirUpdater :.
这个参数后缀必须是/,否则会识别错误,但是系统返回的路径,默认是不带/的,比如Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)。
建议在下载文件,创建文件的时候,加入/的识别补充处理,会让这个构造方法的体验更好些。
java.net.ConnectException: Failed to connect to api.fir.im/127.0.0.1:80
at com.sunfusheng.FirAppInfo.requestAppInfo(FirAppInfo.java:25)
at com.sunfusheng.FirUpdater.lambda$requestAppInfo$0$FirUpdater(FirUpdater.java:91)
at com.sunfusheng.FirUpdater$$Lambda$0.run(Unknown Source:2)
http://api.fir.im/apps/latest/5d3e482323389f05206c1ff6?api_token=** 请求连接放浏览器打开是正常访问的
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.