Removed github workflows

This commit is contained in:
Akash Yadav
2021-11-01 13:21:55 +05:30
parent 76bf9b961e
commit b4768b8dc9
3 changed files with 199 additions and 51 deletions
-49
View File
@@ -1,49 +0,0 @@
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: Build apk
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.5.0
with:
access_token: ${{ github.token }}
- name: Clone repo
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build APK
uses: eskatos/gradle-command-action@v1
with:
arguments: :app:build
distributions-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
- name: Upload debug APK
uses: actions/upload-artifact@v2
if: ${{ !github.head_ref }}
with:
name: apk-debug
path: app/build/outputs/apk/debug
- name: Upload release APK
uses: actions/upload-artifact@v2
if: ${{ !github.head_ref }}
with:
name: apk-release
path: app/build/outputs/apk/release
@@ -0,0 +1,197 @@
package com.itsaky.androidide.models;
import java.util.List;
import com.google.gson.annotations.SerializedName;
public class ApkMetadata {
@SerializedName("version")
private int version;
@SerializedName("artifactType")
private ArtifactType artifactType;
@SerializedName("applicationId")
private String applicationId;
@SerializedName("variantName")
private String variantName;
@SerializedName("elements")
private List<Element> elements;
@SerializedName("elementType")
private String elementType;
public void setVersion(int version) {
this.version = version;
}
public void setArtifactType(ArtifactType artifactType) {
this.artifactType = artifactType;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public void setVariantName(String variantName) {
this.variantName = variantName;
}
public void setElements(List<Element> elements) {
this.elements = elements;
}
public void setElementType(String elementType) {
this.elementType = elementType;
}
public int getVersion() {
return version;
}
public ArtifactType getArtifactType() {
return artifactType;
}
public String getApplicationId() {
return applicationId;
}
public String getVariantName() {
return variantName;
}
public List<Element> getElements() {
return elements;
}
public String getElementType() {
return elementType;
}
public static class ArtifactType {
@SerializedName("type")
private String type;
@SerializedName("kind")
private String kind;
public void setType(String type) {
this.type = type;
}
public void setKind(String kind) {
this.kind = kind;
}
public String getType() {
return type;
}
public String getKind() {
return kind;
}
@Override
public String toString() {
return "["+getClass().getCanonicalName()+"]"
+ "\ntype=" + type
+ ",\nkind=" + kind;
}
}
public static class Element {
@SerializedName("type")
private String type;
@SerializedName("filters")
private List<Object> filters;
@SerializedName("attributes")
private List<Object> attributes;
@SerializedName("versionCode")
private int versionCode;
@SerializedName("versionName")
private String versionName;
@SerializedName("outputFile")
private String outputFile;
public void setType(String type) {
this.type = type;
}
public void setFilters(List<Object> filters) {
this.filters = filters;
}
public void setAttributes(List<Object> attributes) {
this.attributes = attributes;
}
public void setVersionCode(int versionCode) {
this.versionCode = versionCode;
}
public void setVersionName(String versionName) {
this.versionName = versionName;
}
public void setOutputFile(String outputFile) {
this.outputFile = outputFile;
}
public String getType() {
return type;
}
public List<Object> getFilters() {
return filters;
}
public List<Object> getAttributes() {
return attributes;
}
public int getVersionCode() {
return versionCode;
}
public String getVersionName() {
return versionName;
}
public String getOutputFile() {
return outputFile;
}
@Override
public String toString() {
return "["+getClass().getCanonicalName()+"]"
+ "\ntype=" + type
+ ",\nfilters=" + filters
+ ",\nattributes=" + attributes
+ ",\nversionCode=" + versionCode
+ ",\nversionName=" + versionName
+ ",\noutputFile=" + outputFile;
}
}
@Override
public String toString() {
return "["+getClass().getCanonicalName()+"]"
+ "\nversion=" + version
+ ",\nartifactType=" + artifactType
+ ",\napplicationId=" + applicationId
+ ",\nvariantName=" + variantName
+ ",\nelements=" + elements
+ ",\nelementType=" + elementType;
}
}
+2 -2
View File
@@ -4,8 +4,8 @@ buildscript {
buildTools = "31.0.0"
minSdk = 24
targetSdk = 28
versionCode = 103211029
versionName = "1.0.3-alpha"
versionCode = 1031211101
versionName = "1.0.3.1-alpha"
packageName = "com.itsaky.androidide"
javaSourceVersion = JavaVersion.VERSION_1_8