-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8a383b
commit 515c57e
Showing
9 changed files
with
349 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
||
|
@@ -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" | ||
|
@@ -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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.