Skip to content

Commit

Permalink
Rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Nov 10, 2023
1 parent 84a244f commit bba3250
Show file tree
Hide file tree
Showing 274 changed files with 270 additions and 294 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
run: dotnet workload install maui --ignore-failed-sources

- name: Restore Dependencies
run: dotnet restore AniStream/
run: dotnet restore Anikin/

- name: Publish MAUI Android
run: >
dotnet publish AniStream/
dotnet publish Anikin/
-c Release
-f net7.0-android
-p:AndroidKeyStore=true
Expand All @@ -55,14 +55,14 @@ jobs:
run: |
set -e
mv AniStream/bin/Release/net7.0-android/com.oneb.anistream-Signed.apk AniStream.apk
mv Anikin/bin/Release/net7.0-android/com.oneb.anikin-Signed.apk Anikin.apk
shell: bash

- name: Upload Android Artifact
uses: actions/upload-artifact@v3
with:
name: AniStream
path: AniStream.apk
name: Anikin
path: Anikin.apk

deploy:
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
Expand Down Expand Up @@ -94,8 +94,8 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: AniStream
path: AniStream
name: Anikin
path: Anikin

- name: Set body
run: |
Expand All @@ -109,7 +109,7 @@ jobs:
run: |
set -e
mv AniStream/AniStream.apk ${{ env.PACKAGE_NAME }}
mv Anikin/Anikin.apk ${{ env.PACKAGE_NAME }}
- name: Create release
env:
Expand Down
2 changes: 1 addition & 1 deletion AniStream.sln → Anikin.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31611.283
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AniStream", "AniStream\AniStream.csproj", "{CCA8AB6C-4A8F-4204-A8AF-3F3249F95220}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Anikin", "Anikin\Anikin.csproj", "{CCA8AB6C-4A8F-4204-A8AF-3F3249F95220}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EBB64081-8B9C-4F90-8713-074CC4E21024}"
ProjectSection(SolutionItems) = preProject
Expand Down
4 changes: 2 additions & 2 deletions AniStream/AniStream.csproj → Anikin/Anikin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>AniStream</RootNamespace>
<RootNamespace>Anikin</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>

