Java
- 2 ответа
- 0 вопросов
2
Вклад в тег
public interface SocialApi {
void post(Post post);
void deletePost();
}
public class VkApi implements SocialApi {
@Override
void post(Post post){}
@Override
void deletePost(){}
}
productFlavors {
appForVk {
buildConfigField("com.social.myapp.SocialApi", 'api', "new com.social.myapp.vk.VkApi()")
applicationId 'com.social.myapp.vk'
}
appForOk {
buildConfigField("com.social.myapp.SocialApi", 'api', "new com.social.myapp.ok.OkApi()")
applicationId 'com.social.myapp.ok'
}
}
public static final com.social.myapp.SocialApi api = new com.social.myapp.vk.VkApi();