Skip to content

Commit

Permalink
Maven Publish Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
androidmads committed Oct 22, 2022
1 parent 1f53d1e commit 2eef691
Show file tree
Hide file tree
Showing 17 changed files with 173 additions and 142 deletions.
18 changes: 1 addition & 17 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

44 changes: 13 additions & 31 deletions QRGenearator/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'

group = 'androidmads.library.qrgenearator' // Change this to match your package name
version = '1.0.4' // Change this to match your version number
apply plugin: 'maven-publish'

android {
compileSdkVersion 30
buildToolsVersion "28.0.3"
compileSdkVersion 33

defaultConfig {
minSdkVersion 14
targetSdkVersion 30
versionCode 1
versionName "1.0"
targetSdkVersion 33
}
buildTypes {
release {
Expand All @@ -24,31 +17,20 @@ android {
}

dependencies {
implementation 'com.google.zxing:core:3.3.2'
implementation 'com.google.zxing:core:3.5.0'
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
pkg {
repo = 'maven'
name = 'androidmads.library.qrgenearator'

version {
name = '1.0.4'
desc = 'QR Generator Library'
released = new Date()
vcsTag = '1.0.4'
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'androidmads.library.qrgenearator'
artifactId = 'QRGenearator'
version = '1.0.0'
}
}

licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/androidmads/QRGenerator.git'
websiteUrl = 'https://androidmads.blogspot.com'
}
configurations = ['archives']
}

task generateSourcesJar(type: Jar) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public Bitmap getBitmap() {
for (int y = 0; y < height; y++) {
int offset = y * width;
for (int x = 0; x < width; x++) {
pixels[offset + x] = result.get(x, y) ? getColorBlack() : getColorWhite();
pixels[offset + x] = result.get(x, y) ? getColorWhite() : getColorBlack();
}
}

Expand Down
Binary file added QRGenerator.zip
Binary file not shown.
12 changes: 5 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileSdkVersion 33

defaultConfig {
applicationId "androidmads.example"
minSdkVersion 14
targetSdkVersion 28
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
Expand All @@ -21,9 +20,8 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.13.1'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
implementation project(':QRGenearator')
//implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.3'
}
15 changes: 7 additions & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="androidmads.example">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".GenDataActivity"
android:screenOrientation="portrait" />
android:name=".GenDataActivity"/>
<activity
android:name=".GenQRActivity"
android:screenOrientation="portrait" />
android:name=".GenQRActivity"/>
</application>

</manifest>
Loading

0 comments on commit 2eef691

Please sign in to comment.