Procházet zdrojové kódy

Connection to company maven repository for publishing

Berislav před 9 roky
rodič
revize
b6e0794c1d

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 37 - 0
app/build.gradle

@@ -1,4 +1,6 @@
 apply plugin: 'com.android.library'
+apply plugin: 'com.jfrog.artifactory'
+apply plugin: 'maven-publish'
 
 android {
     compileSdkVersion 26
@@ -26,3 +28,38 @@ dependencies {
     compile 'com.android.support:appcompat-v7:26.+'
     testCompile 'junit:junit:4.12'
 }
+
+def libraryGroupId = 'hr.tacitus.graphs'
+def libraryArtifactId = 'android-graphs'
+def libraryVersion = '0.0.2'
+
+publishing {
+    publications {
+        aar(MavenPublication) {
+            groupId libraryGroupId
+            version libraryVersion
+            artifactId libraryArtifactId
+
+            artifact("$buildDir/outputs/aar/app-release.aar")
+        }
+    }
+}
+
+artifactory {
+    contextUrl = 'http://knut-hetzner.ddns.net:8081/artifactory'
+    publish {
+        repository {
+            repoKey = 'libs-release-local'
+
+            username = artifactory_username
+            password = artifactory_password
+        }
+        defaults {
+            publications('aar')
+            publishArtifacts = true
+
+            properties = ['qa.level': 'basic', 'q.os': 'android', 'dev.team': 'core']
+            publishPom = true
+        }
+    }
+}

+ 0 - 10
app/src/main/AndroidManifest.xml

@@ -2,14 +2,4 @@
 
     package="hr.tacitus.graphs">
 
-    <application
-        android:allowBackup="true"
-        android:icon="@mipmap/ic_launcher"
-        android:label="@string/app_name"
-        android:roundIcon="@mipmap/ic_launcher_round"
-        android:supportsRtl="true"
-        android:theme="@style/AppTheme">
-
-    </application>
-
 </manifest>

binární
app/src/main/res/mipmap-hdpi/ic_launcher.png


binární
app/src/main/res/mipmap-hdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-mdpi/ic_launcher.png


binární
app/src/main/res/mipmap-mdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-xhdpi/ic_launcher.png


binární
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-xxhdpi/ic_launcher.png


binární
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png


binární
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


binární
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png


+ 1 - 0
build.gradle

@@ -6,6 +6,7 @@ buildscript {
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:2.3.3'
+        classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.1"
 
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files