Skip to content

Commit

Permalink
updated the upload repository
Browse files Browse the repository at this point in the history
  • Loading branch information
judemanutd committed Jul 10, 2021
1 parent b8a383b commit 515c57e
Show file tree
Hide file tree
Showing 9 changed files with 349 additions and 118 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish

on:
release:
# We'll run this workflow when a new GitHub release is created
types: [ released ]

jobs:
publish:
name: Release build and publish
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

# Builds the release artifacts of the library
- name: Release build
run: ./gradlew :autostarter:assembleRelease

# Generates other artifacts
- name: Source jar
run: ./gradlew androidSourcesJar

# Runs upload, and then closes & releases the repository
- name: Publish to MavenCentral
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.judemanutd.autostarterexample"
minSdkVersion 14
targetSdkVersion 30
versionCode 4
versionName "1.0.4"
versionCode 5
versionName "1.0.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand All @@ -28,7 +28,7 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.13'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:appcompat-v7:28.0.0'
Expand Down
43 changes: 19 additions & 24 deletions autostarter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,34 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

ext {
bintrayRepo = 'maven'
bintrayName = 'autostarter'

publishedGroupId = 'com.github.judemanutd'
libraryName = 'Autostarter'
artifact = 'autostarter'
PUBLISH_GROUP_ID = "com.github.judemanutd"
PUBLISH_VERSION = "1.1.0"
PUBLISH_ARTIFACT_ID = "autostarter"
PUBLISH_DESCRIPTION = 'A library to help add your app to android autostart'
PUBLISH_URL = 'https://github.com/judemanutd/AutoStarter'
PUBLISH_LICENSE_NAME = 'MIT'
PUBLISH_LICENSE_URL = 'https://opensource.org/licenses/MIT'

libraryDescription = 'A library to help add your app to android autostart'
PUBLISH_DEVELOPER_ID = 'judemanutd'
PUBLISH_DEVELOPER_NAME = 'Jude Fernandes'
PUBLISH_DEVELOPER_EMAIL = '[email protected]'

siteUrl = 'https://github.com/judemanutd/AutoStarter'
gitUrl = 'https://github.com/judemanutd/AutoStarter.git'
PUBLISH_SCM_CONNECTION = 'scm:git:github.com/judemanutd/AutoStarter.git'
PUBLISH_SCM_DEVELOPER_CONNECTION = 'scm:git:ssh://github.com/judemanutd/AutoStarter.git'
PUBLISH_SCM_URL = 'https://github.com/judemanutd/AutoStarter/tree/master'

libraryVersion = '1.0.9'

developerId = 'judemanutd'
developerName = 'Jude Fernandes'
developerEmail = '[email protected]'

licenseName = 'MIT'
licenseUrl = 'https://opensource.org/licenses/MIT'
allLicenses = ["MIT"]
}

apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"

android {
compileSdkVersion 30
defaultConfig {
minSdkVersion 14
targetSdkVersion 30
versionCode 9
versionName "1.0.9"
versionCode 10
versionName "1.1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -50,7 +48,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

testImplementation 'junit:junit:4.13'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Expand All @@ -62,7 +60,4 @@ repositories {

tasks.withType(Javadoc).all {
enabled = false
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
}
35 changes: 34 additions & 1 deletion autostarter/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.judemanutd.autostarter" />
xmlns:tools="http://schemas.android.com/tools"
package="com.judemanutd.autostarter">

<!--<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />-->

<queries>
<package android:name="com.miui.securitycenter" />
<package android:name="com.miui.permcenter" />

<package android:name="com.letv.android.letvsafe" />

<package android:name="com.asus.mobilemanager" />

<package android:name="com.huawei.systemmanager" />

<package android:name="com.coloros.safecenter" />
<package android:name="com.oppo.safe" />

<package android:name="com.iqoo.secure" />

<package android:name="com.vivo.permissionmanager" />

<package android:name="com.evenwell.powersaving" />

<package android:name="com.samsung.android" />

<package android:name="com.oneplus" />

<package android:name="com.android.settings" />
</queries>

</manifest>
Loading

0 comments on commit 515c57e

Please sign in to comment.