Skip to content

Commit

Permalink
1. 添加 jitpack 中的 v1.0.0 依赖。
Browse files Browse the repository at this point in the history
  • Loading branch information
qingw committed Apr 27, 2017
1 parent 0e00f4b commit 8503445
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.android.support:design:25.1.0'
compile 'com.github.gdky005:AndroidBadge:v1.0.0'
}
6 changes: 6 additions & 0 deletions app/src/main/java/gdky005/androidbadge/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;

import gdky005.badge.Utils;

public class MainActivity extends AppCompatActivity {

Expand All @@ -26,6 +29,9 @@ public void onClick(View view) {
.setAction("Action", null).show();
}
});

Toast.makeText(this, "badge 的版本是:" + Utils.getVersion(),
Toast.LENGTH_SHORT).show();
}

@Override
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ buildscript {
allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
}

Expand Down

0 comments on commit 8503445

Please sign in to comment.