diff --git a/app/build.gradle b/app/build.gradle index f88b0bc..2d7316f 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,11 +1,11 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 26 + compileSdkVersion 28 defaultConfig { applicationId "com.udacity.googleindiascholarships" minSdkVersion 19 - targetSdkVersion 26 + targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" @@ -20,16 +20,16 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.android.support:appcompat-v7:26.1.0' - implementation 'com.android.support:design:26.1.0' - implementation 'com.android.support.constraint:constraint-layout:1.1.0' - implementation 'com.android.support:cardview-v7:26.1.0' - implementation 'com.google.android.gms:play-services-auth:11.8.0' - implementation 'com.google.firebase:firebase-auth:11.8.0' - implementation 'com.google.firebase:firebase-core:11.8.0' - implementation 'com.google.android.gms:play-services-auth:11.8.0' - implementation 'com.google.firebase:firebase-auth:11.8.0' - implementation 'com.android.support:preference-v7:26.1.0' + implementation 'com.android.support:appcompat-v7:28.0.0' + implementation 'com.android.support:design:28.0.0' + implementation 'com.android.support.constraint:constraint-layout:1.1.3' + implementation 'com.android.support:cardview-v7:28.0.0' + implementation 'com.google.android.gms:play-services-auth:16.0.0' + implementation 'com.google.firebase:firebase-auth:16.0.3' + implementation 'com.google.firebase:firebase-core:16.0.3' + implementation 'com.google.android.gms:play-services-auth:16.0.0' + implementation 'com.google.firebase:firebase-auth:16.0.3' + implementation 'com.android.support:preference-v7:28.0.0' implementation 'com.firebaseui:firebase-ui-database:3.2.2' @@ -37,17 +37,17 @@ dependencies { implementation 'com.firebase:firebase-client-android:2.5.2' implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' - implementation 'com.squareup.picasso:picasso:2.5.2' - implementation 'com.squareup.picasso:picasso:2.5.2' - implementation 'com.android.support.constraint:constraint-layout:1.1.0' - implementation 'com.android.support:support-v4:26.1.0' - implementation 'com.google.firebase:firebase-database:11.8.0' + implementation 'com.squareup.picasso:picasso:2.71828' + implementation 'com.squareup.picasso:picasso:2.71828' + implementation 'com.android.support.constraint:constraint-layout:1.1.3' + implementation 'com.android.support:support-v4:28.0.0' + implementation 'com.google.firebase:firebase-database:16.0.2' implementation 'org.jsoup:jsoup:1.8.3' // required implementation 'com.leocardz:link-preview:2.0.0@aar' implementation 'de.hdodenhof:circleimageview:2.2.0' - implementation 'com.google.firebase:firebase-storage:11.8.0' + implementation 'com.google.firebase:firebase-storage:16.0.2' testImplementation 'junit:junit:4.12' - androidTestImplementation 'com.android.support.test:runner:1.0.1' - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } apply plugin: 'com.google.gms.google-services' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b39fe94..d378b96 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -29,7 +29,7 @@ + android:theme="@style/AppTheme.NoActionBar" /> 0) - Picasso.with(context).load(sourceContent.getImages().get(random.nextInt(size))).into(previewImage); + Picasso.get().load(sourceContent.getImages().get(random.nextInt(size))).into(previewImage); previewThumbnail.setVisibility(View.VISIBLE); previewImage.setVisibility(View.VISIBLE); openBtn.setVisibility(View.VISIBLE); diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 5fb1ce2..5bb995d 100755 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -7,6 +7,7 @@ @color/colorPrimaryDark @color/colorAccent @style/PreferenceThemeOverlay + @color/colorPrimary