Skip to content

Commit

Permalink
added maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Champigny committed Apr 22, 2021
1 parent 6135efd commit b8481cd
Show file tree
Hide file tree
Showing 51 changed files with 360 additions and 467 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

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

11 changes: 3 additions & 8 deletions .idea/modules.xml

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

12 changes: 5 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,14 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':shapeofview')
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
//implementation project(':shapeofview')
implementation "io.github.florent37:shapeofview:+"
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation 'com.google.android.material:material:1.3.0'

implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'

implementation 'com.jakewharton:butterknife:9.0.0-rc1'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1'

implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.4.1'

implementation 'com.github.florent37:rxlifecycle:2.0.4'
Expand Down
22 changes: 11 additions & 11 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.github.florent37.shapeofview.sample">
package="io.github.florent37.shapeofview.sample">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
Expand All @@ -9,29 +9,29 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".ShapeOfViewMainActivity">
<activity android:name="io.github.florent37.shapeofview.sample.ShapeOfViewMainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<activity android:name=".ShapeOfViewAnimationActivity"/>
<activity android:name=".ShapeOfViewStarActivity"/>
<activity android:name=".MaterialDesignShrineActivity"/>
<activity android:name=".ErrorActivity" >
<activity android:name="io.github.florent37.shapeofview.sample.ShapeOfViewAnimationActivity"/>
<activity android:name="io.github.florent37.shapeofview.sample.ShapeOfViewStarActivity"/>
<activity android:name="io.github.florent37.shapeofview.sample.MaterialDesignShrineActivity"/>
<activity android:name="io.github.florent37.shapeofview.sample.ErrorActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".JackmanActivity" />
<activity android:name=".StarWarsActivity" />
<activity android:name=".ShapeOfViewRoundActivity" />
<activity android:name=".DottedEdgesActivity" />
<activity android:name=".ShapeOfViewStarAnimatedActivity" />
<activity android:name="io.github.florent37.shapeofview.sample.JackmanActivity" />
<activity android:name="io.github.florent37.shapeofview.sample.StarWarsActivity" />
<activity android:name="io.github.florent37.shapeofview.sample.ShapeOfViewRoundActivity" />
<activity android:name="io.github.florent37.shapeofview.sample.DottedEdgesActivity" />
<activity android:name="io.github.florent37.shapeofview.sample.ShapeOfViewStarAnimatedActivity" />

</application>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.github.florent37.shapeofview.sample;
package io.github.florent37.shapeofview.sample;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;

import io.github.florent37.shapeofview.sample.R;

public class DottedEdgesActivity extends AppCompatActivity {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.florent37.shapeofview.sample;
package io.github.florent37.shapeofview.sample;

import android.os.Bundle;
import androidx.annotation.Nullable;
Expand All @@ -15,19 +15,19 @@

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;

import io.github.florent37.shapeofview.sample.R;

public class ErrorActivity extends AppCompatActivity {

@BindView(R.id.recyclerView)
RecyclerView recyclerView;

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.shape_of_view_error);
ButterKnife.bind(this);

recyclerView = findViewById(R.id.recyclerView);

final MyAdapter adapter = new MyAdapter();
recyclerView.setAdapter(adapter);
Expand Down Expand Up @@ -75,18 +75,18 @@ static class MyViewHolder extends RecyclerView.ViewHolder {

public MyViewHolder(View itemView) {
super(itemView);
ButterKnife.bind(this, itemView);

img_flyer_list = itemView.findViewById(R.id.img_flyer_list);
tv_cell_title = itemView.findViewById(R.id.tv_cell_title);
tv_cell_description = itemView.findViewById(R.id.tv_cell_description);
}

public static MyViewHolder buildFor(ViewGroup viewGroup) {
return new MyViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(LAYOUT, viewGroup, false));
}

@BindView(R.id.img_flyer_list)
ImageView img_flyer_list;
@BindView(R.id.tv_cell_title)
TextView tv_cell_title;
@BindView(R.id.tv_cell_description)
TextView tv_cell_description;

public void bind(Object o){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.github.florent37.shapeofview.sample;
package io.github.florent37.shapeofview.sample;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;

import io.github.florent37.shapeofview.sample.R;

public class JackmanActivity extends AppCompatActivity {

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.florent37.shapeofview.sample;
package io.github.florent37.shapeofview.sample;

import android.content.Context;
import androidx.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
package com.github.florent37.shapeofview.sample;
package io.github.florent37.shapeofview.sample;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MaterialDesignShrineActivity extends AppCompatActivity {

@BindView(R.id.menu)
View menu;

@BindView(R.id.bottomSheet)
View bottomSheet;
@BindView(R.id.middleSheet)
View middleSheet;
@BindView(R.id.topSheet)
View topSheet;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.shape_of_view_activity_main_shrine);
ButterKnife.bind(this);
menu = findViewById(R.id.menu);
bottomSheet = findViewById(R.id.bottomSheet);
middleSheet = findViewById(R.id.middleSheet);
topSheet = findViewById(R.id.topSheet);


menu.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
onMenuClicked();
}
});
}

