mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge branch 'application-mgt-new' into 'master'
Fix android web app deploying issue See merge request entgra/carbon-device-mgt-plugins!120
This commit is contained in:
commit
c6faca1dcf
@ -282,8 +282,11 @@ public class AndroidEnterpriseUtils {
|
|||||||
if (productListResponse != null && productListResponse.getProduct() != null
|
if (productListResponse != null && productListResponse.getProduct() != null
|
||||||
&& !productListResponse.getProduct().isEmpty()) {
|
&& !productListResponse.getProduct().isEmpty()) {
|
||||||
|
|
||||||
List<String> packageNamesOfApps = productListResponse.getProduct().stream()
|
List<String> packageNamesOfApps = new ArrayList<>();
|
||||||
.map(product -> (product.getProductId().replaceFirst("app:", ""))).collect(Collectors.toList());
|
for (Product product1 : productListResponse.getProduct()) {
|
||||||
|
String s = (product1.getProductId().replaceFirst("app:", ""));
|
||||||
|
packageNamesOfApps.add(s);
|
||||||
|
}
|
||||||
|
|
||||||
List<Application> existingApps = applicationManager.getApplications(packageNamesOfApps);
|
List<Application> existingApps = applicationManager.getApplications(packageNamesOfApps);
|
||||||
List<Product> products = productListResponse.getProduct();
|
List<Product> products = productListResponse.getProduct();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user