This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.smartdengg.smartgallery.activity; | |
| import android.content.Intent; | |
| import android.database.Cursor; | |
| import android.os.Bundle; | |
| import android.provider.MediaStore; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.support.v7.widget.RecyclerView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.media.AudioManager; | |
| import android.media.MediaPlayer; | |
| import android.util.Pair; | |
| import org.jetbrains.annotations.NotNull; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.concurrent.TimeUnit; | |
| import rx.Observable; | |
| import rx.subscriptions.Subscriptions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.media.MediaRecorder; | |
| import android.support.annotation.NonNull; | |
| import com.f2prateek.rx.android.schedulers.AndroidSchedulers; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.concurrent.TimeUnit; | |
| import rx.Observable; | |
| import rx.subscriptions.Subscriptions; | |
| public class RxMediaRecorder { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.smartdengg.model.repository.interceptor; | |
| import android.support.annotation.NonNull; | |
| import android.util.Log; | |
| import com.smartdengg.common.Constants; | |
| import java.io.IOException; | |
| import java.nio.charset.Charset; | |
| import java.util.concurrent.TimeUnit; | |
| import okhttp3.Connection; | |
| import okhttp3.Headers; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import android.content.Context; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import java.util.List; | |
| #parse("File Header.java") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #build.gradle | |
| # | |
| # compile 'io.reactivex:rxandroid:1.0.1' | |
| # compile 'io.reactivex:rxjava:1.0.14' | |
| # compile 'io.reactivex:rxjava-math:1.0.0' | |
| # compile 'com.jakewharton.rxbinding:rxbinding:0.2.0' | |
| # rxjava | |
| -keep class rx.schedulers.Schedulers { | |
| public static <methods>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import okhttp3.ResponseBody; | |
| import okhttp3.mockwebserver.MockResponse; | |
| import okhttp3.mockwebserver.MockWebServer; | |
| import okhttp3.mockwebserver.RecordedRequest; | |
| import org.junit.Rule; | |
| import org.junit.Test; | |
| import retrofit2.Call; | |
| import retrofit2.Response; | |
| import retrofit2.Retrofit; | |
| import retrofit2.http.GET; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.smartdengg.rxgallery.example.activity; | |
| import android.os.Bundle; | |
| import android.os.SystemClock; | |
| import android.support.annotation.NonNull; | |
| import android.support.v7.app.AppCompatActivity; | |
| import butterknife.ButterKnife; | |
| import butterknife.OnClick; | |
| import com.smartdengg.rxgallery.example.R; | |
| import java.util.Random; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Application | |
| apply plugin: 'android' | |
| repositories { | |
| mavenCentral() | |
| } | |
| android { | |
| compileSdkVersion rootProject.ext.compileSdkVersion | |
| buildToolsVersion rootProject.ext.buildToolsVersion |