@OnClick(R.id.menu)
public void onMenuClicked() {
final boolean enabled = middleSheet.isEnabled();
if(enabled){
Expand All @@ -38,12 +39,10 @@ public void onMenuClicked() {
middleSheet.setEnabled(!enabled);
}

@OnClick(R.id.topSheet)
void onTopSheetClicked() {

}

@OnClick(R.id.addToCart)
void onAddToCartClicked() {

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.github.florent37.shapeofview.sample
package io.github.florent37.shapeofview.sample

import android.animation.ValueAnimator
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.github.florent37.shapeofview.shapes.RoundRectView
import io.github.florent37.shapeofview.sample.R
import io.github.florent37.shapeofview.shapes.RoundRectView

class ShapeOfViewAnimationActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package io.github.florent37.shapeofview.sample;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

public class ShapeOfViewMainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.shape_of_view_activity_main);

findViewById(R.id.anim).setOnClickListener(view -> {
startActivity(new Intent(this, ShapeOfViewAnimationActivity.class));
});
findViewById(R.id.jackman).setOnClickListener(view -> {
startActivity(new Intent(this, JackmanActivity.class));
});
findViewById(R.id.star).setOnClickListener(view -> {
startActivity(new Intent(this, ShapeOfViewStarActivity.class));
});
findViewById(R.id.round).setOnClickListener(view -> {
startActivity(new Intent(this, ShapeOfViewRoundActivity.class));
});
findViewById(R.id.star_wars).setOnClickListener(view -> {
startActivity(new Intent(this, StarWarsActivity.class));
});
findViewById(R.id.star_wars_animated).setOnClickListener(view -> {
startActivity(new Intent(this, ShapeOfViewStarAnimatedActivity.class));
});
findViewById(R.id.shrine).setOnClickListener(view -> {
startActivity(new Intent(this, MaterialDesignShrineActivity.class));
});
findViewById(R.id.shapes).setOnClickListener(view -> {
startActivity(new Intent(this, ShapeOfViewStarActivity.class));
});
findViewById(R.id.dottedEdges).setOnClickListener(view -> {
startActivity(new Intent(this, DottedEdgesActivity.class));
});
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.github.florent37.shapeofview.sample;
package io.github.florent37.shapeofview.sample;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;

import io.github.florent37.shapeofview.sample.R;

public class ShapeOfViewRoundActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.github.florent37.shapeofview.sample;
package io.github.florent37.shapeofview.sample;

import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;

import io.github.florent37.shapeofview.sample.R;

public class ShapeOfViewStarActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.github.florent37.shapeofview.sample
package io.github.florent37.shapeofview.sample

import android.animation.ValueAnimator
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.github.florent37.shapeofview.shapes.ArcView
import com.github.florent37.shapeofview.shapes.RoundRectView
import io.github.florent37.shapeofview.sample.R
import io.github.florent37.shapeofview.shapes.ArcView

class ShapeOfViewStarAnimatedActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down
Loading

0 comments on commit b8481cd

Please sign in to comment.