Skip to content

Commit

Permalink
Change package name and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
emersoncloud committed Sep 14, 2018
1 parent a7e1cba commit 9c10fa6
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions blurkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apply plugin: 'com.android.library'

ext {
PUBLISH_GROUP_ID = 'com.flurgle'
PUBLISH_ARTIFACT_ID = 'blurkit'
PUBLISH_VERSION = '1.1.1'
PUBLISH_GROUP_ID = 'com.alterac.blurkit'
PUBLISH_ARTIFACT_ID = 'blurkit-core'
PUBLISH_VERSION = '1.0.0'
}

android {
Expand All @@ -14,7 +14,7 @@ android {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.1.0"
versionName "1.0.0"
renderscriptTargetApi 25
renderscriptSupportModeEnabled true
}
Expand Down
2 changes: 1 addition & 1 deletion blurkit/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="com.flurgle.blurkit" />
<manifest package="com.alterac.blurkit" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flurgle.blurkit;
package com.alterac.blurkit;

import android.content.Context;
import android.graphics.Bitmap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flurgle.blurkit;
package com.alterac.blurkit;

public class BlurKitException extends Exception {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flurgle.blurkit;
package com.alterac.blurkit;

import android.app.Activity;
import android.content.Context;
Expand Down Expand Up @@ -78,12 +78,12 @@ public BlurLayout(Context context, AttributeSet attrs) {
super(context, attrs);

if (!isInEditMode()) {
com.flurgle.blurkit.BlurKit.init(context);
com.alterac.blurkit.BlurKit.init(context);
}

TypedArray a = context.getTheme().obtainStyledAttributes(
attrs,
com.flurgle.blurkit.R.styleable.BlurLayout,
com.alterac.blurkit.R.styleable.BlurLayout,
0, 0);

try {
Expand Down Expand Up @@ -255,7 +255,7 @@ private Bitmap blur() {
),
mDownscaleFactor
);
} catch (com.flurgle.blurkit.BlurKitException e) {
} catch (com.alterac.blurkit.BlurKitException e) {
return null;
} catch (NullPointerException e) {
return null;
Expand All @@ -265,7 +265,7 @@ private Bitmap blur() {

if (!mViewLocked) {
// Blur the bitmap.
bitmap = com.flurgle.blurkit.BlurKit.getInstance().blur(bitmap, mBlurRadius);
bitmap = com.alterac.blurkit.BlurKit.getInstance().blur(bitmap, mBlurRadius);

//Crop the bitmap again to remove the padding.
bitmap = Bitmap.createBitmap(
Expand Down Expand Up @@ -340,14 +340,14 @@ private PointF getPositionInScreen(View view) {
* @return Bitmap made from view, downscaled by downscaleFactor.
* @throws NullPointerException
*/
private Bitmap getDownscaledBitmapForView(View view, Rect crop, float downscaleFactor) throws com.flurgle.blurkit.BlurKitException, NullPointerException {
private Bitmap getDownscaledBitmapForView(View view, Rect crop, float downscaleFactor) throws com.alterac.blurkit.BlurKitException, NullPointerException {
View screenView = view.getRootView();

int width = (int) (crop.width() * downscaleFactor);
int height = (int) (crop.height() * downscaleFactor);

if (screenView.getWidth() <= 0 || screenView.getHeight() <= 0 || width <= 0 || height <= 0) {
throw new com.flurgle.blurkit.BlurKitException("No screen available (width or height = 0)");
throw new com.alterac.blurkit.BlurKitException("No screen available (width or height = 0)");
}

float dx = -crop.left * downscaleFactor;
Expand Down Expand Up @@ -426,7 +426,7 @@ public void lockView() {
setAlpha(0f);
mLockedBitmap = getDownscaledBitmapForView(view, new Rect(0, 0, view.getWidth(), view.getHeight()), mDownscaleFactor);
setAlpha(1f);
mLockedBitmap = com.flurgle.blurkit.BlurKit.getInstance().blur(mLockedBitmap, mBlurRadius);
mLockedBitmap = com.alterac.blurkit.BlurKit.getInstance().blur(mLockedBitmap, mBlurRadius);
} catch (Exception e) {
// ignore
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.flurgle.blurkit;
package com.alterac.blurkit;

import android.content.Context;
import android.graphics.Canvas;
Expand Down Expand Up @@ -43,7 +43,7 @@ protected void onDraw(Canvas canvas) {

paint.setAntiAlias(true);
canvas.drawARGB(0, 0, 0, 0);
paint.setColor(COLOR);
paint.setColor(DEFAULT_COLOR);
canvas.drawRoundRect(rectF, mCornerRadius, mCornerRadius, paint);

Xfermode prevMode = paint.getXfermode();
Expand Down
4 changes: 2 additions & 2 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.flurgle.blurkit.demo"
applicationId "com.alterac.blurkit.demo"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
Expand All @@ -22,7 +22,7 @@ android {
}

repositories {
maven { url 'https://dl.bintray.com/flurgle/maven' }
maven { url 'https://dl.bintray.com/alterac/maven' }
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion demo/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.flurgle.blurkit.demo">
package="com.alterac.blurkit.demo">

<application
android:allowBackup="true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.flurgle.blurkit.demo;
package com.alterac.blurkit.demo;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.flurgle.blurkit.BlurLayout;
import com.alterac.blurkit.BlurLayout;

public class MainActivity extends AppCompatActivity {

Expand Down
6 changes: 3 additions & 3 deletions demo/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.flurgle.blurkit.demo.MainActivity">
tools:context="com.alterac.blurkit.demo.MainActivity">

<ImageView
android:id="@+id/imageView"
Expand All @@ -13,7 +13,7 @@
android:scaleType="centerCrop"
android:src="@drawable/peppers" />

<com.flurgle.blurkit.BlurLayout xmlns:blurkit="http://schemas.android.com/apk/res-auto"
<com.alterac.blurkit.BlurLayout xmlns:blurkit="http://schemas.android.com/apk/res-auto"
android:id="@+id/blurLayout"
android:layout_width="150dp"
android:layout_height="150dp"
Expand All @@ -28,6 +28,6 @@
android:text="BlurKit!"
android:textColor="@android:color/white" />

</com.flurgle.blurkit.BlurLayout>
</com.alterac.blurkit.BlurLayout>

</RelativeLayout>

0 comments on commit 9c10fa6

Please sign in to comment.