Author: wkeil Date: Sun Aug 21 17:26:11 2016 New Revision: 1757069 URL: http://svn.apache.org/viewvc?rev=1757069&view=rev Log: DMAP-196: Deploy Snapshots to Apache Snapshot repo
Task-Url: https://issues.apache.org/jira/browse/DMAP-196 Modified: devicemap/trunk/clients/1.0/csharp/README devicemap/trunk/clients/1.0/java/README devicemap/trunk/clients/1.0/java/console/README devicemap/trunk/clients/1.0/vbnet/README Modified: devicemap/trunk/clients/1.0/csharp/README URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/1.0/csharp/README?rev=1757069&r1=1757068&r2=1757069&view=diff ============================================================================== --- devicemap/trunk/clients/1.0/csharp/README (original) +++ devicemap/trunk/clients/1.0/csharp/README Sun Aug 21 17:26:11 2016 @@ -43,7 +43,7 @@ DeviceMapConsole comes with a config fil It contains the connection string for the DeviceMap data source: "http://devicemap-vm.apache.org/data/latest/" This connection URL points to the latest available DeviceMap data version online. If you prefer a different version or a local copy of the DeviceMap repository, you may override DeviceMapConsole by pointing to a different source. -Either a URL or the location of a folder or JAR file in the file system. +Either a URL or the location of a folder in the file system. The config file also contains the supported .NET runtime version. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> Modified: devicemap/trunk/clients/1.0/java/README URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/1.0/java/README?rev=1757069&r1=1757068&r2=1757069&view=diff ============================================================================== --- devicemap/trunk/clients/1.0/java/README (original) +++ devicemap/trunk/clients/1.0/java/README Sun Aug 21 17:26:11 2016 @@ -9,7 +9,7 @@ This client requires devicemap-data. Dat * Filesystem - Code + # Code //get client using JAR data source DeviceMapClient client = DeviceMapFactory.getClient(LoaderOption.JAR); @@ -32,19 +32,20 @@ This client requires devicemap-data. Dat System.out.println(attr + ": " + device.getAttribute(attr)); } -Maven: + # Compile + + ## Maven <dependency> <groupId>org.apache.devicemap</groupId> <artifactId>devicemap-client</artifactId> - <version>1.1.0</version> + <version>1.2.0</version> </dependency> -devicemap-data JAR file: + devicemap-data JAR file: <dependency> <groupId>org.apache.devicemap</groupId> <artifactId>devicemap-data</artifactId> <version>1.0.3</version> </dependency> - Modified: devicemap/trunk/clients/1.0/java/console/README URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/1.0/java/console/README?rev=1757069&r1=1757068&r2=1757069&view=diff ============================================================================== --- devicemap/trunk/clients/1.0/java/console/README (original) +++ devicemap/trunk/clients/1.0/java/console/README Sun Aug 21 17:26:11 2016 @@ -1,51 +1,27 @@ -DeviceMap Java Classifier Client +DeviceMap Java Console -CLS (ISO/IEC 23271:2012) compliant .NET version of Apache DeviceMap Client + # Code -This client is used to classify browser User-Agent strings. - -The client requires devicemap-data. Data can be loaded via: - - * URL - * JAR file - * Filesystem - -# Code - -//get client using configured data source -//see "Configuration" below for further details on how to configure the data source -DeviceMapClient client = new DeviceMapClient(); - -String userAgent = "Mozilla/5.0 (Linux; U; Android 2.2; en; HTC Aria A6380 Build/ERE27) AppleWebKit/540.13+ (KHTML, like Gecko) Version/3.1 Mobile Safari/524.15.0"; - -//classify the userAgent -IDictionary<string, string> devices = client.Map(userAgent); - -//iterate thru the devices (here we already got a Dictionary of Device model objects) -foreach (Device device in devices.Values) -{ - Console.WriteLine(device); -} - -## Compile -DeviceMap C# Client and Console have been tested with .NET Framework 4.0 or higher. - -To compile the sources you may use - -- Visual Studio (DeviceMap.sln file works with VS 2010 or above, Community Edition is sufficient) -- Mono Project (http://www.mono-project.com/) and MonoDevelop (http://www.monodevelop.com/) - -We currently don't provide a MonoDevelop solution, but the project layout should be compatible with it. And you're more than welcome to contribute solution files if you use MonDevelop (please create a JIRA ticket under https://issues.apache.org/jira/browse/DMAP/component/12323107 ".NET Client" and attach your files) - -# Run - -## Configuration -DeviceMapConsole comes with a config file DeviceMapConsole.exe.config, the runtime version of App.config in the Visual Studio project. + ## Configuration +DeviceMapConsole comes with a properties file app.properties. It contains the connection string for the DeviceMap data source: "http://devicemap-vm.apache.org/data/latest/" This connection URL points to the latest available DeviceMap data version online. If you prefer a different version or a local copy of the DeviceMap repository, you may override DeviceMapConsole by pointing to a different source. Either a URL or the location of a folder or JAR file in the file system. -The config file also contains the supported .NET runtime version. -<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> -You should normally not have to change this. Doing so is at your own risk. DeviceMap C# client does not support .NET below 4.0, but in case you have multiple versions of the .NET Framework installed, you may chose a particular one, e.g. if you face problems running DeviceMapConsole. \ No newline at end of file + # Compile + ## Maven: + + <dependency> + <groupId>org.apache.devicemap</groupId> + <artifactId>devicemap-java-console</artifactId> + <version>1.2.0</version> + </dependency> + +devicemap-data JAR file: + + <dependency> + <groupId>org.apache.devicemap</groupId> + <artifactId>devicemap-client</artifactId> + <version>1.2.0</version> + </dependency> \ No newline at end of file Modified: devicemap/trunk/clients/1.0/vbnet/README URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/1.0/vbnet/README?rev=1757069&r1=1757068&r2=1757069&view=diff ============================================================================== --- devicemap/trunk/clients/1.0/vbnet/README (original) +++ devicemap/trunk/clients/1.0/vbnet/README Sun Aug 21 17:26:11 2016 @@ -43,7 +43,7 @@ DeviceMapConsole comes with a config fil It contains the connection string for the DeviceMap data source: "http://devicemap-vm.apache.org/data/latest/" This connection URL points to the latest available DeviceMap data version online. If you prefer a different version or a local copy of the DeviceMap repository, you may override DeviceMapConsole by pointing to a different source. -Either a URL or the location of a folder or JAR file in the file system. +Either a URL or the location of a folder in the file system. The config file also contains the supported .NET runtime version. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
