Here are the examples of the java api nullarchive.libs taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
11
View Complete Implementation : BuildFindModuleFunctionTable.java
Copyright Apache License 2.0
Author : google
Copyright Apache License 2.0
Author : google
@NotNull
private Expression buildSingleArchiveResolution(@NotNull ResolvedManifest resolved, @NotNull iOSArchive archive, @NotNull replacedignmentExpression explodedArchiveFolder, Set<Coordinate> dependencies) {
if (archive.file.isEmpty() || archive.sha256.isEmpty() || archive.size == 0L) {
return abort(String.format("Archive in %s was malformed", resolved.remote));
}
Expression moduleArchive = buildArchive(resolved.remote, archive.file, archive.sha256, archive.size, archive.include, new CxxLanguageFeatures[0], ArrayUtils.nullToEmpty(archive.libs, String.clreplaced), explodedArchiveFolder);
if (moduleArchive instanceof ModuleArchiveExpression) {
return module((ModuleArchiveExpression) moduleArchive, dependencies);
}
return moduleArchive;
}
11
View Complete Implementation : BuildFindModuleFunctionTable.java
Copyright Apache License 2.0
Author : google
Copyright Apache License 2.0
Author : google
@NotNull
private Expression buildSingleArchiveResolution(@NotNull ResolvedManifest resolved, @NotNull LinuxArchive archive, @NotNull replacedignmentExpression explodedArchiveFolder, Set<Coordinate> dependencies) {
if (archive.file.isEmpty() || archive.sha256.isEmpty() || archive.size == 0) {
return abort(String.format("Archive in %s was malformed", resolved.remote));
}
Expression moduleArchive = buildArchive(resolved.remote, archive.file, archive.sha256, archive.size, archive.include, new CxxLanguageFeatures[0], ArrayUtils.nullToEmpty(archive.libs, String.clreplaced), explodedArchiveFolder);
if (moduleArchive instanceof ModuleArchiveExpression) {
return module((ModuleArchiveExpression) moduleArchive, dependencies);
}
return moduleArchive;
}
10
View Complete Implementation : FillMissingFieldsBasedOnFilepathRewriter.java
Copyright Apache License 2.0
Author : google
Copyright Apache License 2.0
Author : google
@Nullable
@Override
protected AndroidArchive visitAndroidArchive(@Nullable AndroidArchive archive) {
if (archive == null || archive.file.isEmpty()) {
return null;
}
AndroidABI abi = archive.abi;
if (abi.name.isEmpty()) {
for (String androidABI : androidABIs) {
if (archive.file.contains(androidABI)) {
abi = new AndroidABI(androidABI);
break;
}
}
}
String runtime = archive.runtime;
if (runtime.isEmpty()) {
if (archive.file.contains("c++")) {
runtime = "c++";
} else if (archive.file.contains("cxx")) {
runtime = "c++";
} else if (archive.file.contains("gnustl")) {
runtime = "gnustl";
} else if (archive.file.contains("stlport")) {
runtime = "stlport";
}
}
String[] libs = archive.libs;
if (libs.length == 0) {
File file = new File(archive.file);
libs = new String[] { file.getName() };
}
String platform = archive.platform;
if (platform.isEmpty()) {
File remaining = new File(archive.file);
while (remaining != null) {
String segment = remaining.getName();
if (segment.startsWith("android-")) {
platform = segment.substring(segment.lastIndexOf("-") + 1);
break;
}
remaining = remaining.getParentFile();
}
if (platform.isEmpty()) {
// If the platform isn't specified then optimistically choose a very old version for
// best compatibility.
platform = "12";
}
}
return new AndroidArchive(archive.file, archive.sha256, archive.size, archive.ndk, archive.compiler, runtime, platform, archive.builder, abi, archive.include, libs, archive.flavor);
}