Open 616226821 opened 8 years ago
either through gradle or as a stand alone library. Just be sure to remove the dependencies for library publishing in the squarecamera/build.gradle
apply plugin: 'com.android.library' version = "1.1.0" group = "com.github.boxme" def siteUrl = 'https://github.com/boxme/SquareCamera' def gitUrl = 'https://github.com/boxme/SquareCamera.git' android { compileSdkVersion 23 buildToolsVersion "23.0.1" resourcePrefix "squarecamera__" defaultConfig { minSdkVersion 14 targetSdkVersion 23 versionCode 5 versionName "1.1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/NOTICE.txt' exclude 'META-INF/LICENSE.txt' } } Properties properties = new Properties() properties.load(project.rootProject.file('local.properties').newDataInputStream()) dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:support-v4:23.0.1' compile 'com.android.support:design:23.0.1' } task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' } task javadoc(type: Javadoc) { source = android.sourceSets.main.java.srcDirs classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) } task javadocJar(type: Jar, dependsOn: javadoc) { classifier = 'javadoc' from javadoc.destinationDir } artifacts { archives javadocJar archives sourcesJar }
either through gradle or as a stand alone library. Just be sure to remove the dependencies for library publishing in the squarecamera/build.gradle