This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Showing
61 changed files
with
557 additions
and
371 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,28 @@ | ||
name: Build pull request | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
release: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache Gradle | ||
uses: burrunan/gradle-cache-action@v1 | ||
|
||
- name: Setup Java | ||
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV | ||
|
||
- name: Build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew build --no-daemon |
File renamed without changes.
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 |
---|---|---|
@@ -1,17 +1,12 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
/.idea | ||
/.vscode | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
/.idea | ||
/.vscode | ||
/*.log | ||
node_modules | ||
local.properties | ||
node_modules |
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
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 +1 @@ | ||
/build | ||
/build |
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,51 +1,80 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("org.jetbrains.kotlin.android") | ||
alias(libs.plugins.android.application) | ||
alias(libs.plugins.kotlin) | ||
publishing | ||
} | ||
|
||
android { | ||
compileSdk = 33 | ||
namespace = "app.revanced.integrations" | ||
compileSdk = 33 | ||
|
||
applicationVariants.all { | ||
outputs.all { | ||
this as com.android.build.gradle.internal.api.ApkVariantOutputImpl | ||
|
||
outputFileName = "${rootProject.name}-$versionName.apk" | ||
} | ||
} | ||
|
||
defaultConfig { | ||
applicationId = "app.revanced.integrations" | ||
minSdk = 23 | ||
targetSdk = 33 | ||
multiDexEnabled = false | ||
versionName = project.version as String | ||
versionName = version as String | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = true | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
"proguard-rules.pro", | ||
) | ||
} | ||
applicationVariants.all { | ||
outputs.all { | ||
this as com.android.build.gradle.internal.api.ApkVariantOutputImpl | ||
|
||
outputFileName = "${rootProject.name}-$versionName.apk" | ||
} | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility(JavaVersion.VERSION_11) | ||
targetCompatibility(JavaVersion.VERSION_11) | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_11.toString() | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly(project(mapOf("path" to ":dummy"))) | ||
compileOnly("androidx.annotation:annotation:1.7.0") | ||
compileOnly("androidx.appcompat:appcompat:1.7.0-alpha03") | ||
compileOnly("com.squareup.okhttp3:okhttp:5.0.0-alpha.11") | ||
compileOnly("com.squareup.retrofit2:retrofit:2.9.0") | ||
compileOnly(libs.appcompat) | ||
compileOnly(libs.annotation) | ||
compileOnly(libs.okhttp) | ||
compileOnly(libs.retrofit) | ||
|
||
compileOnly(project(":stub")) | ||
} | ||
|
||
tasks.register("publish") { dependsOn("build") } | ||
tasks { | ||
// Because the signing plugin doesn't support signing APKs, do it manually. | ||
register("sign") { | ||
group = "signing" | ||
|
||
dependsOn(build) | ||
|
||
doLast { | ||
val outputDirectory = layout.buildDirectory.dir("outputs/apk/release").get().asFile | ||
val integrationsApk = outputDirectory.resolve("${rootProject.name}-$version.apk") | ||
|
||
org.gradle.security.internal.gnupg.GnupgSignatoryFactory().createSignatory(project).sign( | ||
integrationsApk.inputStream(), | ||
outputDirectory.resolve("${integrationsApk.name}.asc").outputStream(), | ||
) | ||
} | ||
} | ||
|
||
// Needed by gradle-semantic-release-plugin. | ||
// Tracking: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435 | ||
publish { | ||
dependsOn(build) | ||
dependsOn("sign") | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> | ||
</manifest> |
Oops, something went wrong.