Status Update
Comments
ja...@google.com <ja...@google.com>
ja...@google.com <ja...@google.com> #2
R8 currently regards <package_filter> in that directive as <class_filter>. That's why single asterisk---a class name not containing the package separator---doesn't work for now, whereas double asterisks---matches a class name, possibly containing any number of package separators---works. The caveat is, use of, e.g., extra**, will keep all the sub packages as well. :( We'll prepare the fix soon.
an...@gmail.com <an...@gmail.com> #3
Branch: master
commit a9a9e7d1231726094c6e16c2cef1bad887da3bba
Author: Jinseong Jeon <jsjeon@google.com>
Date: Tue Apr 09 11:49:28 2019
Reproduce
Bug: 130135768
Change-Id: I5ab1cdb5148a570a63bdd488358759bb33da700a
M src/test/java/com/android/tools/r8/TestShrinkerBuilder.java
A src/test/java/com/android/tools/r8/naming/KeepPackageNamesTest.java
A src/test/java/com/android/tools/r8/naming/keeppackagenames/Top.java
A src/test/java/com/android/tools/r8/naming/keeppackagenames/sub/SubClass.java
ja...@google.com <ja...@google.com> #4
Branch: master
commit 391e2992aee375adf46edbb5e7b098556c8604ed
Author: Søren Gjesse <sgjesse@google.com>
Date: Fri Apr 12 11:05:43 2019
New implementation of -keeppackagenames
This implementation collects the list of package names given for
-keeppackagenames and matches against that in the minifier.
The previous implementation created class matching rules to piggybag
on the existing matching.
Bug: 130135768
Change-Id: I5a341e145747a5dec8788a066a0c67d4e259ec77
M src/main/java/com/android/tools/r8/graph/DexType.java
M src/main/java/com/android/tools/r8/naming/ClassNameMinifier.java
M src/main/java/com/android/tools/r8/shaking/ProguardConfiguration.java
M src/main/java/com/android/tools/r8/shaking/ProguardConfigurationParser.java
D src/main/java/com/android/tools/r8/shaking/ProguardKeepPackageNamesRule.java
A src/main/java/com/android/tools/r8/shaking/ProguardPackageMatcher.java
A src/main/java/com/android/tools/r8/shaking/ProguardPackageNameList.java
M src/main/java/com/android/tools/r8/shaking/RootSetBuilder.java
M src/test/java/com/android/tools/r8/naming/KeepPackageNamesTest.java
M src/test/java/com/android/tools/r8/shaking/ProguardConfigurationParserTest.java
A src/test/java/com/android/tools/r8/shaking/ProguardPackageNameMatcherTest.java
an...@gmail.com <an...@gmail.com> #5
Branch: d8-1.4
commit b6ca9ee953e43aa029411bb4db030e4694180063
Author: Christoffer Quist Adamsen <christofferqa@google.com>
Date: Fri Apr 12 12:51:40 2019
Version 1.4.86
Cherry pick: New implementation of -keeppackagenames
CL:
Cherry pick: Reproduce
CL:
Bug: 130135768
Change-Id: I8a340afe4811ec3f8826956c99b94346f4c2c8b4
M src/main/java/com/android/tools/r8/Version.java
M src/main/java/com/android/tools/r8/graph/DexType.java
M src/main/java/com/android/tools/r8/naming/ClassNameMinifier.java
M src/main/java/com/android/tools/r8/shaking/ProguardConfiguration.java
M src/main/java/com/android/tools/r8/shaking/ProguardConfigurationParser.java
D src/main/java/com/android/tools/r8/shaking/ProguardKeepPackageNamesRule.java
A src/main/java/com/android/tools/r8/shaking/ProguardPackageMatcher.java
A src/main/java/com/android/tools/r8/shaking/ProguardPackageNameList.java
M src/main/java/com/android/tools/r8/shaking/RootSetBuilder.java
M src/test/java/com/android/tools/r8/TestShrinkerBuilder.java
A src/test/java/com/android/tools/r8/naming/KeepPackageNamesTest.java
A src/test/java/com/android/tools/r8/naming/keeppackagenames/Top.java
A src/test/java/com/android/tools/r8/naming/keeppackagenames/sub/SubClass.java
M src/test/java/com/android/tools/r8/shaking/ProguardConfigurationParserTest.java
A src/test/java/com/android/tools/r8/shaking/ProguardPackageNameMatcherTest.java
ja...@google.com <ja...@google.com> #6
Hello!
Could you specify the business reason (impact on revenue, costs, or employee productivity), and if using "Space used" in Apps >G Suite > Settings for Drive and Docs > Manage shared drives
from the Admin Consolewould fit your needs?
Thanks
an...@gmail.com <an...@gmail.com> #7
Could you specify the business reason (impact on revenue, costs, or employee productivity)
This would greatly simplify the existing code and also reduce the required API calls by a lot to get the required info. The current implementation requires us to do multiple list queries to fetch all the objects and also takes a lot of time to finish on larger drives.
As a result of the significant simplification of the drive limit calculation, this will make many applications more efficient, thus reducing costs.
if using "Space used" in Apps >G Suite > Settings for Drive and Docs > Manage shared drives from the Admin Console
This requires admin access which is not feasible to give to everyone in the domain just to know the shared drive file & folder counts.
ja...@google.com <ja...@google.com> #8
Thanks for the information!
ch...@zenbusiness.com <ch...@zenbusiness.com> #9
Not only is there no indication of item count but there is no way to alert if you are getting near the 400K threshold.
Administrators absolutely need to have this feature.
- API hooks to read item count
- Item Counts displayed throughout the directory tree
Additionally - it would be nice to have alerting and even auto archiving capacity
Description
First, please search through existing issues to ensure that the feature request has not already been reported. You can start the search here:
If the feature has already been requested, you can click the star next to the issue number to subscribe and receive updates. We prioritize responding to the issues with the most stars. You can also comment on the issue to provide any context of how the feature would benefit you.
Also, please verify that the functionality you are requesting is not already present in the current API and tools.
If your feature has not been requested, please provide all of the following:
-----------------------------------------------------------------------------------------------------------------------------
A short description of the request:
Add recursiveFileCount & recursiveFolderCount fields to the public Drive API.
What is the purpose of this new feature?
Add recursiveFileCount & recursiveFolderCount fields to the public Drive API
What existing APIs would this affect?
Drives Get API, specifically the Drives resource that is returned.
What existing data does this use?
recursiveFileCount & recursiveFolderCount fields
Please provide any additional information below.
These fields are already present in the internal API used by the browser and will be very useful in determining when a shared drive is close to its 400k file+folder limit without needing to count all the items manually.