Skip to content

Commit

Permalink
fenrir_vk_1.08
Browse files Browse the repository at this point in the history
Версия 1.08: Первый релиз
  • Loading branch information
umerov1999 committed Oct 23, 2020
1 parent 21b9b68 commit 7a9f6e5
Show file tree
Hide file tree
Showing 3,041 changed files with 301,795 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Fenrir VK
Форк ВК клиента Феникс, с поддержкой музыки и множество другого функционала.

<b>Все языки вырезаны, кроме русского</b>

<b>Скриншоты:</b>
<img src="Screenshots.jpg"/>

<b>Инструкция по сборке:</b>
Требуется:
1) Android Studio 4.2 CANARY 13 или выше с включенным Kotlin 1.4
2) Android SDK r30

<b>Компиляция:</b>

1) Для релизных сборок вам нужен сертификат.

2) Выберите тип сборки (for_telegram) Debug или Release и соберите apk :)

Telegram канал мода: https://t.me/phoenixvk_mod

Донат на энергетик: 5599005042882048
Binary file added Screenshots.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions Slidr/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'

defaultConfig {
minSdkVersion 21
//noinspection OldTargetApi
targetSdkVersion 29
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.core:core-ktx:1.5.0-alpha04'
implementation 'androidx.activity:activity-ktx:1.2.0-beta01'
implementation 'androidx.activity:activity-ktx:1.1.0'
implementation 'androidx.fragment:fragment-ktx:1.2.5'
implementation 'com.google.android.material:material:1.3.0-alpha03'
implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
}
4 changes: 4 additions & 0 deletions Slidr/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<manifest package="com.r0adkll.slidr">

<application />
</manifest>
68 changes: 68 additions & 0 deletions Slidr/src/main/java/com/r0adkll/slidr/ColorPanelSlideListener.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package com.r0adkll.slidr;

import android.animation.ArgbEvaluator;
import android.app.Activity;
import android.os.Build;

import androidx.annotation.ColorInt;

import com.r0adkll.slidr.widget.SliderPanel;


class ColorPanelSlideListener implements SliderPanel.OnPanelSlideListener {

private final Activity activity;
private final int primaryColor;
private final int secondaryColor;
private final ArgbEvaluator evaluator = new ArgbEvaluator();


ColorPanelSlideListener(Activity activity, @ColorInt int primaryColor, @ColorInt int secondaryColor) {
this.activity = activity;
this.primaryColor = primaryColor;
this.secondaryColor = secondaryColor;
}


@Override
public void onStateChanged(int state) {
// Unused.
}


@Override
public void onClosed() {
activity.finish();
activity.overridePendingTransition(0, 0);
}


@Override
public void onOpened() {
// Unused.
}


@Override
public void onSlideChange(float percent) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && areColorsValid()) {
int newColor = (int) evaluator.evaluate(percent, getPrimaryColor(), getSecondaryColor());
activity.getWindow().setStatusBarColor(newColor);
}
}


protected int getPrimaryColor() {
return primaryColor;
}


protected int getSecondaryColor() {
return secondaryColor;
}


protected boolean areColorsValid() {
return getPrimaryColor() != -1 && getSecondaryColor() != -1;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package com.r0adkll.slidr;


import android.app.Activity;

import androidx.annotation.NonNull;

import com.r0adkll.slidr.model.SlidrConfig;


class ConfigPanelSlideListener extends ColorPanelSlideListener {

private final SlidrConfig config;


ConfigPanelSlideListener(@NonNull Activity activity, @NonNull SlidrConfig config) {
super(activity, -1, -1);
this.config = config;
}


@Override
public void onStateChanged(int state) {
if (config.getListener() != null) {
config.getListener().onSlideStateChanged(state);
}
}


@Override
public void onClosed() {
if (config.getListener() != null) {
if (config.getListener().onSlideClosed()) {
return;
}
}
super.onClosed();
}


@Override
public void onOpened() {
if (config.getListener() != null) {
config.getListener().onSlideOpened();
}
}


@Override
public void onSlideChange(float percent) {
super.onSlideChange(percent);
if (config.getListener() != null) {
config.getListener().onSlideChange(percent);
}
}


@Override
protected int getPrimaryColor() {
return config.getPrimaryColor();
}


@Override
protected int getSecondaryColor() {
return config.getSecondaryColor();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package com.r0adkll.slidr;


import android.view.View;

import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;

import com.r0adkll.slidr.model.SlidrConfig;
import com.r0adkll.slidr.widget.SliderPanel;


class FragmentPanelSlideListener implements SliderPanel.OnPanelSlideListener {

private final View view;
private final SlidrConfig config;


FragmentPanelSlideListener(@NonNull View view, @NonNull SlidrConfig config) {
this.view = view;
this.config = config;
}


@Override
public void onStateChanged(int state) {
if (config.getListener() != null) {
config.getListener().onSlideStateChanged(state);
}
}


@Override
public void onClosed() {
if (config.getListener() != null) {
if (config.getListener().onSlideClosed()) {
return;
}
}

// Ensure that we are attached to a FragmentActivity
if (view.getContext() instanceof FragmentActivity) {
FragmentActivity activity = (FragmentActivity) view.getContext();
if (activity.getSupportFragmentManager().getBackStackEntryCount() == 0) {
activity.finish();
activity.overridePendingTransition(0, 0);
} else {
activity.getSupportFragmentManager().popBackStack();
}
}
}

@Override
public void onOpened() {
if (config.getListener() != null) {
config.getListener().onSlideOpened();
}
}


@Override
public void onSlideChange(float percent) {
if (config.getListener() != null) {
config.getListener().onSlideChange(percent);
}
}
}
Loading

0 comments on commit 7a9f6e5

Please sign in to comment.