Skip to content

Commit

Permalink
Removed PayPal & iOS IAP
Browse files Browse the repository at this point in the history
  • Loading branch information
cvde committed Jul 27, 2024
1 parent 0a59819 commit 2fb725f
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 157 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

13 changes: 0 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ juce_add_plugin(${PROJECT_NAME}
REQUIRES_FULL_SCREEN TRUE
IPHONE_SCREEN_ORIENTATIONS UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
IPAD_SCREEN_ORIENTATIONS UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight
NEEDS_STORE_KIT TRUE
ICON_BIG "Assets/icon_large.png"
)

Expand Down Expand Up @@ -105,15 +104,3 @@ target_link_libraries(${PROJECT_NAME}
juce::juce_recommended_lto_flags
juce::juce_recommended_warning_flags
)

# add in-app purchase capabilities for iOS
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
target_compile_definitions(${PROJECT_NAME}
PUBLIC
JUCE_IN_APP_PURCHASES=1
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
juce::juce_product_unlocking
)
endif()
1 change: 0 additions & 1 deletion Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
target_sources(${PROJECT_NAME} PRIVATE
"Components/AboutDialog.cpp"
"Components/ABToggleComponent.cpp"
"Components/DonationSelector.cpp"
"Components/EarlySection.cpp"
"Components/HeaderSection.cpp"
"Components/InfoButtonComponent.cpp"
Expand Down
18 changes: 2 additions & 16 deletions Source/Components/AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "AboutDialog.h"
#include "Config.h"
#include "DonationSelector.h"
#include <BinaryData.h>

AboutDialog::AboutDialog()
Expand All @@ -31,24 +30,12 @@ AboutDialog::AboutDialog()
mLogo = juce::Drawable::createFromImageData(BinaryData::logo_svg, BinaryData::logo_svgSize);

const juce::String pluginInfoText = juce::String("Room Reverb is free software distributed under the GNU General Public License version 3. For more information, contact options, and the source code, visit www.ElephantDSP.com\n\n")
+ "If you like this audio plugin, please consider donating a few spare coins. Thank you very much! :)";
+ "If you like this audio plugin, tell your friends about it. Thanks! :)";
mPluginInfo.setText(pluginInfoText, juce::dontSendNotification);
mPluginInfo.setFont(juce::Font(22.0f));
mPluginInfo.setJustificationType(juce::Justification::centred);
addAndMakeVisible(mPluginInfo);

#if JUCE_IOS
mDonateCTA = std::make_unique<DonationSelector>();
#else
mDonateCTA = std::make_unique<juce::HyperlinkButton>();
juce::HyperlinkButton* donateButton = static_cast<juce::HyperlinkButton*>(mDonateCTA.get());
donateButton->setButtonText("Donate via PayPal");
donateButton->setFont(juce::Font(22.0f, juce::Font::underlined), false, juce::Justification::centred);
donateButton->setURL(juce::URL("https://www.paypal.com/donate/?hosted_button_id=Z3RSDGUEPVY52"));
donateButton->setTooltip("");
#endif
addAndMakeVisible(mDonateCTA.get());

const juce::String versionInfoText = "Version: " + juce::String(PROJECT_VERSION) + " (" + juce::String(PROJECT_BUILD_TYPE) + ")\n" +
"Format: " + juce::String(juce::AudioProcessor::getWrapperTypeDescription(mPluginHostType.getPluginLoadedAs())) + "\n" +
"Host: " + juce::String(mPluginHostType.getHostDescription()) + "\n" +
Expand Down Expand Up @@ -109,6 +96,5 @@ void AboutDialog::resized()
mVersionInfo.setBounds(footer.reduced(10));

// content
mPluginInfo.setBounds(area.removeFromTop(180));
mDonateCTA->setBounds(area.removeFromTop(50).withSizeKeepingCentre(350, 50));
mPluginInfo.setBounds(area.removeFromTop(150));
}
1 change: 0 additions & 1 deletion Source/Components/AboutDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class AboutDialog : public juce::Component
std::unique_ptr<juce::Drawable> mLogo;
juce::Rectangle<float> mLogoBounds;
juce::Label mPluginInfo;
std::unique_ptr<juce::Component> mDonateCTA;
juce::Label mVersionInfo;
std::unique_ptr<juce::Drawable> mVstLogo;
juce::Rectangle<float> mVstLogoBounds;
Expand Down
77 changes: 0 additions & 77 deletions Source/Components/DonationSelector.cpp

This file was deleted.

45 changes: 0 additions & 45 deletions Source/Components/DonationSelector.h

This file was deleted.

2 changes: 1 addition & 1 deletion Source/Components/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void Main::resized()
{
auto area = getLocalBounds().reduced(2);

const int aboutDialogHeight = static_cast<int>(area.getHeight() * 0.75f);
const int aboutDialogHeight = area.getHeight() * 2 / 3;
const int aboutDialogWidth = area.getWidth() / 2;
mAboutDialog.setBounds(area.getCentreX() - aboutDialogWidth / 2, area.getCentreY() - aboutDialogHeight / 2, aboutDialogWidth, aboutDialogHeight);

Expand Down
2 changes: 0 additions & 2 deletions Source/LookAndFeel/CustomLookAndFeel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ CustomLookAndFeel::CustomLookAndFeel()
setColour(juce::ResizableWindow::ColourIds::backgroundColourId, juce::Colour(0xff5e5e5e));
setColour(juce::DocumentWindow::textColourId, juce::Colours::white);

setColour(juce::HyperlinkButton::textColourId, juce::Colour(0xffdc0000));

setColour(juce::TextButton::buttonColourId, juce::Colour(0xff303030));
setColour(juce::TextButton::buttonOnColourId, juce::Colour(0xff5e5e5e));

Expand Down

0 comments on commit 2fb725f

Please sign in to comment.