summaryrefslogtreecommitdiffstats
blob: 90c27bd7da2e5f4ec37a5e5f66cfaee50a03ccc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "SwifTools/AutoUpdater/PlatformAutoUpdaterFactory.h"

#ifdef HAVE_SPARKLE
#include "SwifTools/AutoUpdater/SparkleAutoUpdater.h"
#else
#include "SwifTools/AutoUpdater/DummyAutoUpdater.h"
#endif

namespace Swift {

AutoUpdater* PlatformAutoUpdaterFactory::createAutoUpdater(const String& appcastURL) {
#ifdef HAVE_SPARKLE
	return new SparkleAutoUpdater(appcastURL);
#else
	(void) appcastURL;
	return new DummyAutoUpdater();
#endif
}

}