Skip to content

Commit

Permalink
Android: Add proguard flag to prevent obfuscation of BackgroundTask c…
Browse files Browse the repository at this point in the history
…lasses

These classes need to be the same across releases.

Bug: 913116
Change-Id: I57dc8928f24944f0234863f5fcfc248886c6a7cc
Reviewed-on: https://chromium-review.googlesource.com/c/1371244
Reviewed-by: Filip Gorski <fgorski@chromium.org>
Commit-Queue: agrieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615519}
  • Loading branch information
agrieve authored and Commit Bot committed Dec 11, 2018
1 parent 42998e1 commit 5573d1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/background_task_scheduler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ if (is_android) {
"android/java/src/org/chromium/components/background_task_scheduler/TaskParameters.java",
]

proguard_configs = [ "android/proguard.flags" ]

deps = [
":background_task_scheduler_task_ids_java",
"$google_play_services_package:google_play_services_base_java",
Expand Down
8 changes: 8 additions & 0 deletions components/background_task_scheduler/android/proguard.flags
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Classes are created via reflection, so may not be renamed.
-keepnames class * implements org.chromium.components.background_task_scheduler.BackgroundTask {
public <init>();
}

0 comments on commit 5573d1f

Please sign in to comment.