From fd21373eecc72295e9cc49affc2129db2223abd4 Mon Sep 17 00:00:00 2001 From: Louis-Guillaume DUBOIS Date: Thu, 1 Jun 2017 13:09:01 +0200 Subject: [PATCH] Changement du nom du paquet --- .google/packaging.yaml | 18 ------------------ .idea/modules.xml | 2 +- Application/src/main/AndroidManifest.xml | 5 ++--- .../clientble}/BluetoothLeService.java | 13 +++++++------ .../clientble}/DeviceControlActivity.java | 3 ++- .../clientble}/DeviceScanActivity.java | 2 +- .../clientble}/SampleGattAttributes.java | 2 +- 7 files changed, 14 insertions(+), 31 deletions(-) delete mode 100644 .google/packaging.yaml rename Application/src/main/java/{com/example/android/bluetoothlegatt => fr/centralesupelec/students/clientble}/BluetoothLeService.java (96%) rename Application/src/main/java/{com/example/android/bluetoothlegatt => fr/centralesupelec/students/clientble}/DeviceControlActivity.java (99%) rename Application/src/main/java/{com/example/android/bluetoothlegatt => fr/centralesupelec/students/clientble}/DeviceScanActivity.java (99%) rename Application/src/main/java/{com/example/android/bluetoothlegatt => fr/centralesupelec/students/clientble}/SampleGattAttributes.java (97%) diff --git a/.google/packaging.yaml b/.google/packaging.yaml deleted file mode 100644 index 42abd09..0000000 --- a/.google/packaging.yaml +++ /dev/null @@ -1,18 +0,0 @@ - -# GOOGLE SAMPLE PACKAGING DATA -# -# This file is used by Google as part of our samples packaging process. -# End users may safely ignore this file. It has no relevance to other systems. ---- -status: PUBLISHED -technologies: [Android] -categories: [Connectivity] -languages: [Java] -solutions: [Mobile] -github: android-BluetoothLeGatt -level: ADVANCED -icon: screenshots/icon-web.png -apiRefs: - - android:android.app.Service - - android:android.bluetooth.BluetoothGattService -license: apache2 diff --git a/.idea/modules.xml b/.idea/modules.xml index b7dff85..9ed0142 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,7 +3,7 @@ - + \ No newline at end of file diff --git a/Application/src/main/AndroidManifest.xml b/Application/src/main/AndroidManifest.xml index 5983250..f99e75c 100644 --- a/Application/src/main/AndroidManifest.xml +++ b/Application/src/main/AndroidManifest.xml @@ -1,6 +1,7 @@ - - diff --git a/Application/src/main/java/com/example/android/bluetoothlegatt/BluetoothLeService.java b/Application/src/main/java/fr/centralesupelec/students/clientble/BluetoothLeService.java similarity index 96% rename from Application/src/main/java/com/example/android/bluetoothlegatt/BluetoothLeService.java rename to Application/src/main/java/fr/centralesupelec/students/clientble/BluetoothLeService.java index 54e77e9..9ac9c31 100644 --- a/Application/src/main/java/com/example/android/bluetoothlegatt/BluetoothLeService.java +++ b/Application/src/main/java/fr/centralesupelec/students/clientble/BluetoothLeService.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2013 The Android Open Source Project + * Copyright (C) 2017 Louis-Guillaume Dubois * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +15,7 @@ * limitations under the License. */ -package com.example.android.bluetoothlegatt; +package fr.centralesupelec.students.clientble; import android.app.Service; import android.bluetooth.BluetoothAdapter; @@ -53,15 +54,15 @@ public class BluetoothLeService extends Service { private static final int STATE_CONNECTED = 2; public final static String ACTION_GATT_CONNECTED = - "com.example.bluetooth.le.ACTION_GATT_CONNECTED"; + "fr.cenralesupelec.students.clientble.ACTION_GATT_CONNECTED"; public final static String ACTION_GATT_DISCONNECTED = - "com.example.bluetooth.le.ACTION_GATT_DISCONNECTED"; + "fr.centralesupelec.students.clientble.ACTION_GATT_DISCONNECTED"; public final static String ACTION_GATT_SERVICES_DISCOVERED = - "com.example.bluetooth.le.ACTION_GATT_SERVICES_DISCOVERED"; + "fr.centralesupelec.students.clientble.ACTION_GATT_SERVICES_DISCOVERED"; public final static String ACTION_DATA_AVAILABLE = - "com.example.bluetooth.le.ACTION_DATA_AVAILABLE"; + "fr.centralesupelec.students.clientble.ACTION_DATA_AVAILABLE"; public final static String EXTRA_DATA = - "com.example.bluetooth.le.EXTRA_DATA"; + "fr.centralesupelec.students.clientble.EXTRA_DATA"; /* TODO public final static UUID UUID_HEART_RATE_MEASUREMENT = diff --git a/Application/src/main/java/com/example/android/bluetoothlegatt/DeviceControlActivity.java b/Application/src/main/java/fr/centralesupelec/students/clientble/DeviceControlActivity.java similarity index 99% rename from Application/src/main/java/com/example/android/bluetoothlegatt/DeviceControlActivity.java rename to Application/src/main/java/fr/centralesupelec/students/clientble/DeviceControlActivity.java index dc2f90b..a9d0daf 100644 --- a/Application/src/main/java/com/example/android/bluetoothlegatt/DeviceControlActivity.java +++ b/Application/src/main/java/fr/centralesupelec/students/clientble/DeviceControlActivity.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2013 The Android Open Source Project + * Copyright (C) 2017 Louis-Guillaume Dubois * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,7 +15,7 @@ * limitations under the License. */ -package com.example.android.bluetoothlegatt; +package fr.centralesupelec.students.clientble; import android.app.Activity; import android.bluetooth.BluetoothGattCharacteristic; diff --git a/Application/src/main/java/com/example/android/bluetoothlegatt/DeviceScanActivity.java b/Application/src/main/java/fr/centralesupelec/students/clientble/DeviceScanActivity.java similarity index 99% rename from Application/src/main/java/com/example/android/bluetoothlegatt/DeviceScanActivity.java rename to Application/src/main/java/fr/centralesupelec/students/clientble/DeviceScanActivity.java index 7b1e240..b983c5e 100644 --- a/Application/src/main/java/com/example/android/bluetoothlegatt/DeviceScanActivity.java +++ b/Application/src/main/java/fr/centralesupelec/students/clientble/DeviceScanActivity.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.example.android.bluetoothlegatt; +package fr.centralesupelec.students.clientble; import android.Manifest; import android.app.Activity; diff --git a/Application/src/main/java/com/example/android/bluetoothlegatt/SampleGattAttributes.java b/Application/src/main/java/fr/centralesupelec/students/clientble/SampleGattAttributes.java similarity index 97% rename from Application/src/main/java/com/example/android/bluetoothlegatt/SampleGattAttributes.java rename to Application/src/main/java/fr/centralesupelec/students/clientble/SampleGattAttributes.java index b2eb58b..7cea0c3 100644 --- a/Application/src/main/java/com/example/android/bluetoothlegatt/SampleGattAttributes.java +++ b/Application/src/main/java/fr/centralesupelec/students/clientble/SampleGattAttributes.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package com.example.android.bluetoothlegatt; +package fr.centralesupelec.students.clientble; import java.util.HashMap;