Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Android_App/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 0 additions & 123 deletions Android_App/.idea/codeStyles/Project.xml

This file was deleted.

5 changes: 0 additions & 5 deletions Android_App/.idea/codeStyles/codeStyleConfig.xml

This file was deleted.

18 changes: 0 additions & 18 deletions Android_App/.idea/deploymentTargetSelector.xml

This file was deleted.

1 change: 0 additions & 1 deletion Android_App/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Android_App/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions Android_App/.idea/vcs.xml

This file was deleted.

1 change: 0 additions & 1 deletion Android_App/README.md

This file was deleted.

38 changes: 13 additions & 25 deletions Android_App/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,14 @@ plugins {
alias(libs.plugins.kotlin.android)
}

repositories {
// paho repository
maven {
url "https://repo.eclipse.org/content/repositories/paho-snapshots/"
}
}

android {
namespace = "com.example.prog1_teste"
compileSdk = 35
namespace = "com.example.mqtt"
compileSdk = 31

defaultConfig {
applicationId = "com.example.prog1_teste"
minSdk = 24
targetSdk = 35
applicationId = "com.example.mqtt"
minSdk = 30
targetSdk = 30
versionCode = 1
versionName = "1.0"

Expand All @@ -43,16 +36,11 @@ android {
}

dependencies {

implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.material)
implementation(libs.androidx.activity)
implementation(libs.androidx.constraintlayout)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
// paho dependencies
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
}
implementation("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5")
implementation("org.eclipse.paho:org.eclipse.paho.android.service:1.1.1")
implementation("androidx.localbroadcastmanager:localbroadcastmanager:1.1.0")
implementation("androidx.core:core-ktx:1.7.0")
implementation("androidx.appcompat:appcompat:1.4.1")
implementation("com.google.android.material:material:1.5.0")
implementation("androidx.work:work-runtime-ktx:2.7.1") // Para PendingIntent
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.prog1_teste
package com.example.mqtt

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand All @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.prog1_teste", appContext.packageName)
assertEquals("com.example.mqtt", appContext.packageName)
}
}
16 changes: 10 additions & 6 deletions Android_App/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

<application
android:allowBackup="true"
Expand All @@ -14,24 +14,28 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Prog1_teste"
android:theme="@style/Theme.MQTT"
tools:targetApi="31">
<service android:name="org.eclise.paho.android.service.MqttService" />

<activity android:name=".ConexaoActivity" />
<activity android:name=".InputParametersActivity" />
<activity android:name=".ResultActivity" />
<activity android:name=".PublishActivity" />


<service
android:name="org.eclipse.paho.android.service.MqttService"
android:enabled="true"
android:exported="false" />

<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
</manifest>
3 changes: 0 additions & 3 deletions Android_App/app/src/main/java/com/example/.idea/.gitignore

This file was deleted.

Loading