Skip to content
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

[Security] Huawei, Jcenter, Jitpack repos clean up to reduce supply-chain attack surface #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://developer.huawei.com/repo/' }
maven {
url 'https://developer.huawei.com/repo/'
content { includeGroupByRegex "com.huawei.*" }
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
Expand All @@ -30,12 +31,15 @@ plugins {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'https://jitpack.io'
content { includeGroupByRegex "com.github.AbedElazizShe:*" }
}
maven {
url 'https://developer.huawei.com/repo/'
content { includeGroupByRegex "com.huawei.*" }
}
maven { url 'https://developer.huawei.com/repo/' }
}
}

Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ ext {
//ui
lottie : 'com.airbnb.android:lottie:6.2.0',
lottie_compose : 'com.airbnb.android:lottie-compose:6.1.0',
flexbox : 'com.google.android:flexbox:2.0.1',
flexbox : 'com.google.android.flexbox:flexbox:3.0.0',
shortcut_badger : "me.leolin:ShortcutBadger:1.1.22@aar",
better_link_movement_method : 'me.saket:better-link-movement-method:2.2.0',
browser : "androidx.browser:browser:1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion opensource/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ apply plugin: 'androidx.navigation.safeargs.kotlin'
apply plugin: 'dagger.hilt.android.plugin'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.huawei.agconnect'

apply from: '../dependencies.gradle'

Expand Down Expand Up @@ -66,6 +65,7 @@ android {

huawei {
dimension "vendor"
apply plugin: 'com.huawei.agconnect'
}
}

Expand Down