Refine search
public static Collection< Artifact > filterArtifacts( @NonNull Iterable< Artifact > artifacts, final boolean skipDependencies, @Nullable final Collection< String > includeArtifactTypes, @Nullable final Collection< String > excludeArtifactTypes, @Nullable final Collection< String > includeArtifactQualifiers, @Nullable final Collection< String > excludeArtifactQualifiers )
private void publishApk( @NonNull String packageName ) throws MojoExecutionException { try { getLog().info( "Starting upload of apk " + apkFile.getAbsolutePath() ); FileContent newApkFile = new FileContent( AndroidPublisherHelper.MIME_TYPE_APK, apkFile ); Apk apk = edits.apks().upload( packageName, editId, newApkFile ).execute(); List<Integer> versionCodes = new ArrayList<Integer>(); versionCodes.add( apk.getVersionCode() ); Track newTrack = new Track().setVersionCodes( versionCodes ); edits.tracks().update( packageName, editId, track, newTrack ).execute(); publishWhatsNew( packageName, edits, editId, apk ); edits.commit( packageName, editId ).execute(); } catch ( Exception e ) { throw new MojoExecutionException( e.getMessage(), e ); } }
@NonNull private static List<AnnotationEntryAndValue> splitToEntries(@Nullable List values) { if (values == null) return Collections.emptyList(); List<AnnotationEntryAndValue> result = new ArrayList<AnnotationEntryAndValue>(); for (int i = 0; i < values.size(); i += 2) { String name = (String) values.get(i); Object value = values.get(i + 1); result.add(new AnnotationEntryAndValue(name, value)); } return result; } }
@Override public void deviceListUpdate(@NonNull Map<String, DeviceState> devices) { List<Device> l = new ArrayList<>(devices.size()); for (Map.Entry<String, DeviceState> entry : devices.entrySet()) { l.add(new Device(entry.getKey(), entry.getValue())); } // now merge the new devices with the old ones. updateDevices(l); } }
private ParameterItem( @NonNull String containingClass, @NonNull ClassKind classKind, @Nullable String returnType, @NonNull String methodName, @NonNull String parameterList, boolean isConstructor, @NonNull String argIndex) { super(containingClass, classKind, returnType, methodName, parameterList, isConstructor); this.argIndex = argIndex; }
/** * Installs an Android Sdk Tool if it's not already installed. * * @param sdkLibData contains all the components for downloading. * @param packageId the package/id path of the required Tool component. * @return a {@code File} representing the locations to the directory where the Tool component * is installed or null if we haven't managed to find such a component. **/ @Nullable File installSdkTool(@NonNull SdkLibData sdkLibData, @NonNull String packageId); }
/** * @deprecated replaced by {@link #transform(TransformInvocation)}. */ @Deprecated @SuppressWarnings("UnusedParameters") public void transform( @NonNull Context context, @NonNull Collection<TransformInput> inputs, @NonNull Collection<TransformInput> referencedInputs, @Nullable TransformOutputProvider outputProvider, boolean isIncremental) throws IOException, TransformException, InterruptedException { }
ProductFlavorData( @NonNull T productFlavor, @NonNull DefaultAndroidSourceSet sourceSet, @Nullable DefaultAndroidSourceSet androidTestSourceSet, @Nullable DefaultAndroidSourceSet unitTestSourceSet, @NonNull Project project) { super(sourceSet, androidTestSourceSet, unitTestSourceSet, project); this.productFlavor = productFlavor; }
FlatDependencyContainer( @NonNull DependencyGraph dependencyGraph, @NonNull List<Dependency> allDependencies, @NonNull List<Dependency> directDependencies, @Nullable AtomDependency baseAtom, @NonNull MutableDependencyDataMap mutableDependencyDataMap) { this.dependencyGraph = dependencyGraph; this.allDependencies = ImmutableList.copyOf(allDependencies); this.directDependencies = ImmutableList.copyOf(directDependencies); this.baseAtom = baseAtom; this.mutableDependencyDataMap = mutableDependencyDataMap; }