Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit d91b969

Browse files
committed
Chromium: Clean code and fix build error
Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
1 parent 89d4da6 commit d91b969

File tree

1,603 files changed

+80
-673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,603 files changed

+80
-673
lines changed

.gitignore

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Built application files
22
*.apk
33
*.ap_
4+
*.aab
45

56
# Files for the ART/Dalvik VM
67
*.dex
7-
!assets/*.dex
88

99
# Java class files
1010
*.class
@@ -16,7 +16,7 @@ out/
1616

1717
# Gradle files
1818
.gradle/
19-
/build
19+
build/
2020

2121
# Local configuration file (sdk path, etc)
2222
local.properties
@@ -33,26 +33,50 @@ proguard/
3333
# Android Studio captures folder
3434
captures/
3535

36-
# Intellij
36+
# IntelliJ
3737
*.iml
3838
.idea/workspace.xml
3939
.idea/tasks.xml
4040
.idea/gradle.xml
41+
.idea/assetWizardSettings.xml
4142
.idea/dictionaries
4243
.idea/libraries
44+
.idea/caches
45+
# Android Studio 3 in .gitignore file.
46+
.idea/caches/build_file_checksums.ser
47+
.idea/modules.xml
4348

4449
# Keystore files
45-
*.jks
50+
# Uncomment the following lines if you do not want to check your keystore files in.
51+
#*.jks
52+
#*.keystore
4653

4754
# External native build folder generated in Android Studio 2.2 and later
4855
.externalNativeBuild
4956

5057
# Google Services (e.g. APIs or Firebase)
51-
google-services.json
58+
# google-services.json
5259

5360
# Freeline
5461
freeline.py
5562
freeline/
5663
freeline_project_description.json
5764

65+
# fastlane
66+
fastlane/report.xml
67+
fastlane/Preview.html
68+
fastlane/screenshots
69+
fastlane/test_output
70+
fastlane/readme.md
71+
72+
# Version control
73+
vcs.xml
74+
75+
# lint
76+
lint/intermediates/
77+
lint/generated/
78+
lint/outputs/
79+
lint/tmp/
80+
# lint/reports/
81+
5882
.DS_Store
-1.15 KB
Binary file not shown.

.idea/caches/gradle_models.ser

-590 KB
Binary file not shown.

.idea/modules.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/build.gradle

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'idea'
3+
apply from: "$rootDir/gradle/android-lint.gradle"
34

45
android {
56
compileSdkVersion rootProject.ext.compileSdkVersion
@@ -37,12 +38,9 @@ android {
3738
}
3839
sourceSets {
3940
main {
40-
java.filter.exclude()
41-
4241
res {
43-
srcDirs = [
44-
"src/main/res",
45-
"${rootProject.projectDir}/res_base",
42+
srcDirs += [
43+
"$rootDir/base_res",
4644
]
4745
excludes = [
4846
"**/download_*.xml",
@@ -96,7 +94,6 @@ dependencies {
9694
implementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
9795
implementation 'com.google.dagger:dagger:2.19'
9896
implementation 'javax.annotation:javax.annotation-api:1.3.2'
99-
implementation project(':autofill_assistant')
10097
implementation project(':components:autofill')
10198
implementation project(':components:embedder_support')
10299
implementation project(':content')
@@ -107,6 +104,7 @@ dependencies {
107104
implementation project(':customtabs')
108105
implementation project(':splash')
109106
implementation project(':feed')
107+
implementation project(':autofill_assistant')
110108
androidTestImplementation "com.android.support.test:runner:$rootProject.ext.runnerVersion"
111109
androidTestImplementation "com.android.support.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
112110
testImplementation "junit:junit:$rootProject.ext.junitVersion"

app/src/main/java/org/chromium/chrome/browser/autofill_assistant/details/AssistantDetailsViewBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
*/
4848
class AssistantDetailsViewBinder
4949
implements PropertyModelChangeProcessor.ViewBinder<AssistantDetailsModel,
50-
AssistantDetailsViewBinder.ViewHolder, PropertyKey> {
50+
AssistantDetailsViewBinder.ViewHolder, PropertyKey> {
5151
private static final int IMAGE_BORDER_RADIUS = 4;
5252
private static final int PULSING_DURATION_MS = 1_000;
5353
private static final String DETAILS_TIME_FORMAT = "H:mma";

autofill_assistant/build.gradle

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,48 @@
11
apply plugin: 'com.android.library'
2+
apply from: "$rootDir/gradle/android-lint.gradle"
23

34
android {
45
compileSdkVersion rootProject.ext.compileSdkVersion
56
buildToolsVersion rootProject.ext.buildToolsVersion
6-
77
defaultConfig {
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
1010
versionCode rootProject.ext.versionCode
1111
versionName rootProject.ext.versionName
12-
13-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1412
vectorDrawables {
1513
useSupportLibrary true
1614
}
1715
}
18-
1916
buildTypes {
2017
release {
2118
minifyEnabled false
2219
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2320
}
2421
}
25-
2622
sourceSets {
2723
main {
2824
res {
29-
srcDirs = [
30-
"src/main/res",
31-
"${rootProject.projectDir}/res_base",
32-
]
33-
excludes = [
25+
srcDirs += [
26+
"$rootDir/base_res",
3427
]
3528
}
3629
}
3730
}
31+
}
3832

39-
lintOptions {
40-
abortOnError false
41-
ignoreWarnings true
42-
disable 'MissingTranslation'
43-
}
33+
afterEvaluate {
34+
project ->
35+
project.tasks.verifyReleaseResources {
36+
onlyIf {
37+
println 'Skipping...'
38+
return false
39+
}
40+
}
4441
}
4542

4643
dependencies {
4744
implementation fileTree(dir: 'libs', include: ['*.jar'])
45+
implementation "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion"
4846
implementation project(':components:components_base')
4947
implementation project(':ui')
50-
androidTestImplementation "com.android.support.test:runner:$rootProject.ext.runnerVersion"
51-
androidTestImplementation "com.android.support.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
52-
testImplementation "junit:junit:$rootProject.ext.junitVersion"
5348
}

autofill_assistant/src/androidTest/java/org/chromium/chrome/autofill_assistant/ExampleInstrumentedTest.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

autofill_assistant/src/test/java/org/chromium/chrome/autofill_assistant/ExampleUnitTest.java

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)