summaryrefslogtreecommitdiffstats
blob: 2049a4ecd187486014170c7d3cda71f81228b06c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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
	return new DummyAutoUpdater();
#endif
}

}