<!-- Rollback MAUI version because of bug (https://github.com/dotnet/maui/issues/14520) -->
<!--<MauiVersion>7.0.59</MauiVersion>-->

<!-- Display name -->
<ApplicationTitle>AniStream</ApplicationTitle>
<ApplicationTitle>Anikin</ApplicationTitle>

<!-- App Identifier -->
<ApplicationId>com.oneb.anistream</ApplicationId>
Expand Down
4 changes: 2 additions & 2 deletions AniStream/App.xaml → Anikin/App.xaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Application
x:Class="AniStream.App"
x:Class="Anikin.App"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:AniStream">
xmlns:local="clr-namespace:Anikin">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
Expand Down
8 changes: 4 additions & 4 deletions AniStream/App.xaml.cs → Anikin/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using AniStream.Services;
using AniStream.Services.AlertDialog;
using Anikin.Services;
using Anikin.Services.AlertDialog;
using CommunityToolkit.Maui.Alerts;
using CommunityToolkit.Maui.Core;
using Microsoft.Extensions.DependencyInjection;
Expand All @@ -9,10 +9,10 @@
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Networking;
#if ANDROID
using Snackbar = AniStream.Controls.Snackbar;
using Snackbar = Anikin.Controls.Snackbar;
#endif

namespace AniStream;
namespace Anikin;

public partial class App : Application
{
Expand Down
6 changes: 3 additions & 3 deletions AniStream/AppShell.xaml → Anikin/AppShell.xaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="AniStream.AppShell"
x:Class="Anikin.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:AniStream"
xmlns:views="clr-namespace:AniStream.Views"
xmlns:local="clr-namespace:Anikin"
xmlns:views="clr-namespace:Anikin.Views"
Shell.FlyoutBehavior="Disabled"
Shell.NavBarIsVisible="False">

Expand Down
6 changes: 3 additions & 3 deletions AniStream/AppShell.xaml.cs → Anikin/AppShell.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Linq;
using System.Threading.Tasks;
using AniStream.ViewModels.Framework;
using AniStream.Views;
using Anikin.ViewModels.Framework;
using Anikin.Views;
using CommunityToolkit.Maui.Alerts;
using CommunityToolkit.Maui.Core;
using Microsoft.Maui.Controls;

namespace AniStream;
namespace Anikin;

public partial class AppShell : Shell
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using Object = Java.Lang.Object;
using View = Android.Views.View;

namespace AniStream.Controls;
namespace Anikin.Controls;

public partial class Snackbar
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.Maui;
using Microsoft.Maui.Controls;

namespace AniStream.Controls;
namespace Anikin.Controls;

/// <inheritdoc/>
public partial class Snackbar : ISnackbar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Globalization;
using Microsoft.Maui.Controls;

namespace AniStream.Converters;
namespace Anikin.Converters;

public class IsWatchedEpisodeProgressVisibleConverter : IValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Globalization;
using Microsoft.Maui.Controls;

namespace AniStream.Converters;
namespace Anikin.Converters;

public class RatingConverter : IValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Globalization;
using Microsoft.Maui.Controls;

namespace AniStream.Converters;
namespace Anikin.Converters;

public class WatchedEpisodeProgressConverter : IValueConverter
{
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion AniStream/MainPage.xaml → Anikin/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AniStream.MainPage">
x:Class="Anikin.MainPage">

<ScrollView>
<VerticalStackLayout
Expand Down
2 changes: 1 addition & 1 deletion AniStream/MainPage.xaml.cs → Anikin/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.Maui.Accessibility;
using Microsoft.Maui.Controls;

namespace AniStream;
namespace Anikin;

public partial class MainPage : ContentPage
{
Expand Down
10 changes: 5 additions & 5 deletions AniStream/MauiProgram.cs → Anikin/MauiProgram.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Net.Http;
using System.Net.Http.Headers;
using AniStream.Services;
using AniStream.Services.AlertDialog;
using AniStream.ViewModels;
using AniStream.Views;
using Anikin.Services;
using Anikin.Services.AlertDialog;
using Anikin.ViewModels;
using Anikin.Views;
using Berry.Maui;
using CommunityToolkit.Maui;
using CommunityToolkit.Maui.Markup;
Expand All @@ -21,7 +21,7 @@
using Microsoft.Maui.Controls.Compatibility.Platform.Android;
#endif

namespace AniStream;
namespace Anikin;

public static class MauiProgram
{
Expand Down
2 changes: 1 addition & 1 deletion AniStream/Models/Range.cs → Anikin/Models/Range.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using Juro.Core.Models.Anime;

namespace AniStream.Models;
namespace Anikin.Models;

public partial class Range : ObservableObject
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AniStream.Models;
namespace Anikin.Models;

public class WatchedEpisode
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Android.App;
using Android.Content;
using AniStream.Utils.Extensions;
using Anikin.Utils.Extensions;
using Microsoft.Maui.ApplicationModel;

namespace AniStream.Utils.Downloading;
namespace Anikin.Utils.Downloading;

[IntentFilter(new[] { DownloadManager.ActionDownloadComplete })]
public class ApkDownloadReceiver : BroadcastReceiver
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Android.Media;
using Android.Runtime;

namespace AniStream.Utils.Listeners;
namespace Anikin.Utils.Listeners;

public class AudioFocusChangeListener : Java.Lang.Object, AudioManager.IOnAudioFocusChangeListener
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Android.OS;
using Android.Views;

namespace AniStream.Utils.Listeners;
namespace Anikin.Utils.Listeners;

public class GesturesListener : GestureDetector.SimpleOnGestureListener
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using Android.Content.PM;
using Android.OS;
using AndroidX.AppCompat.App;
using AniStream.Services;
using Anikin.Services;

namespace AniStream;
namespace Anikin;

[IntentFilter(
actions: new[] { Intent.ActionView },
Label = "Anilist Login for AniStream",
Label = "Anilist Login for Anikin",
Categories = new[] { Intent.CategoryDefault, Intent.CategoryBrowsable },
DataSchemes = new[] { "anistream" },
//DataScheme = "anistream",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
using Android.Views;
using Android.Views.InputMethods;
using AndroidX.Core.View;
using AniStream.Utils;
using Anikin.Utils;
using Microsoft.Maui;
using Microsoft.Maui.ApplicationModel;
using static Android.Views.ViewGroup;

namespace AniStream;
namespace Anikin;

[Activity(
Theme = "@style/Maui.SplashTheme",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.Maui;
using Microsoft.Maui.Hosting;

namespace AniStream;
namespace Anikin;

[Application(UsesCleartextTraffic = true, LargeHeap = true, SupportsRtl = true)]
public class MainApplication : MauiApplication
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="com.crashlytics.android.build_id">AniStreamVersion20</string>
<string name="com.crashlytics.android.build_id">AnikinVersion20</string>

<string name="animations">Animations</string>
<string name="skip">Skip</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Android.Runtime;
using Microsoft.Maui.ApplicationModel;

namespace AniStream.Utils;
namespace Anikin.Utils;

//internal class AndroidStoragePermission : IStoragePermission
public class AndroidStoragePermission
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using Microsoft.Maui.ApplicationModel;
using Path = System.IO.Path;

namespace AniStream.Utils.Extensions;
namespace Anikin.Utils.Extensions;

public static class ActivityExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Android.Views;

namespace AniStream.Utils.Extensions;
namespace Anikin.Utils.Extensions;

public static class ViewExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Android.Content;
using Microsoft.Maui.ApplicationModel;

namespace AniStream.Utils;
namespace Anikin.Utils;

public class PackageInstallPermission
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.Maui;
using Microsoft.Maui.Hosting;

namespace AniStream;
namespace Anikin;

[Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ObjCRuntime;
using UIKit;

namespace AniStream;
namespace Anikin;

public class Program
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<maui:MauiWinUIApplication
x:Class="AniStream.WinUI.App"
x:Class="Anikin.WinUI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:maui="using:Microsoft.Maui"
xmlns:local="using:AniStream.WinUI">
xmlns:local="using:Anikin.WinUI">

</maui:MauiWinUIApplication>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace AniStream.WinUI;
namespace Anikin.WinUI;

/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
Expand Down
Loading

0 comments on commit bba3250

Please sign in to comment.