Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.colorpicker;
package com.lucasgithubz.colorpicker;

import android.content.Context;

Expand All @@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.colorpicker.test", appContext.getPackageName());
assertEquals("com.lucasgithubz.colorpicker.test", appContext.getPackageName());
}
}
}
4 changes: 2 additions & 2 deletions ColorPicker/src/main/AndroidManifest.xml
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"
package="com.example.colorpicker">
package="com.lucasgithubz.colorpicker">

</manifest>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.colorpicker;
package com.lucasgithubz.colorpicker;

import android.app.Activity;
import android.app.DialogFragment;
Expand All @@ -13,7 +13,7 @@
import android.widget.Button;
import android.widget.ImageView;

import com.example.colorpicker.FloatingButton;
import com.lucasgithubz.colorpicker.FloatingButton;

public class ColorControllerFragment extends DialogFragment {
public FloatingButton floatingActionButton;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.colorpicker;
package com.lucasgithubz.colorpicker;

import android.app.Activity;
import android.app.DialogFragment;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.colorpicker;
package com.lucasgithubz.colorpicker;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public class ExampleUnitTest {
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ Ce dépôt contient _L'Application ColorPicker_ qui permet de générer un bouto


## Procédure Installation
1. Dans `app/build.gradle` ajouter la dépendance suivante : _implementation 'com.github.LucasGitHubz:ColorPicker:<Release Number>'_
Ou <Release Number> correspond à une des versions sur [cette](https://github.com/LucasGitHubz/ColorPicker/releases) page.
1. Dans `app/build.gradle` ajouter la dépendance suivante : _implementation 'com.github.LucasGitHubz:ColorPicker:_`Release Number`'
Où `Release Number` correspond à une des versions sur [cette](https://github.com/LucasGitHubz/ColorPicker/releases) page.
3. A la racine du projet dans le fichier `settings.gradle` ajouter dans `repositories {...}` : _maven { url 'https://jitpack.io' }_


## Procédure D'utilisation
Dans votre layout ajouter le bouton :

```
<com.example.colorpicker.FloatingButton
<com.lucasgithubz.colorpicker.FloatingButton
android:id="@+id/colorPickerButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.example.colorviewpicker"
applicationId "com.lucasgithubz.colorviewpicker"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
Expand Down Expand Up @@ -37,4 +37,4 @@ dependencies {
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.colorviewpicker;
package com.lucasgithubz.colorviewpicker;

import android.content.Context;

Expand All @@ -23,4 +23,4 @@ public void useAppContext() {
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.colorviewpicker", appContext.getPackageName());
}
}
}
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.colorviewpicker">
package="com.lucasgithubz.colorviewpicker">

<application
android:allowBackup="true"
Expand All @@ -18,4 +18,4 @@
</activity>
</application>

</manifest>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.colorviewpicker;
package com.lucasgithubz.colorviewpicker;

import androidx.appcompat.app.AppCompatActivity;

Expand All @@ -11,4 +11,4 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
}
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<com.example.colorpicker.FloatingButton
<com.lucasgithubz.colorpicker.FloatingButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
Expand All @@ -15,4 +15,4 @@
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.colorviewpicker;
package com.lucasgithubz.colorviewpicker;

import org.junit.Test;

Expand All @@ -14,4 +14,4 @@ public class ExampleUnitTest {
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
}