Search in sources :

Example 1 with CommonFactory

use of com.android.repository.impl.meta.CommonFactory in project android by JetBrains.

the class AndroidSdkLicenseTemporaryData method getLicense.

public static License getLicense(boolean preview) {
    CommonFactory f = RepoManager.getCommonModule().createLatestFactory();
    License l = f.createLicenseType();
    l.setValue(preview ? HARDCODED_ANDROID_PREVIEW_SDK_LICENSE : HARDCODED_ANDROID_SDK_LICENSE);
    l.setId(preview ? "Android SDK Preview License" : "Android SDK License");
    return l;
}
Also used : CommonFactory(com.android.repository.impl.meta.CommonFactory) License(com.android.repository.api.License)

Aggregations

License (com.android.repository.api.License)1 CommonFactory (com.android.repository.impl.meta.CommonFactory)1