forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple proguard flags from java_apk.gypi. Proguard supports…
… multiple proguard configuration files but java_apk and apk-build.xml supports only one proguard configuration. BUG=181470 Review URL: https://chromiumcodereview.appspot.com/12913017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191806 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
jayjang@chromium.org
committed
Apr 2, 2013
1 parent
d4edb10
commit 36e7781
Showing
8 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
build/android/tests/multiple_proguards/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
- Copyright 2013 Google Inc. | ||
- | ||
- Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
- use this file except in compliance with the License. You may obtain a copy | ||
- of the License at | ||
- | ||
- http://www.apache.org/licenses/LICENSE-2.0 | ||
- | ||
- Unless required by applicable law or agreed to in writing, software | ||
- distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
- WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
- License for the specific language governing permissions and limitations | ||
- under the License. | ||
--> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="dummy" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<application android:label="dummy"> | ||
<activity android:name="dummy.DummyActivity" | ||
android:label="dummy"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
</manifest> |
33 changes: 33 additions & 0 deletions
33
build/android/tests/multiple_proguards/multiple_proguards.gyp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright (c) 2013 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. | ||
{ | ||
'variables': { | ||
'chromium_code': 1, | ||
'package_name': 'multiple_proguard', | ||
}, | ||
'targets': [ | ||
{ | ||
'target_name': 'multiple_proguards_test_apk', | ||
'type': 'none', | ||
'variables': { | ||
'app_manifest_version_name%': '<(android_app_version_name)', | ||
'java_in_dir': '.', | ||
'proguard_enabled': 'true', | ||
'proguard_flags_paths': [ | ||
'proguard1.flags', | ||
'proguard2.flags', | ||
], | ||
'R_package': 'dummy', | ||
'R_package_relpath': 'dummy', | ||
'apk_name': 'MultipleProguards', | ||
}, | ||
'dependencies': [ | ||
# guava has references to objects using reflection which | ||
# should be ignored in proguard step. | ||
'../../../../third_party/guava/guava.gyp:guava_javalib', | ||
], | ||
'includes': [ '../../../../build/java_apk.gypi' ], | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# src/third_party/guava/guava.gyp:guava_javalib | ||
-dontwarn sun.misc.Unsafe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Striped64 uses reflection to access some local fields. | ||
-dontnote com.google.common.cache.Striped64 | ||
-dontnote com.google.common.cache.Striped64$Cell |
14 changes: 14 additions & 0 deletions
14
build/android/tests/multiple_proguards/src/dummy/DummyActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) 2013 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. | ||
|
||
package dummy; | ||
|
||
import android.app.Activity; | ||
import android.os.Bundle; | ||
|
||
/** | ||
* Dummy activity to build apk. | ||
*/ | ||
public class DummyActivity extends Activity { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters