-
Notifications
You must be signed in to change notification settings - Fork 0
Content provider #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aleien
wants to merge
17
commits into
master
Choose a base branch
from
content-provider
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2b5cf47
About, mail and headset reaction
8a66aa3
Injected dagger
80c8a60
Trying to implement cache using SQLite. Just started
7c60086
Securing signing information
ba929a1
RxJava injected, basic data caching
d8a9160
Запись и извлечение кэшированных данных из базы
b59329c
Запись / извлечение из базы асинхронно
3720011
Merge fixes
aleien f98a811
Продолжаем работу с базой + начало тестов
3f5c7c4
Review cleanup
df9eaa2
Merge remote-tracking branch 'origin/homework' into homework
1cca5df
Merge fixes
47f1b40
Tests
049aefe
Very VERY basic content provider implementation
dae2782
More content provider implementation + read permission
20730d3
Minor improvements
7851473
Merge remote-tracking branch 'origin/content-provider' into content-p…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| /build | ||
| .idea/* |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,33 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="ru.aleien.yapplication"> | ||
| package="ru.aleien.yapplication"> | ||
|
|
||
| <uses-permission android:name="android.permission.INTERNET" /> | ||
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
| <uses-permission android:name="android.permission.INTERNET"/> | ||
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
|
|
||
| <application | ||
| android:name=".App" | ||
| android:allowBackup="true" | ||
| android:icon="@mipmap/ic_launcher" | ||
| android:label="@string/app_name" | ||
| android:supportsRtl="true" | ||
|
|
||
| android:theme="@style/AppTheme"> | ||
| <activity android:name=".ListArtistsActivity"> | ||
| <activity android:name=".MainActivity"> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.MAIN" /> | ||
| <action android:name="android.intent.action.MAIN"/> | ||
|
|
||
| <category android:name="android.intent.category.LAUNCHER" /> | ||
| <category android:name="android.intent.category.LAUNCHER"/> | ||
| </intent-filter> | ||
| </activity> | ||
|
|
||
| <provider | ||
| android:name=".contentprovider.ArtistsContentProvider" | ||
| android:exported="true" | ||
| android:readPermission="u.aleien.yapplication.contentprovider" | ||
| android:authorities="ru.aleien.yapplication.provider"/> | ||
|
|
||
| </application> | ||
|
|
||
| </manifest> | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| package ru.aleien.yapplication; | ||
|
|
||
| import android.app.Application; | ||
|
|
||
| import com.facebook.stetho.Stetho; | ||
|
|
||
| import ru.aleien.yapplication.di.AppComponent; | ||
| import ru.aleien.yapplication.di.AppModule; | ||
| import ru.aleien.yapplication.di.DaggerAppComponent; | ||
| import timber.log.Timber; | ||
|
|
||
| public class App extends Application { | ||
| private AppComponent component; | ||
|
|
||
|
|
||
| @Override | ||
| public void onCreate() { | ||
| super.onCreate(); | ||
| if (BuildConfig.DEBUG) Timber.plant(new Timber.DebugTree()); | ||
| Stetho.initializeWithDefaults(this.getApplicationContext()); | ||
| component = DaggerAppComponent.builder() | ||
| .appModule(new AppModule(this)) | ||
| .build(); | ||
|
|
||
| } | ||
|
|
||
| public AppComponent dagger() { | ||
| return component; | ||
| } | ||
| } |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А зачем здесь активити?