Skip to content

Commit

Permalink
Update to Gradle 6.5.1 and AGP 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalmeida authored and mergify[bot] committed May 26, 2021
1 parent 15bb37c commit 5f86cbf
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 24 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.android.build.OutputFile

android {
compileSdkVersion 29
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "org.mozilla"
minSdkVersion 21
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@
android:autoRemoveFromRecents="false"
android:label="@string/app_name" />

<activity android:name=".activity.InfoActivity"
android:theme="@style/InfoTheme"/>

<activity android:name=".activity.TextActionActivity"
android:label="@string/text_selection_search_action"
android:exported="true">
Expand All @@ -99,13 +96,6 @@
</intent-filter>
</activity>

<!-- SettingsActivity title is set dynamically for multilocale support -->
<activity android:name=".activity.SettingsActivity"
android:parentActivityName=".activity.MainActivity"
android:theme="@style/SettingsTheme"
android:configChanges="locale"
android:windowSoftInputMode="adjustPan"/>

<activity android:name=".activity.InstallFirefoxActivity"
android:theme="@style/Theme.AppCompat.NoActionBar" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import android.webkit.URLUtil
import android.widget.FrameLayout
import android.widget.TextView
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.lifecycle.ViewModelProvider
import androidx.preference.PreferenceManager
import kotlinx.android.synthetic.main.fragment_urlinput.*
import kotlinx.android.synthetic.main.fragment_urlinput.view.*
Expand Down Expand Up @@ -170,7 +170,7 @@ class UrlInputFragment :
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

searchSuggestionsViewModel = ViewModelProviders.of(this).get(SearchSuggestionsViewModel::class.java)
searchSuggestionsViewModel = ViewModelProvider(this).get(SearchSuggestionsViewModel::class.java)

PreferenceManager.getDefaultSharedPreferences(context)
.registerOnSharedPreferenceChangeListener(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package org.mozilla.focus.searchsuggestions.ui

import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import android.graphics.Color
import android.os.Bundle
import androidx.fragment.app.Fragment
Expand All @@ -24,6 +23,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.lifecycle.ViewModelProvider
import kotlinx.android.synthetic.main.fragment_search_suggestions.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
Expand Down Expand Up @@ -51,8 +51,7 @@ class SearchSuggestionsFragment : Fragment(), CoroutineScope {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

searchSuggestionsViewModel = ViewModelProviders
.of(requireParentFragment())
searchSuggestionsViewModel = ViewModelProvider(this)
.get(SearchSuggestionsViewModel::class.java)
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout-sw600dp/toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down Expand Up @@ -160,7 +161,7 @@
android:layout_width="12dp"
android:layout_height="13.33dp"
android:layout_gravity="center"
android:tint="#FFFFFF" />
app:tint="#FFFFFF" />
</FrameLayout>

</FrameLayout>
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/focus_preference.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
~ limitations under the License
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
Expand All @@ -36,9 +37,9 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginEnd="16dp"
android:tint="@color/colorSettingsTint"
android:alpha="0.8"
android:importantForAccessibility="no"/>
android:importantForAccessibility="no"
app:tint="@color/colorSettingsTint" />
</LinearLayout>

<RelativeLayout
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/layout/fragment_browser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:mozac="http://schemas.android.com/apk/res-auto">
xmlns:mozac="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">

<LinearLayout
android:id="@+id/browser_container"
Expand All @@ -30,6 +31,7 @@
android:clipChildren="false">

<mozilla.components.concept.engine.EngineView
tools:ignore="Instantiatable"
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/toolbar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down Expand Up @@ -95,7 +96,7 @@
android:layout_width="12dp"
android:layout_height="13.33dp"
android:layout_gravity="center"
android:tint="#FFFFFF" />
app:tint="#FFFFFF" />
</FrameLayout>

</FrameLayout>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# The setting is particularly useful for tweaking memory settings.
android.useAndroidX=true
org.gradle.jvmargs=-Xms1g -Xmx4g
android.enableR8=true

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip

0 comments on commit 5f86cbf

Please sign in to comment.