Skip to content

Commit

Permalink
jitpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
thisames committed Mar 30, 2024
1 parent 6227301 commit a52dbac
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 1 deletion.
8 changes: 8 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# configuration file for building snapshots and releases with jitpack.io
jdk:
- openjdk17
before_install:
- ./scripts/prepareJitpackEnvironment.sh
install:
- FILE="-Dfile=tasklogger-release.aar"
- mvn install:install-file $FILE -DgroupId=com.github.phone-replay -DartifactId=phone-replay-android-lib -Dversion=1.0 -Dpackaging=aar -DgeneratePom=true
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.phone-replay</groupId>
<artifactId>phone-replay-android-lib</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<description>DESCRIPTION</description>
</project>
Binary file added tasklogger-release.aar
Binary file not shown.
56 changes: 56 additions & 0 deletions tasklogger/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id 'com.android.library'
id 'maven-publish' // << --- ADD This
id 'com.google.protobuf' version '0.9.4'
}

android {
Expand All @@ -17,6 +19,7 @@ android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
consumerProguardFiles 'consumer-rules.pro' // << --- ADD This
}
}
compileOptions {
Expand All @@ -25,6 +28,59 @@ android {
}
}

// 4. Add This Java Blocs:
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17) // << --- ADD This
}
}


java {
sourceCompatibility = JavaVersion.VERSION_17 // << --- ADD This
targetCompatibility = JavaVersion.VERSION_17
}

// 5. Publishing:
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.github.phone-replay'
artifactId = 'phone-replay-android-lib'
version = "1.0"
pom {
description = 'DESCRIPTION'
}
}
}
repositories { // << --- ADD This
mavenLocal()
}
}



protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.19.2' }
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.47.0'
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
java { option 'lite' }
}
task.plugins {
grpc {
option 'lite'
}
}
}
}
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.6.1'
Expand Down
1 change: 1 addition & 0 deletions tasklogger/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +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" />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public static String getTotalRAM(Context context) {
return formatSize(totalMemory);
}


public static String getCurrentNetwork(Context context) {
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
Expand Down
25 changes: 25 additions & 0 deletions tasklogger/src/main/proto/binary.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
syntax = "proto3";

option java_package = "com.phonereplay.tasklogger";

// Definição da mensagem TimeLine
message TimeLine {
string coordinates = 1;
string gestureType = 2;
string targetTime = 3;
}

// Atualização da mensagem BinaryDataRequest para incluir a lista de TimeLine
message BinaryDataRequest {
bytes binaryData = 1;
string sessionId = 2;
repeated TimeLine timeLines = 3; // Lista de TimeLine substituindo LocalGesture
}

message BinaryDataResponse {
// Adicione quaisquer outros campos de resposta conforme necessário
}

service BinaryDataService {
rpc sendBinaryData(BinaryDataRequest) returns (BinaryDataResponse);
}

0 comments on commit a52dbac

Please sign in to comment.