Skip to content

Commit

Permalink
移除
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhong committed Dec 24, 2016
1 parent a784b14 commit bfbb85a
Show file tree
Hide file tree
Showing 8 changed files with 281 additions and 192 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

322 changes: 227 additions & 95 deletions .idea/workspace.xml

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions alarmmanagerclock/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
android:label="@string/app_name"
android:supportsRtl="true"
>
<receiver android:name="com.loonggg.lib.alarmmanager.clock.AlarmReceiver">
<intent-filter>
<action android:name="com.loonggg.alarm.clock"/>
</intent-filter>
</receiver>
</application>

</manifest>
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<receiver android:name=".AlarmReceiver" >
<intent-filter>
<action android:name="com.loonggg.alarm.clock" />
</intent-filter>
</receiver>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.loonggg.lib.alarmmanager.clock;
package com.loonggg.alarmmanager.clock;

import android.content.BroadcastReceiver;
import android.content.Context;
Expand All @@ -16,4 +16,8 @@ public class AlarmReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
Log.i(TAG, "onReceive: " + "收到闹钟");
}

public void onMyReceive(Context context, Intent intent){

};
}
29 changes: 0 additions & 29 deletions app/src/main/java/com/loonggg/alarmmanager/clock/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@

import io.realm.Realm;
import io.realm.RealmConfiguration;
import io.realm.RealmResults;
import rx.Observable;
import rx.Subscriber;
import rx.functions.Func1;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
protected Button btnQuery;
Expand Down Expand Up @@ -96,31 +92,6 @@ public static String getTime(Date date) {
public void onClick(View view) {
if (view.getId() == R.id.btn_query) {
Realm realm = Realm.getDefaultInstance();
realm.where(AlarmBean.class).findAllAsync().asObservable()
.flatMap(new Func1<RealmResults<AlarmBean>, Observable<AlarmBean>>() {
@Override
public Observable<AlarmBean> call(RealmResults<AlarmBean> alarmBeen) {
Log.i(TAG, "size: " + alarmBeen.size());
return Observable.from(alarmBeen);
}
})
.subscribe(new Subscriber<AlarmBean>() {
@Override
public void onCompleted() {

}

@Override
public void onError(Throwable e) {

}

@Override
public void onNext(AlarmBean alarmBean) {
Log.i(TAG, "alarmBean: " + alarmBean.toString());

}
});
}
switch (view.getId()) {
case R.id.repeat_rl:
Expand Down
Binary file modified build/generated/mockable-android-23.jar
Binary file not shown.
104 changes: 43 additions & 61 deletions build/intermediates/dex-cache/cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
sha1="ccde00f7ccc77af5a6d5752e2cb21f6d8998289f">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/okhttp-3.4.2_7d453add634072c572471479f2ea57473f013ed6/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.uphyca/stetho_realm/2.0.0/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="4d668d438bf1a032b186b83151f4da16f32c498b">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.uphyca-stetho_realm-2.0.0_7d427da9751b819bc3c8b8a2e91ecf471ef87329/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/23.4.0/jars/classes.jar"
Expand Down Expand Up @@ -48,129 +57,102 @@
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/io.reactivex/rxandroid/1.0.1/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="aa81bfe8c5cc88c2472ca936ae71f0c3dd1766df">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/io.reactivex-rxandroid-1.0.1_b739f08db8cf0f07cccbfeabd57a39aa037e7802/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.9.0/f824591a0016efbaeddb8300bee54832a1398cfa/okio-1.9.0.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="f824591a0016efbaeddb8300bee54832a1398cfa">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/okio-1.9.0_95d2c302b53ebd227602928c2ec9f508ba71a7bc/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/io.realm/realm-android-library/2.1.1/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="a8b6e31343b6de9a37f6d81d7fdda29b3b4a90de">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/io.realm-realm-android-library-2.1.1_a63ac5dfe3ccb9393420259ae1c1420dd1a8ae2b/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.4.0/jars/classes.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.facebook.stetho/stetho/1.4.2/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="c2c594cace5d83a3227b2b6e658ecbfd586d3ed9">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-support-vector-drawable-23.4.0_718d6e54a10facc2c953a74d88ba4ca1ca79025d/classes.dex" />
sha1="32f45bd44a3e7efc235bbfed120029290f5d674a">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.facebook.stetho-stetho-1.4.2_3810394ac5f6b793cd4f88399a0b2c631dae2694/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.getkeepsafe.relinker/relinker/1.2.2/jars/classes.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/jars/libs/internal_impl-23.4.0.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="b64dd5f01bc37de289f90fd59299b0c76d119611">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.getkeepsafe.relinker-relinker-1.2.2_97cf32e296f9d35365be8640079bf9cad55de1d1/classes.dex" />
sha1="ea3c07504d2c8f4b13aa17c45c1b68ed9c1c3674">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/internal_impl-23.4.0_d35083b0c6792e694d9f6313b25302d86fd9880f/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.0.14/898f9ab61e2a23afd615f0b0389478bec86f49f9/rxjava-1.0.14.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="898f9ab61e2a23afd615f0b0389478bec86f49f9">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/rxjava-1.0.14_2b636a77577df8d0b5f7b0562164d82043fc0677/classes.dex" />
sha1="67bd36ee9340ec7c254108936ad16b24bed160cc">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-support-v4-23.4.0_2f093df4013c30a67c387e0006c18264fafe5a53/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.uphyca/stetho_realm/2.0.0/jars/classes.jar"
jar="/Users/qeeniao/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/2.0.1/516c03b21d50a644d538de0f0369c620989cd8f0/jsr305-2.0.1.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="4d668d438bf1a032b186b83151f4da16f32c498b">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.uphyca-stetho_realm-2.0.0_7d427da9751b819bc3c8b8a2e91ecf471ef87329/classes.dex" />
sha1="516c03b21d50a644d538de0f0369c620989cd8f0">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/jsr305-2.0.1_4c3e6ef8b623c183d506af69924c8d549bd79520/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.facebook.stetho/stetho/1.4.2/jars/classes.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.bigkoo/pickerview/2.0.8/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="32f45bd44a3e7efc235bbfed120029290f5d674a">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.facebook.stetho-stetho-1.4.2_3810394ac5f6b793cd4f88399a0b2c631dae2694/classes.dex" />
sha1="f3f00bb9cdb0a14b0db183427d227bfd78b29ec2">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.bigkoo-pickerview-2.0.8_9c069f4a3add01eaef91bb14ab7f8cf71afa8d6e/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/jars/libs/internal_impl-23.4.0.jar"
jar="/Users/qeeniao/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.9.0/f824591a0016efbaeddb8300bee54832a1398cfa/okio-1.9.0.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="ea3c07504d2c8f4b13aa17c45c1b68ed9c1c3674">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/internal_impl-23.4.0_d35083b0c6792e694d9f6313b25302d86fd9880f/classes.dex" />
sha1="f824591a0016efbaeddb8300bee54832a1398cfa">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/okio-1.9.0_95d2c302b53ebd227602928c2ec9f508ba71a7bc/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/jars/classes.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/io.realm/realm-android-library/2.1.1/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="67bd36ee9340ec7c254108936ad16b24bed160cc">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-support-v4-23.4.0_2f093df4013c30a67c387e0006c18264fafe5a53/classes.dex" />
sha1="a8b6e31343b6de9a37f6d81d7fdda29b3b4a90de">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/io.realm-realm-android-library-2.1.1_a63ac5dfe3ccb9393420259ae1c1420dd1a8ae2b/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/2.0.1/516c03b21d50a644d538de0f0369c620989cd8f0/jsr305-2.0.1.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/incremental-runtime-classes/debug/instant-run.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="516c03b21d50a644d538de0f0369c620989cd8f0">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/jsr305-2.0.1_4c3e6ef8b623c183d506af69924c8d549bd79520/classes.dex" />
sha1="e4da09f9e5873aa711add140050ef528a1920565">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/instant-run_910fc0a23d415f1f846d8fbb75ee9db726e78f9c/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.bigkoo/pickerview/2.0.8/jars/classes.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.facebook.stetho/stetho-okhttp3/1.4.2/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="f3f00bb9cdb0a14b0db183427d227bfd78b29ec2">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.bigkoo-pickerview-2.0.8_9c069f4a3add01eaef91bb14ab7f8cf71afa8d6e/classes.dex" />
sha1="79c3d4a8ca3c04c5fd5a4a72d43a29fe6d3667b4">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.facebook.stetho-stetho-okhttp3-1.4.2_c56a186b21369eb2d005ca0642039fcf37d4a916/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/incremental-runtime-classes/debug/instant-run.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.4.0/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="22a9d8330ddc6f105736da573f8b575d2367db89">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/instant-run_910fc0a23d415f1f846d8fbb75ee9db726e78f9c/classes.dex" />
sha1="c2c594cace5d83a3227b2b6e658ecbfd586d3ed9">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.android.support-support-vector-drawable-23.4.0_718d6e54a10facc2c953a74d88ba4ca1ca79025d/classes.dex" />
</item>
<item
is-multidex="true"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.facebook.stetho/stetho-okhttp3/1.4.2/jars/classes.jar"
jar="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/exploded-aar/com.getkeepsafe.relinker/relinker/1.2.2/jars/classes.jar"
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="79c3d4a8ca3c04c5fd5a4a72d43a29fe6d3667b4">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.facebook.stetho-stetho-okhttp3-1.4.2_c56a186b21369eb2d005ca0642039fcf37d4a916/classes.dex" />
sha1="b64dd5f01bc37de289f90fd59299b0c76d119611">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/com.getkeepsafe.relinker-relinker-1.2.2_97cf32e296f9d35365be8640079bf9cad55de1d1/classes.dex" />
</item>
<item
is-multidex="true"
Expand All @@ -187,7 +169,7 @@
jumboMode="true"
optimize="true"
revision="23.0.3"
sha1="b8ad454f50c85489f65a59b6248ce5a7c1ac84ab">
sha1="67f9c163c6fc47bd2b82b0846932ddc1370a4b59">
<dex dex="/Users/qeeniao/code/Android-AlarmManagerClock/app/build/intermediates/transforms/dex/debug/folders/1000/10/instant-run-bootstrap_e72853483d3c1900431c0155eb21807e7076cd74/classes.dex" />
</item>

Expand Down

0 comments on commit bfbb85a

Please sign in to comment.