Coder Social home page Coder Social logo

yaming116 / updateapp Goto Github PK

View Code? Open in Web Editor NEW
349.0 13.0 61.0 147 KB

app update, is mainly responsible for app download and installation, etc. 开箱即用的app更新,主要负责软件下载、软件安装等。

License: Apache License 2.0

Java 100.00%
updateapp

updateapp's Introduction

UpdateApp

License Jitpack API Buildpass

中文说明

App update, is mainly responsible for app download and installation, etc. Permission and Service are has been added to the aar inside.

Permission

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET"/>

Service

    <service android:name=".UpdateService" />

Use

   UpdateService.Builder.create(URL).build(this);

NOTE: smallIcon where there is a major need,Micro Tips Details Android notification bar

Params

parameter description
downloadUrl download link
icoResId Notification icon,default is app icon
icoSmallResId Notification bottom right corner icon,default is app icon
storeDir store apk dir,default in sdcard/Android/package/update
updateProgress Refresh notification progress bar, default updated each time you download add 1%
downloadNotificationFlag downloading Notification Flag
downloadErrorNotificationFlag download error Notification Flag
downloadSuccessNotificationFlag download success Notification Flag
isSendBroadcast Whether to send broadcast

Gradle

allprojects {
    repositories {
        maven { url "https://www.jitpack.io" }
    }
}

dependencies {
    compile 'com.github.yaming116:UpdateApp:1.0.4'
}

`SNAPSHOT`
dependencies {
    compile 'com.github.yaming116:UpdateApp:1.0.4-SNAPSHOT'
}

License

Copyright (C) 2011 花开堪折枝 Software Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

updateapp's People

Contributors

yaming116 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

updateapp's Issues

App update with count notification

First of all thanks for awesome library, I need help how I can show in app icon and in Setting Activity with Count Notification (Push Notification) associate with this library when new app update is available?

我已经用v4 的替代了

目前没发现什么问题 可用。 谢谢 UPDATE_NUMBER_SIZE 您也可以在源码里面改大一点, 20kb 就通知一次 手机基本上会特别卡顿 最后谢谢你无私的奉献

请问provider节点冲突怎么处理?

Attribute provider#android.support.v4.content.FileProvider@authorities value=(com.eleph.inticaremr.provider) from AndroidManifest.xml:81:13-60
is also present at [com.github.yaming116:UpdateApp:1.0.7] AndroidManifest.xml:19:13-76 value=(com.eleph.inticaremr.update_app.file_provider).
Suggestion: add 'tools:replace="android:authorities"' to element at AndroidManifest.xml:79:9-87:20 to override.

gradle fail

今天突然用不了了,导致项目gradle失败。。。。

NotificationCompat

您好 , NotificationCompat 在 v7 版本 22 以下是没有的 这个问题有办法可以解决吗? 或者用别的方法替代

Download notification not working

This is my code

            UpdateService.Builder.create(URL)
                    .setDownloadSuccessNotificationFlag(Notification.DEFAULT_ALL)
                    .setDownloadErrorNotificationFlag(Notification.DEFAULT_ALL)
                    .build(MainActivity.this);

Everything is working fine but the Download notification is not showing up.
All permissions are there because my app's OneSignal push notifications are working. I tried disabling OneSignal and tried but still the same, not Download notification

It is showing me this in my log

2019-12-30 22:11:01.094 1526-3465/? E/NotificationService: No Channel found for pkg=my.animeprime.app, channelId=null, id=1, tag=null, opPkg=abc.abc.abc, callingUid=10805, userId=0, incomingUserId=0, notificationUid=10805, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x0 color=0x00000000 vis=PRIVATE)

Any help is really appreciated

下载https的apk

现在有两种思路
1.信任所有的证书,安全问题
2.信任当前机器上面的,如果是自定义证书会通不过。

好东西

测试了下 现在不停的震动和响铃,这个希望可以修复成开发者可选用配置项

通知栏显示

这个不支持在通知栏点击 显示下载进度.(Dialog 下载进度,以及暂停等,,)

8.0上面没有适配

小米8.0,框架1.0.6版本报
java.lang.NoSuchMethodError: No virtual method setChannelId(Ljava/lang/String;)Landroid/support/v4/app/NotificationCompat$Builder;
in class Landroid/support/v4/app/NotificationCompat$Builder; or its super classes (declaration of 'android.support.v4.app.NotificationCompat$Builder' appears in /data/app/-F6ISuTaS0n1sBIuIxfEw_g==/base.apk!classes68.dex)
at me.shenfan.updateapp.UpdateService.buildNotification(UpdateService.java:292)
at me.shenfan.updateapp.UpdateService.onStartCommand(UpdateService.java:208)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3512)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1720)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6637)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:518)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:822)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.